Document i18n for menu macro

This commit is contained in:
southerntofu 2020-03-30 12:53:45 +02:00
parent 0323206585
commit 4adf4bb944

View File

@ -6,6 +6,12 @@ Provide the widget with a content page
{{ widgets::menu(content="_common/menus/main.md") }}
If the content page has a translation, it will be
automatically loaded in the current language, as long as
your parent template has a `lang` variable set, like so:
{% set lang = section.lang | default(value=page.lang) %}
Separate entries with a thematic break:
either ---, ~~~, ___ or <hr />