Skip to content

Commit

Permalink
Adds og:site_name support (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
lexicalunit authored Aug 8, 2020
1 parent 332a3ad commit 5490b48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 5 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand All @@ -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 }}">
Expand Down

0 comments on commit 5490b48

Please sign in to comment.