{{- .Title -}}

{{- $description := .Params.description -}} {{- $IsTerm := in .Kind "term" -}} {{- if $IsTerm -}} {{- $description = $description | default (T "list.page" (len .Pages)) -}} {{- end -}} {{- if or $description (not .Date.IsZero) -}} {{/* If it's a term, the date is extracted from the first page of the collection, which is not very useful. In that case, we prefer to display the description (if set), or the number of pages within the collection. */}}
{{- if or $IsTerm .Date.IsZero -}} {{- $description -}} {{- else if not .Date.IsZero -}} {{- end }}
{{- end -}}
{{- $image := partial "helper/image" (dict "Image" .Params.image "Resources" .Resources "Context" .) -}} {{ if $image }}
{{ partial "helper/thumbnail-image" (dict "Resource" $image.Resource "Width" 60 "Height" 60 "Resize" .Site.Params.ImageProcessing.Thumbnail.Enabled "Attributes" (dict "src" $image.Permalink "alt" .Title "loading" "lazy" "width" $image.Width "height" $image.Height ) ) }}
{{ end }}