default posts dir is either posts or post
This commit is contained in:
parent
7f379cd454
commit
85b05ed3f2
|
@ -1,7 +1,7 @@
|
|||
{{ define "main" }}
|
||||
|
||||
{{/* get all the pages that are regular posts and not pages */}}
|
||||
{{ $postsDir := .Site.Params.Posts | default (slice "posts") }}
|
||||
{{ $postsDir := .Site.Params.Posts | default (slice "posts" "post") }}
|
||||
{{ $postsList := where .Site.RegularPages "Section" "in" $postsDir }}
|
||||
|
||||
{{/* pagination */}}
|
||||
|
|
Loading…
Reference in New Issue