diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-05 08:45:36 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-05 08:45:36 +0200 |
| commit | 99ac23389533519cff534baa48510315a79f7253 (patch) | |
| tree | d86ee675b17b5278c0ff37528657cc80970f8120 | |
| parent | 7945b1c0581cf046ac0324dc8f6c0cdf37902282 (diff) | |
| download | danixxyz-theme-99ac23389533519cff534baa48510315a79f7253.tar.gz danixxyz-theme-99ac23389533519cff534baa48510315a79f7253.zip | |
fix: correct page.html layout template for is section navigation
| -rw-r--r-- | layouts/page.html | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/layouts/page.html b/layouts/page.html index 09cf39f..8fb2903 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -18,15 +18,14 @@ <nav class="page-nav"> <h3 style="margin-bottom: 1rem;">Other pages</h3> <ul style="list-style: none; margin: 0;"> - {{ range .Site.Sections.By }} - {{ if eq .Type "is" }} - {{ range .Pages }} - <li style="margin-bottom: 0.5rem;"> - <a href="{{ .RelPermalink }}" {{ if eq $.RelPermalink .RelPermalink }}class="active"{{ end }}> - {{ .Title }} - </a> - </li> - {{ end }} + {{ $section := .Site.GetPage "/is" }} + {{ if $section }} + {{ range $section.Pages }} + <li style="margin-bottom: 0.5rem;"> + <a href="{{ .RelPermalink }}" {{ if eq $.RelPermalink .RelPermalink }}class="active"{{ end }}> + {{ .Title }} + </a> + </li> {{ end }} {{ end }} </ul> |
