Skip to content
Browse files

Remove .Data.Pages in favor of .Site.RegularPages

Using only .Data.Pages will only show a link to the Post page in the home page. Using .Site.RegularPages returns the homepage to a normal showcase of existing posts. This change happened starting at Hugo >0.57.
  • Loading branch information
recleev committed Oct 2, 2019
1 parent 643be7f commit 123ebe8bb4fd3708fc51dab42613e6a3a7d37d4c
Showing with 1 addition and 1 deletion.
  1. +1 −1 layouts/index.html
@@ -6,7 +6,7 @@ <h2>{{ .Site.Params.subtitle }}</h2>

<div class="content">
{{ range ( .Paginate (where .Data.Pages "Type" "post")).Pages }}
{{ range ( .Paginate (where .Site.RegularPages "Type" "post")).Pages }}
{{ .Render "summary"}}
{{ end }}

0 comments on commit 123ebe8

Please sign in to comment.
You can’t perform that action at this time.