diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index 1a3faa9..016e9d6 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -5,15 +5,14 @@ {{ 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 }} + {{ $term := $.Site.GetPage (printf "/categories/%s" $category) }} + {{ if and $image.exists $image.resource }} + {{- $imageRaw := $image.resource | resources.Fingerprint "md5" -}} + {{- $20x := $imageRaw.Fill "20x20 smart" -}} + {{ $term.Title | humanize }} + {{ else }} + {{ $term.Title | humanize }} {{ end }} {{ end }}