{# #}
is a comment and will not be parsed.
{% if ... %} ... {% else %} ... {% elif %} ... {% endif %}
are conditional statements that execute different code blocks based on the conditions in the parentheses.
{{ ... }}
is a variable and will be parsed into the corresponding value.
Builtin Variables:
content
. The content of the article.lang/language
. The language you set in basic settings.title
. The title of the article.url
. The URL of the article.encodedUrl
. The encoded URL of the article, typically used as a URL query.|
) and can take arguments.
Builtin Filters:
num_tokens
. Calculate the number of tokens of the content.central_part
. Extract the central part of the content.