[:end_of_string] is not a valid expression in "{{}}"


#1

I am getting this error

in this markdown file.

Does anyone know what’s the error and how to fix it?


#2

Its the code block with {{ title }}

Jekyll doesn’t escape Liquid in code blocks. It’s trying to render it. You’ll need to wrap it or the entire code block with {% raw %} {% endraw %} to force Jekyll to ignore it.


#3

Still getting the same error.


#4

Try {% raw %} {% endraw %}. I made a typo above.