From 985356ec64fb4cdfb2d4eb183f1aed866acdd32b Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 14 Jul 2020 18:03:33 -0500 Subject: [PATCH] Add date posted to single blog view --- themes/lyte/layouts/_default/single.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/themes/lyte/layouts/_default/single.html b/themes/lyte/layouts/_default/single.html index b228e38..2f80b3f 100644 --- a/themes/lyte/layouts/_default/single.html +++ b/themes/lyte/layouts/_default/single.html @@ -3,6 +3,11 @@ {{ end }} {{ define "main" }} +

+ {{ with .Lastmod }} + Posted on {{ dateFormat "Jan 2 2006" . }} + {{ end }} +

{{ .Title }}

{{ .Content }} {{ end }}