mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-23 13:56:43 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user