diff options
author | Emile <git@emile.space> | 2024-11-06 19:03:22 +0100 |
---|---|---|
committer | Emile <git@emile.space> | 2024-11-06 19:03:22 +0100 |
commit | 31a4688f369ffb47e4884a3e5e871ef08f175f43 (patch) | |
tree | 9e5920a07193dc75c9208786b7d9bd82e8f60288 /templates/nav.html | |
parent | 4740f26d28d3b2c9b10cdaaaf1618bcd4bba84fe (diff) |
html updates
Diffstat (limited to 'templates/nav.html')
-rw-r--r-- | templates/nav.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/nav.html b/templates/nav.html index ea1e1af..117f48a 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -16,9 +16,11 @@ <ul> {{ if .pagelink1options }} {{ range $opt := .pagelink1options }} + {{ if eq $opt.Name $.pagelink1.Name }}{{ else }} <li><a class="local" href="{{ $opt.Target }}">{{ $opt.Name }}</a></li> {{ end }} {{ end }} + {{ end }} </ul> </li> {{ end }} @@ -28,9 +30,11 @@ <ul> {{ if .pagelink2options }} {{ range $opt := .pagelink2options }} + {{ if eq $opt.Name $.pagelink2.Name }}{{ else }} <li><a class="local" href="{{ $.pagelink1.Target }}{{ $opt.Target }}">{{ $opt.Name }}</a></li> {{ end }} {{ end }} + {{ end }} </ul> </li> {{ end }} @@ -40,16 +44,18 @@ <ul> {{ if .pagelink3options }} {{ range $opt := .pagelink3options }} + {{ if eq $opt.Name $.pagelink3.Name }}{{ else }} <li><a class="local" href="{{ $.pagelink1.Target }}{{ $.pagelink2.Target }}{{ $opt.Target }}">{{ $opt.Name }}</a></li> {{ end }} {{ end }} + {{ end }} </ul> </li> {{ end }} </ul> <ul style="float: right"> <li> - <a href="https://github.com/HanEmile/r2wars-web">{{ .version }} src</a> + <a href="https://github.com/HanEmile/r2wars-web">{{if .version}}{{ .version }} src{{else}}src{{end}}</a> </li> </ul> </nav> |