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-04-19 23:32:28 +0300
committerTony Blyler <tony@blyler.cc>2017-04-19 23:32:28 +0300
commitef661d427ef75775051712162000b33cacfbb5bf (patch)
tree7697c7271f47bddaea6f8c856d960f99f36b599f
parent6c72d41c945cc26fdcba331bbd8122696de8df9a (diff)
Update to remove "Pages"
-rw-r--r--layouts/partials/footer.html4
-rw-r--r--layouts/partials/header.html4
2 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 6a35401..6aed033 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -4,7 +4,9 @@
<a href="/post/">Archive</a>
{{ end }}
{{ range where .Site.Pages "Section" "pages" }}
- <a href="{{ .RelPermalink }}">{{ .Title }}</a>
+ {{ if .IsPage }}
+ <a href="{{ .RelPermalink }}">{{ .Title }}</a>
+ {{ end }}
{{ end }}
<a href="#top">Top</a>
</div>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 06aca4d..a082b59 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -57,6 +57,8 @@
<a href="/post/">Archive</a>
{{ end }}
{{ range (where .Site.Pages "Section" "pages") }}
- <a href="{{ .RelPermalink }}">{{ .Title }}</a>
+ {{ if .IsPage }}
+ <a href="{{ .RelPermalink }}">{{ .Title }}</a>
+ {{ end }}
{{ end }}
</div>