{{ .Title }} {{ if isset .Params "date" }}Posted {{ .Date.Format "Jan 2, 2006" }}{{ end }} {{ with .Resources.GetMatch "featuredImage" -}} {{ with $.Resources.GetMatch (replace (.Title) (path.Ext (.Title)) ".webp") -}} {{- end }} {{ $featured := .Resize "800x Lanczos" }} {{- end }} {{ if .Params.toc -}} Contents {{ .TableOfContents }} {{- end }} {{ .Content }}