From 5cbbc0a617cc2b888b1bc3cc13c44c563561062d Mon Sep 17 00:00:00 2001 From: Adrien Faure Date: Tue, 28 Nov 2023 14:53:34 +0100 Subject: [PATCH] template: fix contact page --- templates/index.html | 6 +++--- templates/macros/blog.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/index.html b/templates/index.html index 137558d..e8e4a74 100644 --- a/templates/index.html +++ b/templates/index.html @@ -79,12 +79,12 @@

{{trans {% block index_contact -%} {% if lang == config.default_language -%} - {% set contact_in_index = config.extra.menu_items -%} + {% set contact_data = config.extra.menu_items -%} {% else -%} - {% set contact_in_index = config.extra[lang].menu_items -%} + {% set contact_data = config.extra[lang].menu_items -%} {% endif -%} - {% if contact_in_index and contact_in_index == true -%} + {% if config.extra.contact_in_index == true -%}
{{ macros::contact_from_config(section=section, config=config) }} diff --git a/templates/macros/blog.html b/templates/macros/blog.html index ea11d75..dcd17cb 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -18,4 +18,4 @@

{{ page.date }} {% if show_wordcount == true -%} • wordcount: {{ page.word_count }} • {{ page.reading_time }} min read {% endif -%}

{% endif -%} -{% endmacros %} \ No newline at end of file +{% endmacros %}