all repos — flounder @ dd52cd247d7bc0f86bbb64c9fa33f4355d6f9b7b

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>