Parameter name is more consistent with other macros

This commit is contained in:
southerntofu 2020-04-22 22:34:55 +02:00
parent 52c1d97e6a
commit 86206feb8e
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@
{% endif %}
{% if translations %}{{ widgets::translations(translations=translations) }}{% endif %}
{% if config.extra.menu and config.extra.menu != "disabled" %}
{{ widgets::menu(content="_common/menu.md") }}
{{ widgets::menu(path="_common/menu.md") }}
{% elif config.extra.menu != "disabled" %}
<h2>Point config.extra.menu to a Markdown page and you will have a navigation menu</h2>
{% endif %}

View File

@ -21,9 +21,9 @@ a submenu. A submenu is an actual list
You cannot use <p> tags in the menu.
######################################}
{% macro menu(content) %}
{% macro menu(path) %}
<nav class="nav-menu" role="navigation">
{%- set source = self::i18n_content(path=content) -%}
{%- set source = self::i18n_content(path=path) -%}
{% set entries = source | split(pat="<hr />") %}
{#- fetch page content and divide it with separator -#}
{%- for entry in entries %}