mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Display date of last update for posts
This commit is contained in:
@@ -3,6 +3,7 @@ title = "Catching Exceptions"
|
||||
order = 1
|
||||
url = "catching-exceptions"
|
||||
date = "2016-05-28"
|
||||
[extra]
|
||||
updated = "2016-06-25"
|
||||
+++
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ title = "Better Exception Messages"
|
||||
order = 2
|
||||
url = "better-exception-messages"
|
||||
date = "2016-08-03"
|
||||
[extra]
|
||||
updated = "2016-11-01"
|
||||
+++
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ title = "Returning from Exceptions"
|
||||
order = 3
|
||||
url = "returning-from-exceptions"
|
||||
date = "2016-09-21"
|
||||
[extra]
|
||||
updated = "2016-11-01"
|
||||
+++
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ title = "Entering Long Mode"
|
||||
order = 2
|
||||
url = "entering-longmode"
|
||||
date = "2015-08-25"
|
||||
[extra]
|
||||
updated = "2015-10-29"
|
||||
+++
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ title = "Set Up Rust"
|
||||
order = 3
|
||||
url = "set-up-rust"
|
||||
date = "2015-09-02"
|
||||
[extra]
|
||||
updated = "2017-04-12"
|
||||
+++
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ title = "Printing to Screen"
|
||||
order = 4
|
||||
url = "printing-to-screen"
|
||||
date = "2015-10-23"
|
||||
[extra]
|
||||
updated = "2016-10-31"
|
||||
+++
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ title = "Remap the Kernel"
|
||||
order = 7
|
||||
url = "remap-the-kernel"
|
||||
date = "2016-01-01"
|
||||
[extra]
|
||||
updated = "2016-03-06"
|
||||
+++
|
||||
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user