Commit 0df0794c authored by André's avatar André
Browse files

Fix deprecation warning

In the next Hugo version (0.58.0) we will change how .Pages behaves. If you want to list all regular pages,
replace .Pages or .Data.Pages with .Site.RegularPages in your home page template.

Source: https://github.com/halogenica/beautifulhugo/pull/301
parent 6741440b
Pipeline #4137 passed with stage
in 0 seconds
......@@ -9,7 +9,7 @@
{{ end }}
<div class="posts-list">
{{ $pag := .Paginate (where .Data.Pages "Type" "post") }}
{{ $pag := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }}
{{ range first 3 $pag.Pages }}
<article class="post-preview">
<a href="{{ .Permalink }}">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment