{{- $params := .Params | merge .Site.Params.page -}}
{{- /* Featured image */ -}} {{- $image := $params.featuredImagePreview | default $params.featuredImage -}} {{- $height := "auto" -}} {{- $width := "auto" -}} {{- with .Resources.GetMatch (printf "%s" ($image)) -}} {{- $image = .RelPermalink -}} {{- $height = .Height -}} {{- $width = .Width -}} {{- end -}} {{- with .Resources.GetMatch "featured-image" -}} {{- $image = .RelPermalink -}} {{- $height = .Height -}} {{- $width = .Width -}} {{- end -}} {{- with .Resources.GetMatch "featured-image-preview" -}} {{- $image = .RelPermalink -}} {{- $height = .Height -}} {{- $width = .Width -}} {{- end -}} {{- with $image -}} {{- end -}} {{- /* Title */ -}}

{{ .Title }}

{{- /* Meta */ -}}
{{- with .Site.Params.dateFormat | default "2006-01-02" | .PublishDate.Format -}}   {{- printf `` . . | dict "Date" | T "publishedOnDate" | safeHTML -}} {{- end -}} {{- with (or (.Params.categories) (.Params.series)) -}}   {{- end -}} {{- $categories := slice -}} {{- range .Params.categories -}} {{- $category := partialCached "function/path.html" . . | printf "/categories/%v" | $.Site.GetPage -}} {{- $categories = $categories | append (printf `%v` $category.RelPermalink $category.Title) -}} {{- end -}} {{- with delimit $categories " " -}}   {{- end -}} {{- with (and (.Params.categories) (.Params.series)) -}}   {{- end -}} {{- $series := slice -}} {{- range .Params.series -}} {{- $singleSeries := partialCached "function/path.html" . . | printf "/series/%v" | $.Site.GetPage -}} {{- $series = $series | append (printf `%v` $singleSeries.RelPermalink $singleSeries.Title) -}} {{- end -}} {{- with delimit $series " " -}}   {{- dict "Series" . | T "includedInSeries" | safeHTML -}} {{- end -}}
{{- /* Summary content */ -}}
{{- with .Summary -}} {{- dict "Content" . "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}} {{- else -}} {{- .Description | safeHTML -}} {{- end -}}
{{- /* Footer */ -}}
{{ T "readMore" }} {{- with .Params.tags -}} {{- end -}}