From f18eedca5ca2fa0eafe7c406b9012bb772dc244e Mon Sep 17 00:00:00 2001 From: Erika Heidi Date: Fri, 17 Nov 2023 17:36:42 +0100 Subject: [PATCH 1/2] adding information about last article update --- layouts/article/single.html | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/layouts/article/single.html b/layouts/article/single.html index 2e5dba76f3..ea33371909 100644 --- a/layouts/article/single.html +++ b/layouts/article/single.html @@ -30,7 +30,7 @@ {{ $parentTitle }} - + {{ if not .Params.hide_title -}}

{{ .Title }}

@@ -68,7 +68,7 @@

{{ .Title }}

{{end}} {{end}} - + {{ if .Params.images }}
{{range .Params.images}} @@ -76,7 +76,7 @@

{{ .Title }}

{{end}}
{{ end }} - + From 7b9ee87c78b362aef2013f38a928bb844425361b Mon Sep 17 00:00:00 2001 From: Erika Heidi Date: Fri, 17 Nov 2023 18:37:14 +0100 Subject: [PATCH 2/2] Added clause to hide lastmod if needed --- layouts/article/single.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/article/single.html b/layouts/article/single.html index ea33371909..22209df2ff 100644 --- a/layouts/article/single.html +++ b/layouts/article/single.html @@ -88,11 +88,13 @@

{{ .Title }}

{{ .Content }} + {{ if not .Params.hide_lastmod -}} {{ if .Params.lastmod }}

Last updated: {{ time.Format "2006-01-02 15:04" .Params.lastmod }}

{{ end }} + {{ end -}}