all repos — flounder @ dd6e1705334fab5e4e108c3b6b73f109f707cbe2

A small site builder for the Gemini protocol

templates/nav.html (view raw)

 1<nav>
 2  <a href="/">home</a>
 3{{ if .LoggedIn }}
 4  <a href="/my_site">my_site</a>
 5  {{ if .IsAdmin }}
 6  <a href="/admin">admin</a>
 7  {{ end }}
 8  <a href="/logout">logout</a>
 9{{ else }}
10  <a href="/register">register</a>
11  <a href="/login">login</a>
12{{ end }}
13</nav>