Set post excerpt as meta description when available
This commit is contained in:
parent
5806ef343b
commit
11f88bbd03
@ -2,7 +2,7 @@
|
||||
"name": "Eggy",
|
||||
"url": "https://eggworld.tk",
|
||||
"title": "Eggworld",
|
||||
"description": "Personal website",
|
||||
"description": "Ramblings and ideas",
|
||||
"github": "https://github.com/potatoeggy",
|
||||
"twitter": "https://twitter.com/potatoeggy",
|
||||
"linkedin": "https://linkedin.com/in/potatoeggy",
|
||||
|
@ -5,7 +5,7 @@
|
||||
<meta name='viewport' content='width=device-width'>
|
||||
|
||||
<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"/>
|
||||
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon/favicon-32x32.png">
|
||||
|
Loading…
Reference in New Issue
Block a user