7
votes

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.

2

2 Answers

11
votes

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

0
votes

I'm not too sure why that isn't working. Does you're for loop work correctly in index.html?

This might be helpful: https://github.com/Shopify/liquid/wiki/Liquid-for-Designers