aboutsummaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2019-10-22 17:38:30 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2019-10-22 17:38:30 +0200
commit3689740b0d8d619d1810cbf65808fc9f7bf01e4a (patch)
tree067593add490656a14fa2eeecc6d2a72be3aa78e /_layouts
parentcd286d9f33104e447029b771a8ef6e31d50d6b3a (diff)
downloadjo.mssola.com-3689740b0d8d619d1810cbf65808fc9f7bf01e4a.tar.gz
jo.mssola.com-3689740b0d8d619d1810cbf65808fc9f7bf01e4a.zip
Add modified_at info at the post layout
At the bottom of every blog post, there will now be a small text containing: 1. The localized date of the last modified time the blog post was modified (taking Git as a reference). 2. A link to the log at git.mssola.com for the given file. This way readers have a better understanding of the versioning of a given page. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/post.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index 8a8eb68..1adc02b 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -11,6 +11,7 @@ layout: default
{{ content }}
<div class="post-notice">
+ <p>{% t blog.modified_at %}: {% render_modified_at %}. {% t blog.you_can_check %} {% render_log_link %}.</p>
<p>
{% t blog.notice %}
<a href="https://creativecommons.org/licenses/by-nd/4.0/">Creative Commons BY-ND 4.0</a>.