{{- $image := partialCached "helper/image" (dict "Context" .) .RelPermalink -}} {{- $context := . -}} {{- $categories := .Params.categories -}}
{{ if $categories }}
{{ range $category := $categories }} {{ with $.Site.GetPage (printf "/categories/%s" $category) }} {{ if and $image.exists $image.resource }} {{- $imageRaw := $image.resource | resources.Fingerprint "md5" -}} {{- $20x := $imageRaw.Fill "20x20 smart" -}} {{ .Title | humanize }} {{ else }} {{ .Title | humanize }} {{ end }} {{ end }} {{ end }}
{{ end }}

{{- .Title -}}

{{ with .Params.description }}

{{ . }}

{{ end }} {{- if not .Date.IsZero -}} {{- end -}}