From 936d286b62465630eea3e743b48931e1b2ee7827 Mon Sep 17 00:00:00 2001 From: Dave Minter Date: Wed, 24 Oct 2018 21:20:14 +0200 Subject: [PATCH] Add an 'Updated' entry to the single page banner when lastmod mismatches date --- layouts/_default/single.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index de3f1218..f48e6ef4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,6 +3,7 @@

{{ .Title | markdownify }}

{{ with .Params.author }}

{{ . }}

{{ end }} {{ if (gt .Params.date 0) }}

{{ .Date.Format "2006/01/02" }}

{{ end }} +{{ if not (eq .Lastmod .Date) }}Updated {{ .Lastmod.Format "2006/01/02" }}{{ end }}