diff options
author | Thibaud LeprĂȘtre <thibaud.lepretre@gmail.com> | 2017-11-01 12:34:41 +0300 |
---|---|---|
committer | Thibaud LeprĂȘtre <thibaud.lepretre@gmail.com> | 2017-11-01 12:34:41 +0300 |
commit | 6dc6539685d0d3a9d8456bbc4759d014f8b8976f (patch) | |
tree | 0c7e92ff0b3aefc0d3b06a2d8ead8d4c08784d48 /layouts/taxonomy/category.terms.html | |
parent | ad47a0febc0d460325d4ff6f1a86e720926c0a6e (diff) |
Removing unwanted posts link from archives
Since Hugo 0.18 (see note http://bepsays.com/en/2016/12/19/hugo-018/) everything become a page
We should iterate through `.Site.RegularPages` instead of `.Site.Pages`
fixes #203
Diffstat (limited to 'layouts/taxonomy/category.terms.html')
-rw-r--r-- | layouts/taxonomy/category.terms.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/taxonomy/category.terms.html b/layouts/taxonomy/category.terms.html index 275e346..0e50f64 100644 --- a/layouts/taxonomy/category.terms.html +++ b/layouts/taxonomy/category.terms.html @@ -1,6 +1,6 @@ {{ if $.Site.Params.hierarchicalCategories }} {{ $.Scratch.Set "max-level" 0 }} - {{ range where $.Site.Pages "Type" "post" }} + {{ range where $.Site.RegularPages "Type" "post" }} {{ $page := . }} {{ if .Params.categories }} {{ $categories := (apply .Params.categories "urlize" ".") }} |