templates/index.html (view raw)
1{{template "header" .}}
2<h1>🐟{{.Config.SiteTitle}}!</h1>
3{{template "nav.html" .}}
4<br>
5<p>
6Welcome to {{.Config.SiteTitle}}! For more information and site updates, check out the <a href="//admin.{{$.Config.Host}}">admin page</a></p>
7<h2>Recently updated files:</h2>
8{{ range .Files }}
9<div class="indent-wrap">
10 <a href="//{{.Creator}}.{{$.Config.Host}}" class='person-link'>
11 {{ .Creator }}</a>
12 <em>{{.TimeAgo}}</em>
13 <a href="//{{.Creator}}.{{$.Config.Host}}/{{.Name}}">
14 {{ .Name}}
15 </a> {{ if eq .Creator $.AuthUser.Username }} (<a href="//{{$.Config.Host}}/edit/{{.Name}}">edit</a>){{ end}}
16</div>
17{{end}}
18<br>
19<h2>All users:</h2>
20{{ range .Users}}
21<a href="//{{.}}.{{$.Config.Host}}" class='person-link'>{{.}}</a>
22{{end}}
23<hr class="thin">
24Made with <a href="https://github.com/alexwennerberg/flounder">Flounder</a>
25{{template "footer" .}}