File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 94
94
}
95
95
}
96
96
}
97
+
98
+ .aside_item-current {
99
+ background-color : var (--colorBlack200 );
100
+ }
Original file line number Diff line number Diff line change 1
1
< aside class ="aside ">
2
- {{ $currentPageTitle := .Title }}
3
2
{{ $currentPageSection := .Section }}
3
+ {{ $currentPageRelPermalink := .RelPermalink }}
4
4
5
5
< nav class ="aside_nav ">
6
6
< ul >
7
- < li > < a href ="{{ .Site.Home.RelPermalink }} "> {{ .Site.Home.LinkTitle }}</ a > </ li >
7
+ < li class =" {{ if eq $currentPageRelPermalink .Site.Home.RelPermalink }}aside_item-current{{ end }} " > < a href ="{{ .Site.Home.RelPermalink }} "> {{ .Site.Home.LinkTitle }}</ a > </ li >
8
8
{{ range .Site.Sections.ByWeight }}
9
9
< li class ="{{ if eq $currentPageSection .Section }}aside_item-current{{ end }} ">
10
- < details >
10
+ < details {{ if eq $currentPageSection .Section }}open{{ end }} >
11
11
< summary > < b > {{ .LinkTitle }}</ b > </ summary >
12
12
< ul >
13
13
{{ range .RegularPages.ByWeight }}
You can’t perform that action at this time.
0 commit comments