all repos — flounder @ f516ef62ea08f7a54e40aabba9931f65d87dde05

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