Fix: List regular pages not sections on home page

This commit is contained in:
sheychen 2019-11-03 21:20:45 +01:00
parent e5d353f641
commit 00a58e7e22
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{{ define "main" -}} {{ define "main" -}}
<div class="posts"> <div class="posts">
{{ $paginator := .Paginate (where .Data.Pages ".Params.unlisted" "!=" "true") }} {{ $paginator := .Paginate (where .Site.RegularPages ".Params.unlisted" "!=" "true") }}
{{ range $paginator.Pages -}} {{ range $paginator.Pages -}}
<article class="post"> <article class="post">
<h1 class="post-title"> <h1 class="post-title">