mirror of
https://github.com/kogakure/website-11ty-kogakure.de.git
synced 2026-02-03 12:15:28 +00:00
fix: meta tags
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
{% if locale === "de" %}{% set localizedDescription = site.description['de'] %}{% endif %}
|
||||
{% if locale === "en" %}{% set localizedDescription = site.description['en'] %}{% endif %}
|
||||
|
||||
{%- set ogTitle -%}
|
||||
{%- if page.url === "/" -%}
|
||||
{{ site.author }} · {{ site.description }}
|
||||
{%- if page.url === "/" or page.url === "/en/" -%}
|
||||
{{ site.title }} · {{ localizedDescription }}
|
||||
{%- else -%}
|
||||
{{ title }} · {{ site.author }}
|
||||
{{ title }} · {{ site.title }}
|
||||
{%- endif -%}
|
||||
{%- endset -%}
|
||||
|
||||
{%- set ogDescription -%}
|
||||
{%- if page.url === "/" -%}
|
||||
{{ site.description }}
|
||||
{%- if page.url === "/" or page.url === "/en/" -%}
|
||||
{{ localizedDescription }}
|
||||
{%- else -%}
|
||||
{{ description or title }}
|
||||
{{ excerpt or title }}
|
||||
{%- endif -%}
|
||||
{%- endset -%}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user