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 <noreply@anthropic.com>
This commit is contained in:
2026-05-18 18:22:20 +02:00
parent 7ca816a3aa
commit 8513c1c021
+4 -1
View File
@@ -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 }}
<header id="masthead" <header id="masthead"
class="sticky top-0 z-50 border-b border-[var(--rule)] class="sticky top-0 z-50 border-b border-[var(--rule)]
backdrop-blur-[14px] saturate-[1.05] backdrop-blur-[14px] saturate-[1.05]