seo improvements

This commit is contained in:
2026-08-17 19:36:35 +02:00
parent 3dd9a8bea2
commit ecbbe76216
22 changed files with 85 additions and 19 deletions
+19 -1
View File
@@ -5,11 +5,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ title }} · moonweb.org</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:description" content="{{ description }}">
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
<meta property="og:type" content="website">
<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:description" content="{{ description }}">
@@ -19,6 +21,22 @@
<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/shared-base.css">
<link rel="stylesheet" href="/theme.css">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "{% if parent %}BreadcrumbList{% else %}WebSite{% endif %}",
{% if parent %}
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "{{ section }}", "item": "{{ site.url }}/" },
{ "@type": "ListItem", "position": 2, "name": "{{ title }}", "item": "{{ site.url }}{{ page.url }}" }
]
{% else %}
"name": "{{ title }} · moonweb.org",
"url": "{{ site.url }}",
"author": { "@type": "Person", "name": "Stefan Koelle" }
{% endif %}
}
</script>
</head>
<body>
<header class="site-header">
+2
View File
@@ -5,6 +5,8 @@
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
<lastmod>{{ page.date | date }}</lastmod>
<changefreq>{% if page.url == "/" %}weekly{% else %}monthly{% endif %}</changefreq>
<priority>{% if page.url == "/" %}1.0{% elif parent %}0.8{% else %}0.7{% endif %}</priority>
</url>
{%- endif %}
{%- endfor %}