我是 Jekyll , Liquid 和 Ruby 的新手,所以很抱歉,如果我真的很蠢。似乎Jekyll忽略了任何带帖子的液体标签(在_posts目录下),这导致输出如下。这些帖子都以markdown格式化,并且它们都包含YAML标记。
{% highlight scss %} .noisy { @include noise(#00f); } {% endhighlight %}
我已经通过添加{{ post.title }}
来测试不仅 Pygments 失败,而{{1}}也未被解析。 Check out the code on Github
老实说,我不知道自己做错了什么。
提前致谢。
答案 0 :(得分:11)
似乎我已经弄明白了我的问题。我正在使用
{{ page.content }}
我的post.html而非{{ content }}
。
Highlight in html issue with Jekyll/Liquid and pygments
这是page.title
答案 1 :(得分:0)
我不太确定为什么这不起作用。你是否在index.html中正确地循环工作?
这可能会有所帮助:https://github.com/Shopify/liquid/wiki/Liquid-for-Designers