Styling updates
This commit is contained in:
parent
f3d02a7912
commit
373fc1e0f2
6
main.go
6
main.go
|
@ -118,12 +118,14 @@ func generateHTML(sites []HatsSite, w io.Writer) error {
|
||||||
body { max-width: 800px; font-family: sans-serif; margin: auto; }
|
body { max-width: 800px; font-family: sans-serif; margin: auto; }
|
||||||
dt { font-weight: bold; }
|
dt { font-weight: bold; }
|
||||||
img { max-width: 100%; }
|
img { max-width: 100%; }
|
||||||
|
h3 { margin-top: 100px; }
|
||||||
|
* { line-height: 1.5em; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>{n}hats.com domains</h1>
|
<h1>{n}hats.com domains</h1>
|
||||||
<h3>Summary</h3>
|
<h3>Summary</h3>
|
||||||
<ol>
|
<ul>
|
||||||
{{range .}}
|
{{range .}}
|
||||||
{{if .Available}}
|
{{if .Available}}
|
||||||
<li><a href="#{{.DomainName}}">{{.DomainName}}</a> – Available!</li>
|
<li><a href="#{{.DomainName}}">{{.DomainName}}</a> – Available!</li>
|
||||||
|
@ -131,7 +133,7 @@ func generateHTML(sites []HatsSite, w io.Writer) error {
|
||||||
<li><a href="#{{.DomainName}}">{{.DomainName}}</a> – Registered since {{(parseTime .DomainInfo.CreatedDate).Format "Mon Jan 2 2006" }}</li>
|
<li><a href="#{{.DomainName}}">{{.DomainName}}</a> – Registered since {{(parseTime .DomainInfo.CreatedDate).Format "Mon Jan 2 2006" }}</li>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</ol>
|
</ul>
|
||||||
{{range .}}
|
{{range .}}
|
||||||
<h3 id="{{.DomainName}}">{{.DomainName}}</h3>
|
<h3 id="{{.DomainName}}">{{.DomainName}}</h3>
|
||||||
<dl>
|
<dl>
|
||||||
|
|
Loading…
Reference in a new issue