auto-generate descriptions from blog excerpts

This commit is contained in:
Ell 2023-06-05 16:27:32 +02:00
parent 5044786eb8
commit 164c2224a0

View file

@ -2,13 +2,19 @@
<html lang="en">
<head>
{% if page.summary %}
{% assign description = page.summary %}
{% elsif page.excerpt %}
{% assign description = page.excerpt | strip_html | strip_newlines %}
{% endif %}
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title }}</title>
<meta name="author" content="Ellpeck Games">
{% if page.summary %}
<meta name="description" content="{{ page.summary }}">
{% if description %}
<meta name="description" content="{{ description }}">
{% endif %}
<meta name="keywords" content="Ellpeck, Ellpeck Games, Tiny Life, Steam, itch, itch.io, Sandbox, Life Simulator, Simulator, Sim, Isometric, Pixelart, Pixel Art, Retro">
@ -18,8 +24,8 @@
<link rel="icon" href="/favicon.ico">
<meta property="og:title" content="{{ page.title }}">
{% if page.summary %}
<meta property="og:description" content="{{ page.summary }}">
{% if description %}
<meta property="og:description" content="{{ description }}">
{% endif %}
<meta property="og:image" content="https://tinylifegame.com/media/icon.png">
<meta name="twitter:card" content="summary">