Highlight in html issue with Jekyll/Liquid and pygments

735 Views Asked by At

I'm using Jekyll with pygments and having an issue using {% highlight %} in .html posts. As you can see here, it is just printing out {% highlight %} yet on my homepage the syntax highlighting works See here: iwasasuperhero.

Here is the code for the index, and the code for the post: Here

I'm not really sure the issue or why it is working on the index but not the post page. Any ideas?

1

There are 1 best solutions below

0
On

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