{{- /* Homepage-only template. Shows the intro card, the three most recent posts, and a link through to /posts/ for the full paginated list. _default/list.html still serves /posts/, /tags//, etc. */ -}} {{- define "main" }} {{- if site.Params.homeInfoParams }} {{- partial "home_info.html" . }} {{- end }} {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} {{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }} {{- range first 3 $pages }}
{{- $isHidden := (.Param "cover.hiddenInList") | default (.Param "cover.hidden") | default false }} {{- partial "cover.html" (dict "cxt" . "IsSingle" false "isHidden" $isHidden) }}

{{- .Title }} {{- if .Draft }} {{- end }}

{{- if (ne (.Param "hideSummary") true) }}

{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}

{{- end }} {{- if not (.Param "hideMeta") }}
{{- partial "post_meta.html" . -}}
{{- end }}
{{- end }} {{- with site.GetPage "/posts" }} {{- end }} {{- end }}{{- /* end main */ -}}