A cheatsheet for Jekyll.
Links
Link to page or asset:
{% link /some/page/link.md %}
Link to post:
{% post_url 2021/2021-10-31-post-without-file-extension %}
Disable Liquid
Wrap the code in raw
… endraw
tags:
{% raw %}
do whatever in here
{% endraw %}
Note that rendering the raw
… endraw
tags themselves
is an extra challenge solved with this trick:
{% assign open_tag = '{' | append: '%' %}
{% assign close_tag = '%' | append: '}' %}
{{ open_tag }} raw {{ close_tag }}
do whatever in here
{{ open_tag }} endraw {{ close_tag }}
Last updated: Oct 31, 2021