Website-Redesign/layouts/index.html

10 lines
376 B
HTML
Raw Normal View History

2020-08-24 01:48:03 -05:00
{{ define "main" }}
{{/* 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) -}}
2020-08-24 01:48:03 -05:00
{{ end }}