Jekyll 在标题中使用插件
可以在标题中使用插件吗?Jekyll 在标题中使用插件,jekyll,octopress,Jekyll,Octopress,可以在标题中使用插件吗? 例如,在header.html中,在标题后显示一个图像 <hgroup> <h1><a href="{{ root_url }}/">{{ site.title }}</a></h1> {% if site.subtitle %} <h2>{{ site.subtitle }}</h2> {% endif %} {% img /images/my_im
例如,在header.html中,在标题后显示一个图像
<hgroup>
<h1><a href="{{ root_url }}/">{{ site.title }}</a></h1>
{% if site.subtitle %}
<h2>{{ site.subtitle }}</h2>
{% endif %}
{% img /images/my_image.jpg %}
</hgroup>
{%if site.subtitle%}
{{site.subtitle}
{%endif%}
{%img/images/my_image.jpg%}
请注意,我没有尝试…该图像不是真正的插件,但您应该能够添加图像。我会使用一个
img
标签来代替,因此
可以代替,但这也可以工作
如果您想包含自己的小部件,还可以使用{%include file\u path%}
。请注意,文件路径是source/\u include/..