{{- /* Large overlay card for featured/secondary slots. Expects a post page as context (.). */ -}} {{- $post := . -}}
{{- $thumb := $post.Resources.GetMatch "banner.png" -}} {{- if not $thumb -}}{{- $thumb = $post.Resources.GetMatch "01.png" -}}{{- end -}}
{{- if $thumb -}} {{- partial "img.html" (dict "res" $thumb "widths" (slice 800 1200) "sizes" "(max-width: 768px) 100vw, 50vw" "class" "w-full h-full object-cover" "alt" $post.Title) -}} {{- else -}}{{- with $post.Params.banner -}} {{- partial "media.html" (dict "media" . "class" "w-full h-full object-cover") -}} {{- else -}}
PIVOINE
{{- end -}}{{- end -}}
{{- with $post.Params.categories -}}
{{- range first 1 . -}} {{ . }} {{- end -}}
{{- end -}}

{{- $post.Title -}}

{{- with $post.Params.author -}} {{- $authorPage := site.GetPage (printf "authors/%s" .) -}} {{- with $authorPage -}} {{ .Params.name | default .Title }} {{- end -}} {{- end -}}