Fix issue with wrong pluralization of section title
This commit is contained in:
parent
b32fd358d3
commit
9f3c15b70e
1 changed files with 1 additions and 3 deletions
|
@ -1,7 +1,5 @@
|
|||
{{ define "main" }}
|
||||
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
|
||||
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) .Section }}
|
||||
{{ $paginator := .Paginate (where .Site.RegularPages "Type" $contentTypeName) }}
|
||||
{{ $paginator := .Paginate (where .Site.RegularPages "Type" $.Site.Params.contentTypeName) }}
|
||||
|
||||
<main class="posts">
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue