- {{- dict "Class" "fa-solid fa-tags fa-fw" | partial "plugin/icon.html" -}}
- {{- range $index, $value := . -}}
- {{- if gt $index 0 }}, {{ end -}}
+ {{- dict "Class" "fa-solid fa-tags fa-fw me-1" | partial "plugin/icon.html" -}}
+ {{- range $value := . -}}
{{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
-
{{ $tag.Title }}
+ {{- with $tag -}}
+
{{ .Title }}
+ {{- end -}}
{{- end -}}
{{- end -}}
diff --git a/layouts/partials/function/path.html b/layouts/partials/function/path.html
index ece426fe..0a5efd19 100644
--- a/layouts/partials/function/path.html
+++ b/layouts/partials/function/path.html
@@ -1,3 +1,4 @@
{{- /* https://discourse.gohugo.io/t/how-decode-urls-in-hugo/7549/4 */ -}}
-{{- $URL := . | urlize | urls.Parse -}}
+{{- /* https://github.com/hugo-fixit/FixIt/issues/245 */ -}}
+{{- $URL := . | urlize | urlquery | urls.Parse -}}
{{- return $URL.Path -}}
diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html
index c11314af..f9d5f879 100644
--- a/layouts/partials/single/footer.html
+++ b/layouts/partials/single/footer.html
@@ -59,11 +59,12 @@
{{- with .Params.tags -}}
- {{- dict "Class" "fa-solid fa-tags fa-fw" | partial "plugin/icon.html" -}}
- {{- range $index, $value := . -}}
- {{- if gt $index 0 }}, {{ end -}}
+ {{- dict "Class" "fa-solid fa-tags fa-fw me-1" | partial "plugin/icon.html" -}}
+ {{- range $value := . -}}
{{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}}
- {{ $tag.Title }}
+ {{- with $tag -}}
+ {{ .Title }}
+ {{- end -}}
{{- end -}}
{{- end -}}
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 31c37db8..6496253d 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -52,7 +52,7 @@
{{- $categories := slice -}}
{{- range .Params.categories -}}
{{- $category := partialCached "function/path.html" . . | printf "/categories/%v" | $.Site.GetPage -}}
- {{- $categories = $categories | append (printf `
%v %v` $category.RelPermalink (dict "Class" "fa-regular fa-folder fa-fw" | partial "plugin/icon.html") $category.Title) -}}
+ {{- $categories = $categories | append (printf `
%v %v` (replace $category.RelPermalink "#" "%23") (dict "Class" "fa-regular fa-folder fa-fw" | partial "plugin/icon.html") $category.Title) -}}
{{- end -}}
{{- with delimit $categories " " }}
diff --git a/layouts/taxonomy/terms.html b/layouts/taxonomy/terms.html
index ce101715..30d39109 100644
--- a/layouts/taxonomy/terms.html
+++ b/layouts/taxonomy/terms.html
@@ -24,7 +24,7 @@