From 615e3113e78416344cd1f0abfbfb46dacef63093 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 1 Jan 2022 13:36:37 +0000 Subject: [PATCH] Ensure tags are sorted alphabetically --- layouts/partials/content-details.html | 2 +- layouts/partials/metadata.html | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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 }}