mirror of
https://github.com/skoelle/moonweb-site.git
synced 2026-09-17 17:00:25 +00:00
SEO better titles
This commit is contained in:
@@ -3,18 +3,18 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ title }}{% if 'moonweb' not in title %} · moonweb.org{% endif %}</title>
|
||||
<title>{{ title }}{% if 'moonweb' not in title and 'stefankoelle' 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 }}{% if 'moonweb' not in title %} · moonweb.org{% endif %}">
|
||||
<meta property="og:title" content="{{ title }}{% if 'moonweb' not in title and 'stefankoelle' 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 }}">
|
||||
<meta name="twitter:title" content="{{ title }}{% if 'moonweb' not in title and 'stefankoelle' not in title %} · moonweb.org{% endif %}">
|
||||
<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">
|
||||
@@ -33,7 +33,7 @@
|
||||
{ "@type": "ListItem", "position": 2, "name": "{{ title }}", "item": "{{ site.url }}{{ page.url }}" }
|
||||
]
|
||||
{% else %}
|
||||
"name": "{{ title }}{% if 'moonweb' not in title %} · moonweb.org{% endif %}",
|
||||
"name": "{{ title }}{% if 'moonweb' not in title and 'stefankoelle' not in title %} · moonweb.org{% endif %}",
|
||||
"url": "{{ site.url }}",
|
||||
"author": { "@type": "Person", "name": "Stefan Koelle" }
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user