Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/funkydan2/hugo-kiera.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel W. Flint <swflint@flintfam.org>2020-11-11 23:27:32 +0300
committerSamuel W. Flint <swflint@flintfam.org>2020-11-12 01:03:57 +0300
commit957de7229764bbe1b40bf5425112149b3d5c65ab (patch)
tree796699f7a6e5e2bbd2c551050c5273cb437b4605
parent343f342e9fef9306f4e3fa3a021b0d9399e21847 (diff)
Add "modified on" bit in aside layout
Tested-by: Samuel W. Flint <swflint@flintfam.org>
-rw-r--r--i18n/en.toml3
-rw-r--r--i18n/fa.toml3
-rw-r--r--layouts/partials/aside.html5
3 files changed, 11 insertions, 0 deletions
diff --git a/i18n/en.toml b/i18n/en.toml
index c29c00c..d3ca306 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -19,3 +19,6 @@ other = "Rendered by"
[comments]
other = "Add/View Comments"
+
+[modifiedOn]
+other = "modified on"
diff --git a/i18n/fa.toml b/i18n/fa.toml
index 7ed1120..d1c1666 100644
--- a/i18n/fa.toml
+++ b/i18n/fa.toml
@@ -19,3 +19,6 @@ other = "Rendered by"
[comments]
other = "Add/View Comments"
+
+[modifiedOn]
+other = "modified on"
diff --git a/layouts/partials/aside.html b/layouts/partials/aside.html
index d1f39fa..f24a605 100644
--- a/layouts/partials/aside.html
+++ b/layouts/partials/aside.html
@@ -3,6 +3,11 @@
<li>
<time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">{{ .Date.Format "Jan 2, 2006" }}</time>
</li>
+ {{ if ne .Date .Lastmod }}
+ <li>
+ {{ T "modifiedOn" }} <time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">{{ .Lastmod.Format "Jan 2, 2006" }}</time>
+ </li>
+ {{ end }}
{{ if .Params.categories }}
<li>
{{ T "categories" }}