guide.deuxfleurs.fr/templates/_macros.html

22 lines
733 B
HTML
Raw Normal View History

2022-05-10 15:52:28 +00:00
{% 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>
2022-05-11 15:53:45 +00:00
{% for subpath in section.subsections %}
{% set sub = get_section(path=subpath) %}
<a class="nav-item subtitle-text" href="{{ sub.permalink }}">{{ sub.title }}</a>
2022-05-10 15:52:28 +00:00
{% endfor %}
{% if config.extra.juice_extra_menu %}
{% for menu in config.extra.juice_extra_menu %}
<a class="nav-item subtitle-text" href="{{ menu.link }}">{{ menu.title }}</a>
{% endfor %}
{% endif %}
</nav>
2022-05-11 15:53:45 +00:00
{% endmacro render_header %}