Added meta tags to posts

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2018-03-16 10:15:33 +01:00
parent 5a2b8cfc48
commit 5d1d008a0f
2 changed files with 29 additions and 0 deletions

View File

@ -1,6 +1,11 @@
---
layout: default
---
{% if page.date_modified %}
{% assign modified = page.date_modified %}
{% else %}
{% assign modified = page.date %}
{% endif %}
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
@ -10,6 +15,7 @@ layout: default
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{{ page.date | date: "%b %-d, %Y" }}
</time>
<meta content="{{ modified | date_to_xmlschema }}" itemprop="dateModified" />
{% if page.author %} • <span class="far fa-user"></span>
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">{{ page.author }}</span>