all repos — flounder @ 2288de584673446ab895d57b269bc7f345a5542f

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