all repos — flounder @ 212c390c7ec511929c6cd7fef3402446014f0ff5

A small site builder for the Gemini protocol

templates/index.html (view raw)

 1{{$domain := .Host}}
 2{{template "header" .}}
 3<h1>🐟{{.PageTitle}}!</h1>
 4{{template "nav.html" .}}
 5<br>
 6<p>
 7Welcome to flounder! For more information and site updates, check out the <a href="//admin.{{$domain}}">admin page</a></p>
 8
 9<h2>All users:</h2>
10{{ range .Users}}
11<a href="//{{.}}.{{$domain}}" class='person-link'>{{.}}</a>
12{{end}}
13<br>
14<br>
15<h2>Recently updated files:</h2>
16{{ range .Files }}
17<div>
18  <a href="//{{.Creator}}.{{$domain}}" class='person-link'>
19   {{ .Creator }}</a>
20  <em>{{.TimeAgo}}</em>
21  <a href="//{{.Creator}}.{{$domain}}/{{.Name}}">
22   {{ .Name}}
23  </a>
24</div>
25{{end}}
26{{template "footer" .}}