diff options
| author | a73x <[email protected]> | 2024-09-04 12:09:03 +0100 |
|---|---|---|
| committer | a73x <[email protected]> | 2024-09-04 12:09:03 +0100 |
| commit | 933ef3568992802a565d2e6a8d1c7fb231139663 (patch) | |
| tree | 0528f4f1038b02721e8c6fa0116e7eeb42d6aed4 /templates | |
| parent | 62b7922e0ec4c1a21a9509459e5b7c67e8253c87 (diff) | |
fix(html): nav bar ordering
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/layouts/_default.html | 8 |
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> |
