Add summary at the top

This commit is contained in:
Chandler Swift 2021-10-18 18:54:08 -05:00
parent ca5a767418
commit c97fdaedea
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -98,8 +98,14 @@ func generateHTML(sites []HatsSite, w io.Writer) error {
</head> </head>
<body> <body>
<h1>{n}hats.com domains</h1> <h1>{n}hats.com domains</h1>
<h3>Summary</h3>
<ol>
{{range .}}
<li><a href="#{{.DomainName}}">{{.DomainName}}</a> &ndash; Registered since TODO</li>
{{end}}
</ol>
{{range .}} {{range .}}
<h3>{{.DomainName}}</h3> <h3 id="{{.DomainName}}">{{.DomainName}}</h3>
<dl> <dl>
<dt>Fetched</dt> <dt>Fetched</dt>
<dd>{{.FetchTime.Format "Mon Jan 2 15:04:05 -0700 MST 2006" }}</dd> <dd>{{.FetchTime.Format "Mon Jan 2 15:04:05 -0700 MST 2006" }}</dd>