{{- define "page-background" -}} {{- with .Params.background -}} {{- end -}} {{- end -}} {{- define "main" -}}
{{- with index .Params.categories 0 -}} {{- end -}} {{- with .Params.categories -}}
{{- range . -}} {{ . }} {{- end -}}
{{- end -}}

{{- .Title -}}

{{- with .Description -}}

{{ . }}

{{- end -}} {{- with .Params.author -}} {{- $authorPage := site.GetPage (printf "authors/%s" .) -}} {{- with $authorPage -}} {{- partial "author-card.html" . -}} {{- end -}} {{- end -}}
{{- $bannerImg := .Resources.GetMatch "banner.png" -}} {{- if not $bannerImg -}}{{- $bannerImg = .Resources.GetMatch "01.png" -}}{{- end -}} {{- if $bannerImg -}} {{- $stem := $bannerImg.Name | strings.TrimSuffix ".png" -}} {{- $bannerVid := $.Resources.GetMatch (printf "%s.mp4" $stem) -}} {{- $webp := $bannerImg.Resize "1200x webp" -}} {{- $lbItems := slice (dict "img" $webp.RelPermalink "video" "") -}} {{- if $bannerVid -}} {{- $lbItems = $lbItems | append (dict "img" $webp.RelPermalink "video" $bannerVid.RelPermalink) -}} {{- end -}}
{{- if $bannerVid -}} {{- else -}} {{- partial "img.html" (dict "res" $bannerImg "widths" (slice 1200 1800) "sizes" "100vw" "class" "w-full h-full object-cover object-center pointer-events-none" "alt" .Title "loading" "eager") -}} {{- end -}}
{{- end -}} {{- with .Content -}}
{{ . }}
{{- end -}} {{- with .Params.tags -}} {{- end -}} {{- $related := .Site.RegularPages.Related . | first 3 -}} {{- with $related -}}

More Drops

{{- range . -}} {{- partial "post-card.html" . -}} {{- end -}}
{{- end -}} {{- end -}}