2020-08-24 01:48:03 -05:00
|
|
|
{{ define "main" }}
|
|
|
|
|
|
|
|
{{/* get all the pages that are regular posts and not pages */}}
|
2021-01-03 07:06:59 -06:00
|
|
|
{{ $postsDir := .Site.Params.Posts | default (slice "posts" "post") }}
|
2022-03-26 06:18:03 -05:00
|
|
|
{{ $allPostsList := where (where site.RegularPages "Section" "in" $postsDir) "Section" "!=" "" }}
|
2021-07-06 13:19:13 -05:00
|
|
|
{{- partial "showcase.html" . -}}
|
2022-03-27 09:57:28 -05:00
|
|
|
{{ if and .Site.Params.showSinglePageAsHome (ne .Site.Params.homeSinglePage "") }}
|
|
|
|
{{ with .Site.GetPage .Site.Params.homeSinglePage }}
|
|
|
|
{{- partial "single_post.html" . -}}
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
{{- partial "home_post_list.html" (dict "Ctx" . "AllPostsList" $allPostsList) -}}
|
|
|
|
{{ end }}
|
2020-08-24 01:48:03 -05:00
|
|
|
|
|
|
|
{{ end }}
|