all repos — flounder @ 4e70232a94d9c007adea317afd85d2f115160912

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  <a href="/me">me</a>
 6  {{ if .IsAdmin }}
 7  <a href="/admin">admin</a>
 8  {{ end }}
 9  <a href="/logout">logout</a>
10{{ else }}
11  <a href="/register">register</a>
12  <a href="/login">login</a>
13{{ end }}
14</nav>