feat(header): support multilingual meta tags in sections

Builds upon #154.
This commit is contained in:
welpo
2023-09-14 01:04:05 +02:00
parent 78c0f712c1
commit 465bc55b9a
2 changed files with 17 additions and 9 deletions

View File

@@ -83,7 +83,7 @@
<meta property="og:type" content="article" />
{# Add og:locale and hreflang tags for multilingual sites #}
{%- if config.languages | length > 0 %}
{%- if config.languages | length > 0 and current_url %}
{%- include "partials/multilingual_tags.html" -%}
{%- else -%}
<meta property="og:locale" content="{{ macros_translate::translate(key="date_locale", default="en_GB", language_strings=language_strings) }}" />