guide.deuxfleurs.fr/templates/_macros.html

26 lines
798 B
HTML
Raw Permalink Normal View History

2022-05-10 15:52:28 +00:00
{% macro render_header() %}
{% set section = get_section(path="_index.md") %}
2022-12-21 23:07:05 +00:00
2022-05-10 15:52:28 +00:00
<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-12-21 23:07:05 +00:00
<ul>
{% for subpath in section.subsections %}
{% set sub = get_section(path=subpath) %}
<li><a class="nav-item text" href="{{ sub.permalink }}">{{ sub.title }}</a></li>
2022-05-10 15:52:28 +00:00
{% endfor %}
2022-12-21 23:07:05 +00:00
{% 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>
2022-05-10 15:52:28 +00:00
</nav>
2022-05-11 15:53:45 +00:00
{% endmacro render_header %}