summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok cheetah2020-01-05 17:12:31 +0100
committeruvok cheetah2020-01-05 17:12:45 +0100
commitf24646d5541699720abd0de733d71662a2053ee6 (patch)
tree2407d3bf43b05ecf18d4a2dc3cb3ec8a99282250
parent882c047fde648a9fef3d208b02efab83ec2681cd (diff)
Add update date to posts
-rw-r--r--_layouts/post.html7
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 -%}