fix(nav): highlight active navigation links

Add active route detection in BaseLayout and apply active styles
for docs, blog, and changelog links, including trailing slash support
This commit is contained in:
2026-03-18 23:13:55 +01:00
parent 30275bd314
commit e985de2609
2 changed files with 18 additions and 5 deletions
+4 -2
View File
@@ -170,11 +170,13 @@ a {
transition: width 0.3s ease;
}
.nav a:hover {
.nav a:hover,
.nav a.active {
color: var(--color-text);
}
.nav a:hover::after {
.nav a:hover::after,
.nav a.active::after {
width: 100%;
}