default posts dir is either posts or post

This commit is contained in:
Gabriele Musco 2021-01-03 14:06:59 +01:00
parent 7f379cd454
commit 85b05ed3f2
No known key found for this signature in database
GPG Key ID: 8539FD3454380B83
1 changed files with 2 additions and 2 deletions

View File

@ -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 */}}
@ -17,7 +17,7 @@
| <!-- Pipe character as visual separator between date and tags-->
<span title="Tags"></span>
{{ range .Params.tags }}
<a href="/tags/{{ . }}">#{{ . }}</a>
<a href="/tags/{{ . }}">#{{ . }}</a>
{{ end }}
{{ end }}
</p>