diff options
author | Tony Blyler <tony@blyler.cc> | 2017-01-17 22:33:43 +0300 |
---|---|---|
committer | Tony Blyler <tony@blyler.cc> | 2017-01-17 22:33:43 +0300 |
commit | dac4da61b1efcd15c4962d1f11bfe9653e33dfb8 (patch) | |
tree | 37895ca4cdb72d8b383bd4902d95729fd4e9c058 | |
parent | b984f79ab3b785cbc6d1f4d3d3ed03614ad84753 (diff) |
Only provide links to pages under /pages
-rw-r--r-- | layouts/partials/footer.html | 2 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 4429c6e..6a35401 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -3,7 +3,7 @@ {{ range first 1 (where .Site.Pages "Type" "post") }} <a href="/post/">Archive</a> {{ end }} - {{ range where .Site.Pages "Type" "!=" "post" }} + {{ range where .Site.Pages "Section" "pages" }} <a href="{{ .RelPermalink }}">{{ .Title }}</a> {{ end }} <a href="#top">Top</a> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 702919b..fea34a7 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -56,7 +56,7 @@ {{ range first 1 (where .Site.Pages "Type" "post") }} <a href="/post/">Archive</a> {{ end }} - {{ range where .Site.Pages "Type" "!=" "post" }} + {{ range (where .Site.Pages "Section" "pages") }} <a href="{{ .RelPermalink }}">{{ .Title }}</a> {{ end }} </div> |