From 8513c1c021156a69d804de35b611422226ddf197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Mon, 18 May 2026 18:22:20 +0200 Subject: [PATCH] Derive header category tabs from taxonomy instead of hardcoded list Tabs now reflect only categories that actually have posts, so stale entries like Noir can't appear. Co-Authored-By: Claude Sonnet 4.6 --- layouts/partials/header.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 3cd5bef..aceeb33 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,4 +1,7 @@ -{{- $cats := slice "Gothic" "Cyberpunk" "Dark Fantasy" "Urban" "Noir" "Fantasy" "Cultural" "Sci-Fi" "Boudoir" "Steampunk" "Luxury" "Action" "Lifestyle" "Nature" "Romantic" "Nightlife" "Elegant" "Adventure" "Mythology" }} +{{- $cats := slice }} +{{- range $.Site.Taxonomies.categories }} + {{- $cats = $cats | append .Page.Title }} +{{- end }}