Use Open Graph type 'article' for blog posts (#669)

This commit is contained in:
cketti 2020-06-28 21:53:25 +02:00 committed by GitHub
parent 3ecedf0684
commit 45ef2fc8c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@
- Fixed issue where if a dropdown menu was the last item in the menu bar, it did not have a proper margin on the right - Fixed issue where if a dropdown menu was the last item in the menu bar, it did not have a proper margin on the right
- Add social network link: Mastodon (#646) - Add social network link: Mastodon (#646)
- Add support for sharing pages on new social network: VK (#657) - Add support for sharing pages on new social network: VK (#657)
- Use Open Graph type 'article' for blog posts (#669)
## v3.0.0 2020-05-07 ## v3.0.0 2020-05-07

View File

@ -64,7 +64,13 @@
{% endif %} {% endif %}
{% if page.id %}
<meta property="og:type" content="article">
<meta property="og:article:author" content="{{ site.author }}">
<meta property="og:article:published_time" content="{{ page.date | date_to_xmlschema }}">
{% else %}
<meta property="og:type" content="website"> <meta property="og:type" content="website">
{% endif %}
{% if page.id %} {% if page.id %}
<meta property="og:url" content="{{ page.url | absolute_url }}"> <meta property="og:url" content="{{ page.url | absolute_url }}">