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:
authorAlan <alan@yggdrasil.net>2020-07-17 15:01:16 +0300
committerThibaud Lepretre <thibaud.lepretre@gmail.com>2021-08-11 15:04:00 +0300
commit7c5505a45abb14e248cf13fc5524e21431355840 (patch)
tree37f1db6bba6f7fa508506a3583e20a52802d2dab
parent4832198953900279adf45e47649c921afb78d925 (diff)
MOD: use mainSections in main index too
-rw-r--r--layouts/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index db94714..6fa34dc 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -9,7 +9,7 @@
{{ if eq .Params.covermeta "out" }}hasCoverMetaOut{{ else }}hasCoverMetaIn{{ end }}
{{ with .Params.coverCaption }}hasCoverCaption{{ end }}">
<section class="postShorten-group main-content-wrap">
- {{ $paginator := .Paginate (where .Site.RegularPages "Type" "posts") }}
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections ) }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}