diff --git a/layouts/partials/content-details.html b/layouts/partials/content-details.html
index 914d2c3..03dd161 100644
--- a/layouts/partials/content-details.html
+++ b/layouts/partials/content-details.html
@@ -12,7 +12,7 @@
- {{ range $i, $e := .Params.tags }}
+ {{ range (.Params.tags | sort) }}
#{{ . }}
{{ end }}
{{ end }}
diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html
index 0c3a661..8738e23 100644
--- a/layouts/partials/metadata.html
+++ b/layouts/partials/metadata.html
@@ -59,8 +59,10 @@
-{{ range .Params.tags }}
-
+{{ if .Params.tags }}
+ {{ range (.Params.tags | sort) }}
+
+ {{ end }}
{{ end }}
{{ range .AlternativeOutputFormats }}