diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-05-10 17:52:28 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-05-10 17:52:28 +0200 |
commit | e9e2af423557b50c416b68559bab7786bee35ff2 (patch) | |
tree | abdc86803f1de9926bd628728a375f3c583a14bc /templates/_macros.html | |
download | guide.deuxfleurs.fr-e9e2af423557b50c416b68559bab7786bee35ff2.tar.gz guide.deuxfleurs.fr-e9e2af423557b50c416b68559bab7786bee35ff2.zip |
Initial commit
Diffstat (limited to 'templates/_macros.html')
-rw-r--r-- | templates/_macros.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/_macros.html b/templates/_macros.html new file mode 100644 index 0000000..88a2f47 --- /dev/null +++ b/templates/_macros.html @@ -0,0 +1,20 @@ +{% 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> + {% for page in section.pages %} + <a class="nav-item subtitle-text" href="{{ page.permalink }}">{{ page.title }}</a> + {% 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> +{% endmacro render_header %}
\ No newline at end of file |