From d3234c28fdfac8e01e52b8a25cad278f73814925 Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Sun, 8 Oct 2023 23:21:37 +0100 Subject: [PATCH] Add date timestamp in html meta --- layouts/partials/head.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 601e35ed..f77ecf5b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -5,6 +5,9 @@ +{{- $modified := .Lastmod -}} +{{- if .IsHome }}{{ with getenv "HUGO_LAST_UPDATE_TIME" }}{{ $modified = time . }}{{ end }}{{ end -}} + {{/* IndieWeb */}}