summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layouts/page.html17
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>