Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jekyll is ignoring Liquid tags within posts

I'm new to Jekyll, Liquid and Ruby as a whole, so sorry if I'm being really stupid. It seems that Jekyll is ignoring any liquid tags with posts (under the _posts directory), which results in output like the following. These posts are all formatted in markdown, and they all have YAML markup within them.

{% highlight scss %} .noisy { @include noise(#00f); } {% endhighlight %}

I've tested that it isn't just Pygments failing by adding {{ post.title }} which is also left unparsed. Check out the code on Github

I honestly don't know what I'm doing wrong.

Thanks in advance.

like image 740
Nate Higgins Avatar asked Apr 08 '12 07:04

Nate Higgins


1 Answers

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


It's page.title

Template Data · mojombo/jekyll Wiki

like image 85
Zombo Avatar answered Oct 10 '22 13:10

Zombo