feat(website): surface subcategory labels as filterable tags

Entries nested under a plain-text subcategory heading (e.g. "Frameworks"
inside Testing) now carry a subcategory field populated by the parser.
The build pipeline collects these into a subcategories list on each merged
entry, and the template renders them as tag-subcat buttons that plug into
the existing data-cats filter mechanism.

A dedicated .tag-subcat style distinguishes them visually from category
tags, and both are hidden on mobile alongside .tag-group.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-03-23 01:04:20 +08:00
parent 1c249d4b5f
commit f2b4a7bc83
4 changed files with 30 additions and 4 deletions

View File

@@ -779,6 +779,12 @@ th[data-sort].sort-asc::after {
color: var(--hero-ink);
}
.tag-subcat {
background: var(--bg-paper-strong);
color: var(--ink-soft);
font-weight: 600;
}
.back-to-top {
border: 0;
background: none;
@@ -991,7 +997,8 @@ th[data-sort].sort-asc::after {
display: none;
}
.tag-group {
.tag-group,
.tag-subcat {
display: none;
}