From ca5a767418195438e2fe46834aa272ae10c57dee Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Mon, 18 Oct 2021 18:07:44 -0500 Subject: [PATCH] Implement pretty time formatting --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 524be32..fbbcfea 100644 --- a/main.go +++ b/main.go @@ -102,15 +102,15 @@ func generateHTML(sites []HatsSite, w io.Writer) error {

{{.DomainName}}

Fetched
-
{{.FetchTime}}
+
{{.FetchTime.Format "Mon Jan 2 15:04:05 -0700 MST 2006" }}
Title
{{.Title}}
Owner
{{.Owner}}
Since
-
{{.Since}}
+
{{.Since.Format "Mon Jan 2 2006" }}
- screenshot of {{.DomainName}} as of {{.FetchTime}} + screenshot of {{.DomainName}} as of {{.FetchTime.Format {{end}} `)