Set post excerpt as meta description when available

This commit is contained in:
eggy 2021-07-10 22:16:06 -04:00
parent 5806ef343b
commit 11f88bbd03
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
"name": "Eggy", "name": "Eggy",
"url": "https://eggworld.tk", "url": "https://eggworld.tk",
"title": "Eggworld", "title": "Eggworld",
"description": "Personal website", "description": "Ramblings and ideas",
"github": "https://github.com/potatoeggy", "github": "https://github.com/potatoeggy",
"twitter": "https://twitter.com/potatoeggy", "twitter": "https://twitter.com/potatoeggy",
"linkedin": "https://linkedin.com/in/potatoeggy", "linkedin": "https://linkedin.com/in/potatoeggy",

View File

@ -5,7 +5,7 @@
<meta name='viewport' content='width=device-width'> <meta name='viewport' content='width=device-width'>
<title>{{ title }} | {{ site.title }}</title> <title>{{ title }} | {{ site.title }}</title>
<meta name="description" content="{{ site.description }}"> <meta name="description" content="{% if post_excerpt %}{{ post_excerpt }}{% else %}{{ site.description }}{% endif %}">
<meta name="theme-color" content="#ffffff"/> <meta name="theme-color" content="#ffffff"/>
<link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon/favicon-32x32.png">