Only provide links to pages under /pages

This commit is contained in:
Tony Blyler 2017-01-17 14:33:43 -05:00
parent b984f79ab3
commit dac4da61b1
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
{{ range first 1 (where .Site.Pages "Type" "post") }} {{ range first 1 (where .Site.Pages "Type" "post") }}
<a href="/post/">Archive</a> <a href="/post/">Archive</a>
{{ end }} {{ end }}
{{ range where .Site.Pages "Type" "!=" "post" }} {{ range where .Site.Pages "Section" "pages" }}
<a href="{{ .RelPermalink }}">{{ .Title }}</a> <a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ end }} {{ end }}
<a href="#top">Top</a> <a href="#top">Top</a>

View file

@ -56,7 +56,7 @@
{{ range first 1 (where .Site.Pages "Type" "post") }} {{ range first 1 (where .Site.Pages "Type" "post") }}
<a href="/post/">Archive</a> <a href="/post/">Archive</a>
{{ end }} {{ end }}
{{ range where .Site.Pages "Type" "!=" "post" }} {{ range (where .Site.Pages "Section" "pages") }}
<a href="{{ .RelPermalink }}">{{ .Title }}</a> <a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ end }} {{ end }}
</div> </div>