From 90a80366a1dc7ce983481429174032431c1e23d7 Mon Sep 17 00:00:00 2001 From: TheGroundZero <2406013+TheGroundZero@users.noreply.github.com> Date: Wed, 26 Aug 2020 13:49:16 +0200 Subject: [PATCH] Add LastMod time in article info Add the date of the last modification to the line with the publish date --- layouts/posts/single.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 35899b6..5313009 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -75,6 +75,7 @@ {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .Date.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .Date.Local }}{{ end }} + {{ if .LastMod }} (Last updated: {{ if .Site.Params.dateformNumTime }}{{ dateFormat .Site.Params.dateformNumTime .LastMod.Local }}{{ else }}{{ dateFormat "2006-01-02 15:04 -0700" .LastMod.Local }}){{ end }}

{{- if .GitInfo }}