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

github.com/Tazeg/hugo-blog-jeffprod.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTazeg <jeffgazet@gmail.com>2018-08-13 21:55:49 +0300
committerTazeg <jeffgazet@gmail.com>2018-08-13 21:55:49 +0300
commit867034130f11ce74b213ea88d6445be63da2d4dd (patch)
tree796919ef13bc46d613ed576d9ba07d53e89c9b15
parent79393761bf6bc3c80ec52bfe5dfe3cf268c5704d (diff)
Loop throught mainsections to list posts at home
-rw-r--r--layouts/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 38d869c..41a1a8d 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,5 +1,6 @@
{{ define "main" }}
-{{ $paginator := .Paginate (where .Site.Pages "Type" "article").ByPublishDate.Reverse }}
+{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
+{{ $paginator := .Paginate $pages }}
<div class="container">
<div class="columns">
<div class="column is-9">