Adds og:site_name support (#699)

This commit is contained in:
Amy Troschinetz 2020-08-07 23:18:14 -07:00 committed by GitHub
parent 332a3adaa2
commit 5490b4841d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,6 @@
## Unreleased version
- Add Open Graph `site_name` field
- Add `text-col `config setting for main text color (#694)
- Add `keywords` config setting to set the meta keywords on all pages (for SEO purposes) (#691)
- Add `mobile-theme-col` config setting to allow a mobile theme colour (#692)

View File

@ -63,6 +63,10 @@
<meta property="fb:app_id" content="{{ site.fb_app_id }}">
{% endif %}
{% if site.title %}
<meta property="og:site_name" content="{{ site.title }}">
{% endif %}
{% if page.meta-title %}
<meta property="og:title" content="{{ page.meta-title }}">
{% elsif page.title %}
@ -71,7 +75,7 @@
<meta property="og:title" content="{{ site.title }}">
{% endif %}
{% if page.meta-description %}
{% if page.meta-description %}
<meta property="og:description" content="{{ page.meta-description }}">
{% elsif page.subtitle %}
<meta property="og:description" content="{{ page.subtitle }}">