mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-22 19:28:35 +01:00
auto-generate descriptions from blog excerpts
This commit is contained in:
parent
5044786eb8
commit
164c2224a0
1 changed files with 10 additions and 4 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue