summaryrefslogtreecommitdiff
path: root/templates/layouts/_default.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/layouts/_default.html')
-rw-r--r--templates/layouts/_default.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/layouts/_default.html b/templates/layouts/_default.html
index ae39408..ae6f8a8 100644
--- a/templates/layouts/_default.html
+++ b/templates/layouts/_default.html
@@ -17,11 +17,11 @@
<sub>high effort, low reward</sub>
<nav class="nav">
<ul>
- {{ range $key, $value := .Nav}}
- {{ if eq $.Path $key }}
- <li><a href="{{$key}}">{{$value.Meta.title}}</a></li>
+ {{ range $vvv, $navPair:= .Nav}}
+ {{ if eq $.Path $navPair.Path }}
+ <li><a href="{{$navPair.Path}}">{{$navPair.Title}}</a></li>
{{else}}
- <li><a class="no-decorations" href="{{$key}}">{{$value.Meta.title}}</a></li>
+ <li><a class="no-decorations" href="{{$navPair.Path}}">{{$navPair.Title}}</a></li>
{{end}}
{{end}}
</ul>