about summary refs log tree commit diff stats
path: root/templates/nav.html
blob: a71652e0f522313ad472bb1cca39cb8c975ea220 (plain)
1
2
3
4
5
6
7
8
9
{%- if config.extra.main_menu %}
  {%- for item in config.extra.main_menu %}
    {%- if item.url is matching("https?://") %}
      <a href="{{ item.url }}">{{ item.name }}</a>
    {%- else %}
      <a href="{{ get_url(path=item.url, lang=lang )}}">{{ item.name }}</a>
    {%- endif %}
  {%- endfor %}
{%- endif -%}