templates/index.html (view raw)
1{{$domain := .Host}}
2{{template "header" .}}
3<h1>🐟{{.PageTitle}}!</h1>
4{{template "nav.html" .}}
5<br>
6Welcome to flounder! For more information and site updates, check out the <a href="//admin.{{$domain}}">admin page</a>
7<h2>All users:</h2>
8{{ range .Users}}
9<a href="//{{.}}.{{$domain}}" class='person-link'>{{.}}</a>
10{{end}}
11<h2>Recently updated files:</h2>
12{{ range .Files }}
13<div>
14 <a href="//{{.Creator}}.{{$domain}}" class='person-link'>
15 {{ .Creator }}</a>
16 <em>{{.TimeAgo}}</em>
17 <a href="//{{.Creator}}.{{$domain}}/{{.Name}}">
18 {{ .Name}}
19 </a>
20</div>
21{{end}}
22{{template "footer" .}}