From de7f70b11d8b4594ffea1d8871948a184349c1ba Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Mon, 18 Oct 2021 19:28:23 -0500 Subject: [PATCH] Clean up template --- main.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 17d8f5e..5e37e11 100644 --- a/main.go +++ b/main.go @@ -139,17 +139,21 @@ func generateHTML(sites []HatsSite, w io.Writer) error {
Fetched
{{.FetchTime.Format "Mon Jan 2 15:04:05 -0700 MST 2006" }}
-
Title
-
{{.Title}}
Owner
{{.Registrant.Name}} <{{.Registrant.Email}}>
- {{with .DomainInfo.CreatedDate}} + {{if not .Available}}
Since
-
{{(parseTime .).Format "Mon Jan 2 2006" }}
+
{{(parseTime .DomainInfo.CreatedDate).Format "Mon Jan 2 2006" }}
+ {{end}} + {{with .Title}} +
Title
+
{{.}}
{{end}}
+ {{if .ScreenshotURL}} screenshot of {{.DomainName}} as of {{.FetchTime.Format {{end}} + {{end}} `) if err != nil {