ruby – Jekyll忽略帖子中的Liquid标签

我是Jekyll,Liquid和 Ruby的新手,对不起,如果我真的很蠢.似乎Jekyll忽略了任何带帖子的液体标签(在_posts目录下),这导致输出如下.这些帖子都以markdown格式化,并且它们都包含YAML标记.
{% highlight scss %} .noisy { @include noise(#00f); } {% endhighlight %}

我已经通过添加{{post.title}}来测试不仅仅是Pygments失败,而{{post.title}}也未被解析. Check out the code on Github

老实说,我不知道我做错了什么.

提前致谢.

解决方法

It seems I have figured out my problem. I was using {{ page.content }} in
my post.html instead of just {{ content }}.

Highlight in html issue with Jekyll/Liquid and pygments

这是page.title

Template Data · mojombo/jekyll Wiki

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...