{{- $params := .Params | merge .Site.Params.page -}}
{{- /* Featured image */ -}} {{- $image := $params.featuredimagepreview | default $params.featuredimage -}} {{- with .Resources.GetMatch "featured-image" -}} {{- $image = .RelPermalink -}} {{- end -}} {{- with .Resources.GetMatch "featured-image-preview" -}} {{- $image = .RelPermalink -}} {{- end -}} {{- with $image -}} {{- end -}} {{- /* Title */ -}}

{{ $repost := $params.repost | default dict }} {{- with $repost -}} {{- if eq .Enable true -}} {{- $icon := dict "Class" "fa-solid fa-share fa-fw" -}} {{- $title := cond (hasPrefix .Url "http") (printf "%v -> %v" (T "single.repost") .Url ) (T "single.repost") -}} {{- $icon | partial "plugin/icon.html" -}} {{- end -}} {{- end -}} {{ .Title }}

{{- /* Meta */ -}}
{{- partial "single/post-author.html" . -}} {{- with .Site.Params.dateFormat | default "2006-01-02" | .PublishDate.Format -}}   {{- printf `` . . | dict "Date" | T "single.publishedOnDate" | safeHTML -}} {{- end -}} {{- $categories := slice -}} {{- range .Params.categories -}} {{- $category := partialCached "function/path.html" . . | printf "/categories/%v" | $.Site.GetPage -}} {{- $categories = $categories | append (printf `%v %v` (partial "function/escapeurl.html" $category.RelPermalink) (dict "Class" "fa-regular fa-folder fa-fw" | partial "plugin/icon.html") $category.Title) -}} {{- end -}} {{- with delimit $categories " " -}}   {{- 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 "single.readMore" }} {{- with .Params.tags -}} {{- end -}}