src

Go monorepo.
git clone git://code.dwrz.net/src
Log | Files | Refs

nav.gohtml (624B)


      1 {{ define "nav" }}
      2   {{ $view := .View }}
      3   <nav class="nav">
      4     {{ if eq $view "home" }}
      5       | <span>home</span> |
      6     {{ else }}
      7       | <a href="/">home</a> |
      8     {{ end }}
      9     {{ if eq $view "timeline" }}
     10       <span>timeline</span> |
     11     {{ else }}
     12       <a href="/timeline/">timeline</a> |
     13     {{ end }}
     14     <a href="https://code.dwrz.net/src/">code</a> |
     15     {{ if eq $view "cv" }}
     16       <span>cv</span> |
     17     {{ else }}
     18       <a href="/cv/">cv</a> |
     19     {{ end }}
     20     {{ if eq $view "contact" }}
     21       <span>contact</span> |
     22     {{ else }}
     23       <a href="/contact/">contact</a> |
     24     {{ end }}
     25   </nav>
     26 {{ end }}