Display date of last update for posts

This commit is contained in:
Philipp Oppermann
2017-06-13 17:35:08 +02:00
parent 6f8999ada5
commit e84c8ac638
8 changed files with 11 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ title = "Catching Exceptions"
order = 1
url = "catching-exceptions"
date = "2016-05-28"
[extra]
updated = "2016-06-25"
+++

View File

@@ -3,6 +3,7 @@ title = "Better Exception Messages"
order = 2
url = "better-exception-messages"
date = "2016-08-03"
[extra]
updated = "2016-11-01"
+++

View File

@@ -3,6 +3,7 @@ title = "Returning from Exceptions"
order = 3
url = "returning-from-exceptions"
date = "2016-09-21"
[extra]
updated = "2016-11-01"
+++

View File

@@ -3,6 +3,7 @@ title = "Entering Long Mode"
order = 2
url = "entering-longmode"
date = "2015-08-25"
[extra]
updated = "2015-10-29"
+++

View File

@@ -3,6 +3,7 @@ title = "Set Up Rust"
order = 3
url = "set-up-rust"
date = "2015-09-02"
[extra]
updated = "2017-04-12"
+++

View File

@@ -3,6 +3,7 @@ title = "Printing to Screen"
order = 4
url = "printing-to-screen"
date = "2015-10-23"
[extra]
updated = "2016-10-31"
+++

View File

@@ -3,6 +3,7 @@ title = "Remap the Kernel"
order = 7
url = "remap-the-kernel"
date = "2016-01-01"
[extra]
updated = "2016-03-06"
+++

View File

@@ -4,7 +4,10 @@
{% block main %}
<h1>{{ page.title }}</h1>
<time datetime="{{ page.date | date(format="%Y-%m-%d") }}" class="post-date">{{ page.date | date(format="%b %d, %Y") }}</time>
<time datetime="{{ page.date | date(format="%Y-%m-%d") }}" class="post-date">
{{ page.date | date(format="%b %d, %Y") }}
{% if page.extra.updated %} (updated on {{ page.extra.updated | date(format="%b %d, %Y") }}) {% endif %}
</time>
{{ page.content | safe }}
{% endblock main %}