Merge pull request #14 from vividvilla/fix-build

fix: build failed due to invalid variable reference
This commit is contained in:
Vivek R 2019-09-19 22:58:13 +05:30 committed by GitHub
commit 074da2dc73
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
Recent posts
</h2>
<div class="posts">
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
{{ range $paginator.Pages }}
<div class="post">