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 %}