Cuts

Article last updated at August 11, 2026

Use cuts to hide part of the content. For example, additional information or long code blocks.

Warning

The construct works only if it is separated by blank lines — outside (before the opening and after the closing tag) and inside (between the tags and the content). Otherwise, it will not be processed and will remain plain text.

{% cut "Заголовок ката" %}

Контент, который отобразится по нажатию.

{% endcut %}

Result:

Cut title

Content that will be displayed on click.

Anchor links

You can set an anchor for a cut; following a link with an anchor automatically navigates to the cut and opens it. This also works for cuts nested inside one another.

Ссылка для раскрытия [внешнего ката](#outside-cut), ссылка для раскрытия [вложенного ката](#inside-cut).

{% cut "Заголовок внешнего ката" %}{#outside-cut}

Контент первого уровня.

{% cut "Заголовок вложенного ката" %}{#inside-cut}

Контент второго уровня.

{% endcut %}

{% endcut %}

Result:

Link to open an outer cut, link to open a nested cut.

Outer cut title

First-level content.

Nested cut title

Second-level content.

Cut groups

Cuts can be combined into groups using the name parameter. When one cut is expanded, other cuts in the same group are closed.

{% cut "Кат 1" %}{name=cutgroup}

Контент первого ката.

{% endcut %}

{% cut "Кат 2" %}{name=cutgroup}

Контент второго ката.

{% endcut %}

{% cut "Кат 3" %}{#cut-3 name=cutgroup}

Контент второго ката.

{% endcut %}

Result:

Cut 1

Content of the first cut.

Cut 2

Content of the second cut.

Cut 3

Content of the third cut.

Note

Cuts do not support the ability to expand an element by default.