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

github.com/spookey/slick.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc 'risson' Schmitt <marc.schmitt@risson.space>2020-05-24 01:18:02 +0300
committerMarc 'risson' Schmitt <marc.schmitt@risson.space>2020-05-31 02:34:23 +0300
commit767ebdfcb399f1872a570de1169b6ec17d01bb2a (patch)
tree53177171f73d3c61ef200204c740074515f24a39
parent40ec547a4c42ea2d894ee9ec42e10d95f0f031f6 (diff)
Add last modified date to post meta
-rw-r--r--layouts/partials/post_meta.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html
index 88c07a6..1c8ebdd 100644
--- a/layouts/partials/post_meta.html
+++ b/layouts/partials/post_meta.html
@@ -8,6 +8,13 @@
{{ .Date.Format (default "02 Jan 06 15:04 MST" .Site.Params.dateFmt) }}
</time>
&#x5d;
+ {{- if ne .Date .Lastmod }}
+ <span>Last modified</span> &#x5b;
+ <time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">
+ {{ .Lastmod.Format (default "02 Jan 06 15:04 MST" .Site.Params.dateFmt) }}
+ </time>
+ &#x5d;
+ {{- end }}
{{- end }}
{{- if $showlink }}
{{- $fallback := slice (dict "Identifier" "Categories") (dict "Identifier" "Series") (dict "Identifier" "Tags") }}