Browse Source

fix(layouts/_default): show posts on homepage as expected

address a breaking change in the hugo codebase so posts display as expected in home layout

re #174
pull/198/head
Josh Habdas 1 year ago
parent
commit
60d7c0d225
Signed by: jhabdas GPG Key ID: B148B31154C75A74
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      layouts/_default/home.html

+ 1
- 1
layouts/_default/home.html View File

@ -61,7 +61,7 @@ along with this program. If not, see .
{{ end }}
{{ if not .Site.Params.layout.home.hide_blog }}
<section itemscope itemtype="https://schema.org/Blog">
{{ range (.Paginate (where .Data.Pages "Type" "in" (site.Params.layout.homepage.sections | default (slice "post")))).Pages }}
{{ range (.Paginate (where .Site.RegularPages "Type" "in" (site.Params.layout.homepage.sections | default (slice "post")))).Pages }}
{{ partial "page-summary.html" . }}
{{ end }}
</section>

Loading…
Cancel
Save