27 lines
913 B
HTML
27 lines
913 B
HTML
{% macro render_header() %}
|
|
{% set section = get_section(path="_index.md") %}
|
|
|
|
|
|
<a href="{{ section.permalink }}">
|
|
<div class="logo">
|
|
<img src="{{ get_url(path=config.extra.juice_logo_path) }}" alt="logo">
|
|
{{ config.extra.juice_logo_name }}
|
|
</div>
|
|
</a>
|
|
|
|
<nav>
|
|
<ul>
|
|
{% for subpath in section.subsections %}
|
|
{% set sub = get_section(path=subpath) %}
|
|
{% if not 'hide_from_menu' in sub.extra or not sub.extra.hide_from_menu %}
|
|
<li><a class="nav-item text" href="{{ sub.permalink }}">{{ sub.title }}</a></li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% if config.extra.juice_extra_menu %}
|
|
{% for menu in config.extra.juice_extra_menu %}
|
|
<li><a class="nav-item text" href="{{ menu.link }}">{{ menu.title }}</a></li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|
|
{% endmacro render_header %}
|