all repos — flounder @ 1c780cf98187163d3149ff1a98f04c9657bd69e5

A small site builder for the Gemini protocol

templates/index.html (view raw)

 1{{$domain := .Domain}}
 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>{{.UpdatedTime}}</em>
15  <a href="https://{{.Creator}}.{{$domain}}/{{.Name}}">
16   {{ .Name}}
17  </a>
18</div>
19{{end}}
20{{template "footer" .}}