See Tags Filters in the Jekyll docs.

Set in frontmatter (Jekyll 4.X only):

title: Foo
render_with_liquid: false

Raw tag

Use the raw tag around a text, a line, multiple lines, or most of the file.

Here is an example. Remember to close it with endraw.

{% raw %}
{{ my_variable %}

Using raw tag in a code snippet

If you want the raw tag to appear literally, you can use render_with_liquid (Jekyll 4.X) for the file.

Nesting raw tags might not work as the inner endraw will close the outer raw.

An example can’t be shown here easily, because you can’t nest raw tags. The inner closing tag for display purposes will end the outer opening tag.