bune.city/_layouts/default.html

89 lines
3.0 KiB
HTML

<!DOCTYPE html>
<html lang="en-AU">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>{{ page.title }} - {{ site.title }}</title>
<link rel="stylesheet" href="/assets/style.css">
<link rel='stylesheet' href='/assets/fonts/style.css'>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&display=swap" rel="stylesheet">
<link rel='stylesheet' href='/assets/material/style.css'>
<!-- opengraph -->
<meta property="og:title" content="{{ page.title }}">
<meta property="og:site_name" content="{{ site.title }}">
<meta property="og:description" content="{{ page.summary | default: 'my personal blog about software and more!' }}">
<meta property="og:image" content="https://lynnesbian.space/assets/img/bune.png">
<meta property="og:image:alt" content="A drawing of a rabbit sniffing the air and smiling.">
<meta property="og:url" content="{{ page.url | absolute_url }}">
{%- if page.collection == "posts" %}
{%- assign summary = page.summary %}
{%- unless summary %}
{%- assign summary = page.excerpt | summarise %}
{%- endunless %}
{%- assign modified_date = page.updated %}
{%- unless modified_date %}
{%- assign modified_date = page.date %}
{%- endunless %}
<meta property="og:type" content="article">
<meta property="og:article:published_time" content="{{ page.date | date_to_xmlschema }}">
<meta property="og:article:author" content="{{ page.author | default: 'Unknown' }}">
<meta property="og:article:section" content="{{ page.categories.first | default: 'Uncategorised' }}">
{%- for tag in page.tags %}
<meta property="og:article:tag" content="{{ tag }}">
{%- endfor %}
<!-- schema.org -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "{{ page.url | absolute_url }}"
},
"language": "en_AU",
"headline": "{{ page.title }}",
"articleSection": "{{ page.categories.first | default: 'Uncategorised' }}",
"datePublished": "{{ page.date | date_to_xmlschema }}",
"dateModified": "{{ modified_date | date_to_xmlschema }}",
"author": {
"@type": "Person",
"name": "{{ page.author | default: 'Unknown' }}"
},
"license": "https://creativecommons.org/licenses/by-sa/4.0/",
"publisher": {
"@type": "Organization", // ;)
"name": "bune dot city",
"logo": {
"@type": "ImageObject",
"url": "{{ '/assets/img/shitty-amp-compliant-logo.png' | absolute_url }}",
"height": 60,
"width": 600
}
},
"image": [
{%- for image in page.images %}
"{{ image }}"{% unless image == page.images.last %},{% endunless %}
{%- endfor %}
],
"keywords": [
{%- for tag in page.tags %}
"{{ tag }}"{% unless tag == page.tags.last %},{% endunless %}
{%- endfor %}
],
"description": "{{ summary }}"
}
</script>
{%- endif %}
<meta property="og:locale" content="en_AU">
</head>
<body>
{{ content }}
</body>
</html>