diff --git a/exampleSite/content/post/placeholder-text/index.md b/exampleSite/content/post/placeholder-text/index.md
index 8ac7350..280197e 100644
--- a/exampleSite/content/post/placeholder-text/index.md
+++ b/exampleSite/content/post/placeholder-text/index.md
@@ -4,11 +4,13 @@ title = "Placeholder Text"
date = "2019-03-09"
description = "Lorem Ipsum Dolor Si Amet"
categories = [
- "Test"
+ "Test",
+ "Test with whitespaces"
]
tags = [
"markdown",
"text",
+ "tag with whitespaces"
]
image = "matt-le-SJSpo9hQf7s-unsplash.jpg"
+++
diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html
index 60095de..0fc62e2 100644
--- a/layouts/partials/article/components/details.html
+++ b/layouts/partials/article/components/details.html
@@ -1,18 +1,16 @@
{{ $image := partialCached "helper/image" (dict "Context" . "Type" "article") .RelPermalink "article" }}
{{- $context := . -}}
-{{- $categories := .Params.categories -}}
- {{ if $categories }}
+ {{ if .Params.categories }}
- {{ range $category := $categories }}
- {{ $term := $.Site.GetPage (printf "/categories/%s" $category | urlize ) }}
+ {{ range (.GetTerms "categories") }}
{{ if and $image.exists $image.resource }}
{{- $imageRaw := $image.resource | resources.Fingerprint "md5" -}}
{{- $20x := $imageRaw.Fill "20x20 smart" -}}
- {{ $term.Title | humanize }}
+ {{ .LinkTitle | humanize }}
{{ else }}
- {{ $term.Title | humanize }}
+ {{ .LinkTitle | humanize }}
{{ end }}
{{ end }}
diff --git a/layouts/partials/article/components/tags.html b/layouts/partials/article/components/tags.html
index 73446cd..d1261ad 100644
--- a/layouts/partials/article/components/tags.html
+++ b/layouts/partials/article/components/tags.html
@@ -1,10 +1,7 @@
-{{- $tags := .Params.Tags -}}
-{{ if $tags }}
+{{ if .Params.Tags }}
{{ end }}
\ No newline at end of file
diff --git a/layouts/partials/widget/tag-cloud.html b/layouts/partials/widget/tag-cloud.html
index a29b382..f852b4d 100644
--- a/layouts/partials/widget/tag-cloud.html
+++ b/layouts/partials/widget/tag-cloud.html
@@ -1,5 +1,3 @@
-{{ $tags := .Site.Taxonomies.tags.ByCount }}
-