internal/home: Add a status page on home

This commit is contained in:
Tom Wiesing 2022-10-06 15:32:02 +02:00
parent 7cda92b342
commit 3d4db1744b
No known key found for this signature in database
9 changed files with 301 additions and 118 deletions

View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<title>WissKI Distillery</title>
<h1>WissKI Distillery</h1>
<p>
For more information, see <a href="{{ .SelfRedirect }}">{{ .SelfRedirect }}</a>.
</p>
<h2>WissKIs on this Distillery</h2>
<div>
{{range .Instances}}
{{ if .Running }}
<h3>{{.Slug}}</h3>
<p>
<a href="{{.URL}}" target="_blank" rel="noopener noreferrer">{{.URL}}</a><br />
</p>
{{ end }}
{{ end }}
</div>
<hr />
<footer>
Generated at <code>{{ .Time }}</code>
</footer>