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:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user