moonweb hub seo

This commit is contained in:
2026-08-18 08:26:25 +02:00
parent daa6a3a199
commit c3623c4f87
2 changed files with 9 additions and 6 deletions
+6 -4
View File
@@ -3,18 +3,20 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title }} · moonweb.org</title>
<title>{{ title }}{% if 'moonweb' not in title %} · moonweb.org{% endif %}</title>
<meta name="description" content="{{ description }}">
<meta name="author" content="Stefan Koelle">
<meta name="theme-color" content="{% if section == 'hub' %}#3b6ea5{% elif section == 'infra' %}#99333A{% elif section == 'smarthome' %}#1f8a8a{% elif section == 'code' %}#3E5098{% elif section == 'retro' %}#8a6d3b{% else %}#3b6ea5{% endif %}">
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
<meta property="og:title" content="{{ title }} · moonweb.org">
<meta property="og:title" content="{{ title }}{% if 'moonweb' not in title %} · moonweb.org{% endif %}">
<meta property="og:description" content="{{ description }}">
{% if ogImage %}<meta property="og:image" content="{{ site.url }}{{ ogImage }}">{% endif %}
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
<meta property="og:type" content="{% if parent %}article{% else %}website{% endif %}">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="{{ title }} · moonweb.org">
<meta name="twitter:title" content="{{ title }}">
<meta name="twitter:description" content="{{ description }}">
{% if ogImage %}<meta name="twitter:image" content="{{ site.url }}{{ ogImage }}">{% endif %}
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
@@ -31,7 +33,7 @@
{ "@type": "ListItem", "position": 2, "name": "{{ title }}", "item": "{{ site.url }}{{ page.url }}" }
]
{% else %}
"name": "{{ title }} · moonweb.org",
"name": "{{ title }}{% if 'moonweb' not in title %} · moonweb.org{% endif %}",
"url": "{{ site.url }}",
"author": { "@type": "Person", "name": "Stefan Koelle" }
{% endif %}