From 61b1cffd158cc02f29bced4119d1f1451e6b62e8 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Tue, 12 Apr 2022 12:35:34 +0200 Subject: [PATCH] Show revision date if added --- layouts/partials/content.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/layouts/partials/content.html b/layouts/partials/content.html index c336a97..324135c 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -5,6 +5,13 @@ {{ if .IsPage }}

{{ partial "content-details.html" . }}

+ + + {{ if and (not .Lastmod.IsZero) (not (.Lastmod.Equal .Date)) }} + + Article revised in: {{ .Lastmod.Format "January 2 2006" }} + + {{ end }} {{ end }} {{ if .Content }}