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

github.com/halogenica/beautifulhugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2019-08-19 16:16:50 +0300
committerAntonin Kral <a.kral@bobek.cz>2019-08-19 16:16:50 +0300
commit11317542406ac8064978dcb81ad652bf2c623c45 (patch)
tree34d03fe64559dba695e67d9843d62eaa114c5dc8 /layouts
parent79abb2e4d600600772b594d32e8434f61e83fcab (diff)
Let's use `mainSections` when looking for relevant content for the home page
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index a6b7b27..9381c43 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -9,7 +9,7 @@
{{ end }}
<div class="posts-list">
- {{ $pag := .Paginate (where .Site.RegularPages "Type" "post") }}
+ {{ $pag := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }}
{{ range $pag.Pages }}
<article class="post-preview">
<a href="{{ .Permalink }}">