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

github.com/jesselau76/hugo-w3-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjesselau76 <jesselau76@gmail.com>2018-11-13 06:58:00 +0300
committerjesselau76 <jesselau76@gmail.com>2018-11-13 06:58:00 +0300
commitcee148d91b30103bb7153490179b2c81dc380b53 (patch)
treeba18895898ab3f4c485e4c429f1bfcb85379c871 /layouts
parent7b98fe714c813650dd3bed900a2880f7585f0d1f (diff)
example site tested
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index dd6e5eb..f149aa3 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -3,8 +3,7 @@
{{if not .IsHome }}
<h1 class="w3-center">{{ .Title | markdownify }}</h1>
{{ end }}
-{{ $paginator := .Paginate (where .Pages "Type" "post") }}
-
+{{ $paginator := .Paginate (where .Data.Pages "Section" "!=" "") }}
{{ if .Site.Params.gridstyle }}
<!-- grid list style -->