From 8a862c65e678b728f37633fa094eb35c54765e50 Mon Sep 17 00:00:00 2001 From: Landon Taylor Date: Fri, 13 Jun 2025 15:13:04 -0600 Subject: [PATCH] Add date --- layouts/home.html | 2 +- layouts/page.html | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/layouts/home.html b/layouts/home.html index 49b716f..c63e638 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -43,7 +43,7 @@ {{ $dateMachine := now | time.Format "2006-01-02T15:04:05-07:00" }} {{ $dateHuman := now | time.Format "2 January 2006" }} Made with ♥ using Hugo
- Rebuilt on + Built {{ end }} diff --git a/layouts/page.html b/layouts/page.html index aefad9a..aad7234 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -23,10 +23,20 @@ {{ .Content }} +
+ {{ if .Date }} - {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} - {{ $dateHuman := .Date | time.Format ":date_long" }} -

Updated

+ {{ end }} +
{{ end }}