all repos — flounder @ 7e0b032dd3df947f42db5dd912a424c88ce03c03

A small site builder for the Gemini protocol

templates/index.html (view raw)

 1{{$domain := .Domain}}
 2{{template "header" .}}
 3<h1>{{.PageTitle}}</h1>
 4<h2>All users:</h2>
 5{{ range .Users}}
 6<a href="https://{{.}}.{{$domain}}" class='person-link'>{{.}}</a>
 7{{end}}
 8<h2>Recently updated files:</h2>
 9{{ range .Files }}
10<div>
11  <a href="https://{{.Creator}}.{{$domain}}" class='person-link'>
12   {{ .Creator }}</a>
13  <em>{{.UpdatedTime}}</em>
14  <a href="https://{{.Creator}}.{{$domain}}/{{.Name}}">
15   {{ .Name}}
16  </a>
17</div>
18{{end}}
19{{template "footer" .}}