feat: add default og:image for non page sites
This commit is contained in:
parent
705c87ab12
commit
35a33d681b
|
@ -24,6 +24,7 @@ description: >- # this means to ignore newlines until "baseurl:"
|
|||
Understand and mitigate security threats others won't see coming.
|
||||
baseurl: "" # the subpath of your site, e.g. /blog
|
||||
url: "https://distrust.co" # the base hostname & protocol for your site, e.g. http://example.com
|
||||
banner: "https://distrust.co/assets/base/distrust-logo.png"
|
||||
|
||||
header_pages:
|
||||
- index.md
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<meta content="{{ page.title }}" property="og:title" />
|
||||
<meta content="article" property="og:type" />
|
||||
{% else %}
|
||||
<meta content="{{ site.banner }}" property="og:image" />
|
||||
<meta content="{{ site.title }}" property="og:title" />
|
||||
<meta content="website" property="og:type" />
|
||||
{% endif %} {% if page.summary %}
|
||||
|
|
Loading…
Reference in New Issue