Markdown 为什么杰基尔·唐´;是否在主页上呈现降价文件?
我想在我的主页上显示降价文件的内容,使用静态站点生成器jekyll构建。但杰基尔不会降价。有人知道我做错了什么吗?结果: 代码索引.htmlMarkdown 为什么杰基尔·唐´;是否在主页上呈现降价文件?,markdown,jekyll,Markdown,Jekyll,我想在我的主页上显示降价文件的内容,使用静态站点生成器jekyll构建。但杰基尔不会降价。有人知道我做错了什么吗?结果: 代码索引.html --- layout: default --- <div class="home"> {% include index.md %} </div> <div class="page-content"> <div class="wrapper"> {{ content }
---
layout: default
---
<div class="home">
{% include index.md %}
</div>
<div class="page-content">
<div class="wrapper">
{{ content }}
</div>
</div>
首先,包含的内容不应该有前面的内容将其从
\u includes/index.html
中删除。现在必须将其理解为:
This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](http://jekyllrb.com/)
包含html帖子/页面中的标记文件无法正常工作
为了从.html
文件中包含.md
文件,您需要捕获
,然后标记
---
layout: default
---
<div class="home">
{% capture index %}{% include index.md %}{% endcapture %}
{{ index | markdownify }}
</div>
---
布局:默认值
---
{%capture index%}{%include index.md%}{%endcapture%}
{{index | markdownify}}
---
layout: default
---
<div class="home">
{% capture index %}{% include index.md %}{% endcapture %}
{{ index | markdownify }}
</div>