Merge pull request #151 from Robleh/master

Fix section list pages
This commit is contained in:
Djordje Atlialp 2020-05-13 08:36:49 +02:00 committed by GitHub
commit b32fd358d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} {{ $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) }} {{ $paginator := .Paginate (where .Site.RegularPages "Type" $contentTypeName) }}
<main class="posts"> <main class="posts">