bune.city/_layouts/default.html

92 lines
3.2 KiB
HTML
Raw Normal View History

2020-04-03 05:37:20 +00:00
<!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>
2020-04-05 06:34:03 +00:00
<link rel="stylesheet" href="/assets/style.css">
<link rel='stylesheet' href='/assets/fonts/style.css'>
2020-04-03 05:37:20 +00:00
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&display=swap" rel="stylesheet">
<link rel='stylesheet' href='/assets/material/style.css'>
2020-04-05 06:34:03 +00:00
<!-- 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' }}">
2020-04-05 08:41:13 +00:00
<meta property="og:locale" content="en_AU">
2020-04-05 06:34:03 +00:00
{%- 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>
<script src='/assets/post.js'></script>
2020-04-05 06:34:03 +00:00
{%- endif %}
<script src='/assets/script.js'></script>
2020-04-05 08:41:13 +00:00
<script async src="https://ackee.lynnesbian.space/script.js" data-ackee-server="https://ackee.lynnesbian.space" data-ackee-domain-id="49c9dc73-8e0f-4a0c-ba6f-47a69a2cbaca"></script>
2020-04-03 05:37:20 +00:00
</head>
<body>
{{ content }}
</body>
</html>