diff options
author | uvok cheetah | 2020-01-05 17:12:31 +0100 |
---|---|---|
committer | uvok cheetah | 2020-01-05 17:12:45 +0100 |
commit | f24646d5541699720abd0de733d71662a2053ee6 (patch) | |
tree | 2407d3bf43b05ecf18d4a2dc3cb3ec8a99282250 /_layouts/post.html | |
parent | 882c047fde648a9fef3d208b02efab83ec2681cd (diff) |
Add update date to posts
Diffstat (limited to '_layouts/post.html')
-rw-r--r-- | _layouts/post.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/_layouts/post.html b/_layouts/post.html index 1cd1a12..4777b00 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -11,6 +11,13 @@ layout: default {%- assign date_format = "%A, %e. %B %Y, %k:%M" -%} {{ page.date | date: date_format }} </time> + {%- if page.last_modified_at.size -%} + • + <time class="dt-updated" datetime="{{ post.last_modified_at | date_to_xmlschema }}" itemprop="dateUpdated"> + Updated: {{ page.last_modified_at | date: date_format }} + </time> + {%- endif -%} + {%- if page.author -%} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span> {%- endif -%} |