1
1
mirror of https://github.com/xplosionmind/quitsocialmedia.club.git synced 2024-12-21 21:04:24 +01:00
quitsocialmedia.club/includes/head.html
2023-04-12 21:58:52 +02:00

87 lines
4.1 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% assign absoluteUrl = url | prepend: site.url %}
<head>
<!-- Basic -->
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1, viewport-fit=cover'>
<meta name='mobile-web-app-capable' content='yes'>
<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent'>
<meta name='apple-mobile-web-app-capable' content='yes'>
<meta name='color-scheme' content='dark light'>
<!-- Assets -->
<link rel='preload' href='/style.css' type='text/css' as='style'>
<link rel='stylesheet' href='/style.css' type='text/css'>
<!-- Favicon -->
<link rel='shortcut icon' href='/favicon.svg' type='image/svg+xml'>
<!-- Metadata -->
<title>{% if title %}{{ title }} | {% endif %}{{ site.title }}</title>
<meta property='og:title' content='{% if title %}{{ title }} | {% endif %}{{ site.title }}'>
{% if description != nil %}
<meta name='description' content='{{ description | strip_html | replace: "'", " " }}'>
<meta property='og:description' content='{{ description | strip_html | replace: "'", " " }}'>
{% else %}
<meta name='description' content='{{ site.description }}'>
<meta property='og:description' content='{{ site.description }}'>
{% endif %}
<meta property='og:author' content='{{ site.author.name }}'>
<meta name='author' content='{{ site.author.name }}'>
<meta property='og:site_name' content='{{ site.title }}'>
<meta name='generator' content='Eleventy'>
<meta property='og:url' content='{{ absoluteUrl }}'>
{% if date %}<meta property='og:article:published_time' content='{{ date | date: '%Y-%m-%dT%H:%M:%S%:z' }}'>{% endif %}
{% if updated %}<meta property='article:modified_time' content='{{ updated | date: '%Y-%m-%dT%H:%M:%S%:z' }}'>{% endif %}
<meta property='og:image' content='{% if image %}{{ image }}{% else %}{{ site.image }}{% endif %}'>
<meta name='twitter:card' content='{% if layout == post %}summary_large_image{% else %}summary{% endif %}'>
<meta name='theme-color' content='#F1FAEE' media='(prefers-color-scheme: light)'>
<meta name='theme-color' content='#1D3557' media='(prefers-color-scheme: dark)'>
<link rel='canonical' href='{{ absoluteUrl }}'>
<meta property='og:author' content='{{ site.author.name }}'>
<meta property='og:locale' content='{{ lang }}'>
{% if alternates %}
{% for alternate in alternates %}
<meta property='og:locale:alternate' content='{{ alternate.data.lang }}'>
<link rel='alternate' hreflang='{{ alternate.data.lang }}' href='{{ alternate.url | url }}'>
{% endfor %}
{% endif %}
<!-- IndieAuth + IndieWeb -->
{% comment %}<link rel='microsub' href='https://aperture.p3k.io/microsub/571'>{% endcomment %}
<link rel='openid.delegate' href='https://quitsocialmedia.club'>
<link rel='openid.server' href='https://openid.indieauth.com/openid'>
<link rel='authorization_endpoint' href='https://indieauth.com/auth'>
<link rel='token_endpoint' href='https://tokens.indieauth.com/token'>
<link rel='pingback' href='https://webmention.io/quitsocialmedia.club/xmlrpc'>
<link rel='webmention' href='https://webmention.io/quitsocialmedia.club/webmention'>
<!-- All of Tommis Accounts -->
{% for account in accounts %}
{% if account.deleted == '' and account.url != '' %}
<link rel='me{{ account.attributes }}' href='{{ account.url }}' title='Tommi on {{ account.platform }}'>
{% endif %}
{% endfor %}
<link rel='me pgpkey' href='https://api.protonmail.ch/pks/lookup?op=get&search={{ author.email }}'>
<script type='application/ld+json'>
{
"@context": "https://schema.org",
"@type": "{%- if type -%}{{ type }}{%- else -%}WebPage{%- endif -%}",
"name": "{{ title }}",
"about": "{%- if description -%}{{ description }}{%- else -%}{{ site.description }}{%- endif -%}",
"headline": "{%- if description -%}{{ description }}{%- else -%}{{ site.description }}{%- endif -%}",
"author": {
"@type": "Person",
"name": "{{ tommi.name }}",
"gender": "{{ tommi.gender }}",
"nationality": "{{ tommi.nationality }}",
"image": "{{ tommi.image }}",
"jobTitle": "{{ tommi.jobTitle }}",
},
"url": "{{ url | prepend: site.url }}",
"image": "{{ site.image | prepend: site.url }}",
"sameAs": "{{ source }}"
}
</script>
</head>