Document i18n for menu macro

master
southerntofu 2020-03-30 12:53:45 +02:00
parent 0323206585
commit 4adf4bb944
1 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,12 @@ Provide the widget with a content page
{{ widgets::menu(content="_common/menus/main.md") }} {{ 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: Separate entries with a thematic break:
either ---, ~~~, ___ or <hr /> either ---, ~~~, ___ or <hr />