feat: add default og:image for non page sites

This commit is contained in:
Anton Livaja 2024-05-21 14:18:12 -04:00
parent 705c87ab12
commit 35a33d681b
Signed by: anton
GPG Key ID: 44A86CFF1FDF0E85
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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 %}