Parameter name is more consistent with other macros
This commit is contained in:
parent
52c1d97e6a
commit
86206feb8e
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue