Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
Fix list template for Hugo 0.57
Browse files Browse the repository at this point in the history
  • Loading branch information
panr committed Aug 14, 2019
1 parent 840dbe0 commit 7427cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Expand Up @@ -2,7 +2,7 @@
<div class="posts">
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }}
{{ $paginator := .Paginate (where .Data.Pages "Type" $contentTypeName) }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" $contentTypeName) }}

{{ range $paginator.Pages }}
<div class="post on-list">
Expand Down

0 comments on commit 7427cfa

Please sign in to comment.