mirror of https://github.com/IoTcat/kayo.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
629 B
23 lines
629 B
4 years ago
|
<div class="logo-wrapper">
|
||
|
<a href="{{ url_for('.') }}" class="logo">{{ config.title }}</a>
|
||
|
</div>
|
||
|
|
||
|
<nav class="site-navbar">
|
||
|
{%- if theme.menu -%}
|
||
|
<ul id="menu" class="menu">
|
||
|
{%- for name, path in theme.menu -%}
|
||
|
<li class="menu-item">
|
||
|
<a class="menu-item-link" href="{{ url_for(path) }}">
|
||
|
{%- set itemName = __('menu.' + name.toLowerCase()) -%}
|
||
|
{%- if itemName.startsWith('menu') -%}
|
||
|
{{ name }}
|
||
|
{%- else -%}
|
||
|
{{ itemName }}
|
||
|
{%- endif -%}
|
||
|
</a>
|
||
|
</li>
|
||
|
{%- endfor -%}
|
||
|
</ul>
|
||
|
{%- endif -%}
|
||
|
</nav>
|