{{ $src := .Page.Resources.GetMatch (printf "%s" (.Destination | safeURL)) }} {{ if $src }}
{{ $data := newScratch }} {{ if gt $src.Width 1100 }} {{ $data.Set "webp" ($src.Resize "960x webp q90") }} {{ $data.Set "fallback" ($src.Resize "960x q90") }} {{ else }} {{ $data.Set "webp" ($src.Resize (printf "%dx%d webp q90" $src.Width $src.Height)) }} {{ $data.Set "fallback" ($src.Resize (printf "%dx%d q90" $src.Width $src.Height)) }} {{ end }} {{ $webp := $data.Get "webp" }} {{ $fallback := $data.Get "fallback" }} {{ .Text }} {{ with .Title }}
{{ . | markdownify }}
{{ end }}
{{end}}