Normalize multi-word tags to kebab-case

"subresource integrity", "task scheduler", and "conventional commits"
had spaces, producing broken-looking /tags/<tag>/ URLs. Also fixes a
silent bug: site.config.ts's tagDescriptions already keyed
"subresource-integrity" with a hyphen, so the per-tag description
never actually matched the un-normalized tag.

Added normalizeTag() to migrate-posts-to-writings.mjs so re-running
the migration script doesn't reintroduce the spaces from the
untouched content/posts/ originals.
This commit is contained in:
2026-08-31 07:47:54 +03:00
parent 454e3459a1
commit 3d4b2fcd64
4 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ date = 2023-10-01
draft = false
[taxonomies]
tags = [ "obsidian", "git", "sync", "windows", "cron", "task scheduler", "powershell" ]
tags = [ "obsidian", "git", "sync", "windows", "cron", "task-scheduler", "powershell" ]
+++
@@ -6,7 +6,7 @@ date = 2023-01-24
draft = false
[taxonomies]
tags = [ "git", "semver", "workflow", "conventional commits" ]
tags = [ "git", "semver", "workflow", "conventional-commits" ]
+++
@@ -6,7 +6,7 @@ date = 2023-04-29
draft = false
[taxonomies]
tags = [ "subresource integrity", "csp", "cors" ]
tags = [ "subresource-integrity", "csp", "cors" ]
+++