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

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaud LeprĂȘtre <thibaud.lepretre@gmail.com>2017-11-01 12:34:41 +0300
committerThibaud LeprĂȘtre <thibaud.lepretre@gmail.com>2017-11-01 12:34:41 +0300
commit6dc6539685d0d3a9d8456bbc4759d014f8b8976f (patch)
tree0c7e92ff0b3aefc0d3b06a2d8ead8d4c08784d48 /layouts/taxonomy/category.terms.html
parentad47a0febc0d460325d4ff6f1a86e720926c0a6e (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.html2
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" ".") }}