diff options
author | Tazeg <jeffgazet@gmail.com> | 2018-08-13 21:55:49 +0300 |
---|---|---|
committer | Tazeg <jeffgazet@gmail.com> | 2018-08-13 21:55:49 +0300 |
commit | 867034130f11ce74b213ea88d6445be63da2d4dd (patch) | |
tree | 796919ef13bc46d613ed576d9ba07d53e89c9b15 | |
parent | 79393761bf6bc3c80ec52bfe5dfe3cf268c5704d (diff) |
Loop throught mainsections to list posts at home
-rw-r--r-- | layouts/index.html | 3 |
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"> |