Fix section list pages
Sections other than posts were displaying posts because it was hard coded in $contentTypeName.
This commit is contained in:
parent
23434e2102
commit
4d65cf7d78
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
{{ define "main" }}
|
||||
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
|
||||
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }}
|
||||
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) .Section }}
|
||||
{{ $paginator := .Paginate (where .Site.RegularPages "Type" $contentTypeName) }}
|
||||
|
||||
<main class="posts">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue