From dac4da61b1efcd15c4962d1f11bfe9653e33dfb8 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Tue, 17 Jan 2017 14:33:43 -0500 Subject: [PATCH] Only provide links to pages under /pages --- layouts/partials/footer.html | 2 +- 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") }} Archive {{ end }} - {{ range where .Site.Pages "Type" "!=" "post" }} + {{ range where .Site.Pages "Section" "pages" }} {{ .Title }} {{ end }} Top 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") }} Archive {{ end }} - {{ range where .Site.Pages "Type" "!=" "post" }} + {{ range (where .Site.Pages "Section" "pages") }} {{ .Title }} {{ end }}