Skip to content

Commit

Permalink
template: fix contact page
Browse files Browse the repository at this point in the history
  • Loading branch information
adfaure committed Nov 28, 2023
1 parent 63e3095 commit 5cbbc0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ <h2 class="font-bold font-sans break-normal text-gray-900 text-2xl py-1">{{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 -%}
<div class="{% if index % 2 != 0%} bg-white {% else %} bg-gray-50 {% endif %}">
<div class="container max-w-4xl mx-auto px-4">
{{ macros::contact_from_config(section=section, config=config) }}
Expand Down
2 changes: 1 addition & 1 deletion templates/macros/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ <h2 class="text-xl font-bold text-blue-600 hover:text-blue-800 visited:text-purp
<p class="text-sm text-slate-400"> {{ page.date }} {% if show_wordcount == true -%} • wordcount: {{ page.word_count }} • {{ page.reading_time }} min read {% endif -%}</p>
</a>
{% endif -%}
{% endmacros %}
{% endmacros %}

0 comments on commit 5cbbc0a

Please sign in to comment.