How do I include "{% %}" in markdown file when using jekyll? -


i using jekyll post blogs. when write "{%...%}" in markdown files, seems "{%...%}" parsed liquid. not want, , may cause errors. what's proper way include texts "{%...%}" in post content(the .md file)?

i checked liquid docs , learned can use block tag {% raw %} ... {% end raw %} include raw text between. however, don't think idea. because if markdown file not parsed liquid (e.g., in environment other jekyll), leave unused {% raw %} in text.

correct me if said wrong.

p.s.: use github pages hosting , disable plugins.

one thing remember jekyll , github pages can always build site locally (by running jekyll build), commit repo , have github serve there. can use (or create) plugin that'll enable have want. :p

on other hand, think it's trouble not use {% raw %}. if -- , if -- you're going use these markdown files somewhere else, can pass them through script (or sed command) , sweep away these tags.


Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

How to mention the localhost in android -

php - Calling a template part from a post -