added optional showcase section to home page
This commit is contained in:
parent
38a8b48e8c
commit
3176229a6b
4 changed files with 44 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
{{/* get all the pages that are regular posts and not pages */}}
|
||||
{{ $postsDir := .Site.Params.Posts | default (slice "posts" "post") }}
|
||||
{{ $allPostsList := where site.RegularPages "Section" "in" $postsDir }}
|
||||
{{- partial "showcase.html" . -}}
|
||||
{{- partial "home_post_list.html" (dict "Ctx" . "AllPostsList" $allPostsList) -}}
|
||||
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue