Skip to content

Commit

Permalink
fix(index.html): .Site.RegularPages
Browse files Browse the repository at this point in the history
This closes #188, closes #192
  • Loading branch information
olOwOlo committed Sep 8, 2019
1 parent fd1b8d7 commit 5a3e559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- define "content" -}}
<section id="posts" class="posts">
{{/* (index .Site.Paginate) */}}
{{- $paginator := .Paginate (where (where .Data.Pages "Type" "post") ".Params.hiddenfromhomepage" "!=" true) }}
{{- $paginator := .Paginate (where (where .Site.RegularPages "Type" "post") ".Params.hiddenfromhomepage" "!=" true) }}
{{- range $paginator.Pages -}}
{{ .Render "summary" }}
{{ end -}}
Expand All @@ -21,4 +21,4 @@
</a>
{{- end }}
</nav>
{{- end -}}
{{- end -}}

0 comments on commit 5a3e559

Please sign in to comment.