From ba427a30a7aecec0392fc92b0ec125fcea2a8247 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..6ca312a 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 gt .Lastmod .PublishDate }} + + {{- end }} + {{- end }}
{{ .Content }}