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 order = 1
url = "catching-exceptions" url = "catching-exceptions"
date = "2016-05-28" date = "2016-05-28"
[extra]
updated = "2016-06-25" updated = "2016-06-25"
+++ +++

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -4,7 +4,10 @@
{% block main %} {% block main %}
<h1>{{ page.title }}</h1> <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 }} {{ page.content | safe }}
{% endblock main %} {% endblock main %}