From 01401a7bec03cb30696e7981f81c138d63331e98 Mon Sep 17 00:00:00 2001 From: mms Date: Tue, 6 Feb 2024 21:38:34 +0100 Subject: todo and lastmod --- layouts/_default/single.html | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) (limited to 'layouts/_default/single.html') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 5886803..ee09c88 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,30 +1,40 @@ {{ define "main" }}
-
- {{- if not (eq .Page.Type "special") }} - {{ if in .Page.Params.category "star-trek" }} - Earthdate - {{ end }} - - {{- end }} - {{ .Page.Content }} {{- if not (in .Params.category "pages") }} + {{- if not (eq .Page.Type "special") }} + + {{ $pubdate := .PublishDate.Format "January 2, 2006" }} + {{ $lastmod := .Lastmod.Format "January 2, 2006" }} + +
+ {{ if eq $pubdate $lastmod }} + Published: + + {{ else }} + + ; updated: + + {{ end }} +
+ + + {{- end }} +
{{ end }} + {{ end }} -- cgit v1.2.3