{{ if or (isset .Params "date") (isset .Params "categories") -}} {{ if isset .Params "date" }}{{ .Date.Format "Jan 2, 2006" }}{{ end }} {{ if isset .Params "categories" }}{{ range $index, $category := .Params.categories }}{{ if $index }}, {{ end }}{{ with $.Site.GetPage (printf "/categories/%s" ($category | urlize)) }}{{ $category }}{{ else }}{{ $category }}{{ end }}{{ end }}{{ end }} {{- end }} {{ .Title | markdownify }} {{ with .Resources.GetMatch "featuredImage" -}} {{ partial "responsive-image.html" (dict "image" . "alt" .Params.description "widths" (slice 711 1422 2133) "sizes" "(min-width: 711px) 711px, 100vw" "loading" "eager" ) }} {{ with .Params.attribution -}} Image by {{ with .link }}{{ end }}{{ .name }}{{ with .link }}{{ end }} {{- end }} {{- end }} {{ if .Params.toc -}} Contents {{ .TableOfContents }} {{- end }} {{ .Content }}