all repos — flounder @ 9bf79136159cacf43fc95e56b467fe1143317c96

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<h2>All users:</h2>
 6{{ range .Users}}
 7<a href="https://{{.}}.{{$domain}}" class='person-link'>{{.}}</a>
 8{{end}}
 9<h2>Recently updated files:</h2>
10{{ range .Files }}
11<div>
12  <a href="https://{{.Creator}}.{{$domain}}" class='person-link'>
13   {{ .Creator }}</a>
14  <em>{{.TimeAgo}}</em>
15  <a href="https://{{.Creator}}.{{$domain}}/{{.Name}}">
16   {{ .Name}}
17  </a>
18</div>
19{{end}}
20{{template "footer" .}}