Add index content if it exists
If there is an _index.md file, it will be included at the top of listing pages.
This commit is contained in:
parent
58ba445c9f
commit
fab4cff945
@ -9,6 +9,11 @@
|
||||
{{ end }}
|
||||
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
|
||||
|
||||
{{ if len .Content }}
|
||||
<h1>{{.Title}}</h1>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
||||
{{ range $paginator.Pages }}
|
||||
<div class="post on-list">
|
||||
<h1 class="post-title">
|
||||
|
Loading…
x
Reference in New Issue
Block a user