We know that Jekyll uses Liquid as its templating language. This means all your Liquid code will be executed by Jekyll by default.
So, if you want to embed Liquid code in your Jekyll website but don’t want Jekyll to process it then what are you going to do? What if you want to show a few code samples of Mustache or Handlebars in your Jekyll website? How do we prevent certain portions of code from being executed by Jekyll?
{% raw %}
and {% endraw %}
to the rescue.
Simply surround the code you don’t want to get executed with {% raw %}
and
{% endraw %}
like below:
{% raw %}
{% assign str="I only want to show this code" %}
{% endraw %}
In fact, this blog is made in Jekyll and I have used the same technique that I mentioned above to show you the liquid code.