Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/tblyler/light-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Blyler <tony@blyler.cc>2017-01-17 22:33:43 +0300
committerTony Blyler <tony@blyler.cc>2017-01-17 22:33:43 +0300
commitdac4da61b1efcd15c4962d1f11bfe9653e33dfb8 (patch)
tree37895ca4cdb72d8b383bd4902d95729fd4e9c058
parentb984f79ab3b785cbc6d1f4d3d3ed03614ad84753 (diff)
Only provide links to pages under /pages
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/header.html2
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>