diff options
-rw-r--r-- | layouts/partials/footer.html | 4 | ||||
-rw-r--r-- | layouts/partials/header.html | 4 |
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> |