From 765fe2068dbf3e4c2192c120de3b9363d15c0ba9 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Sat, 29 Jun 2024 13:27:32 -0400 Subject: [PATCH] support lastmod --- layouts/_default/single.html | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ed5630e..b274b9a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,7 +3,25 @@

{{ .Title }}

- {{ if .Date }}{{ end }} + + {{- $pubdate := .PublishDate.Format "January 02, 2006" }} + Created: + + + + {{- if .Lastmod }} + {{- $lastmod := .Lastmod.Format "January 02, 2006" }} + {{- if ne $lastmod $pubdate }} + + {{- end }} + {{- end }}
{{ .Content }}