File tree Expand file tree Collapse file tree 2 files changed +74
-47
lines changed Expand file tree Collapse file tree 2 files changed +74
-47
lines changed Original file line number Diff line number Diff line change 14
14
}
15
15
16
16
.aside_nav {
17
- > ul > li > details > ul > li : last-child ,
18
- > ul > li > details > ul > li : not (: last-child ) > ul {
19
- margin-bottom : var (--mS );
20
- }
17
+ padding : var (--pS ) 0 ;
21
18
22
19
ul {
23
20
color : var (--colorBlack600 );
24
21
display : flex;
22
+ gap : var (--m2XS );
25
23
flex-direction : column;
24
+ padding : 0 var (--pS );
25
+
26
+ span {
27
+ font-weight : bold;
28
+ border-top : 1px solid var (--colorBlack200 );
29
+ padding-top : var (--pS );
30
+ margin-top : var (--mS );
31
+ }
32
+
33
+ & ul {
34
+ padding : 0 ;
35
+ & span {
36
+ border-top : none;
37
+ padding-top : 0 ;
38
+ margin-top : 0 ;
39
+ font-weight : normal;
40
+ }
41
+ }
26
42
27
43
li {
28
44
position : relative;
29
- border-bottom : 1px solid var (--colorBlack200 );
30
-
31
- & : last-child {
32
- border : none;
45
+ display : flex;
46
+ flex-direction : column;
47
+ gap : var (--m3XS );
48
+
49
+ & li {
50
+
51
+ & li {
52
+ padding : 0 var (--pS );
53
+ }
54
+
33
55
}
34
56
35
57
a {
58
+
59
+
60
+ }
61
+
62
+ /* a {
36
63
padding: var(--mXS) var(--mS);
37
64
display: inline-block;
38
65
width: 100%;
39
- }
66
+ } */
40
67
41
- .aside_item-current {
42
- color : var (--colorBlack800 );
68
+ .aside_item-current {
69
+ /* color: var(--colorBlack800); */
43
70
44
- & ::before {
71
+ /* &::before {
45
72
content: '';
46
73
position: absolute;
47
74
left: 0;
51
78
z-index: 1;
52
79
top: var(--m2XS);
53
80
bottom: var(--m2XS);
54
- }
81
+ } */
55
82
56
- & ::after {
83
+ /* &::after {
57
84
content: '';
58
85
position: absolute;
59
86
background-color: var(--colorBlack200);
63
90
right: var(--m2XS);
64
91
top: var(--m2XS);
65
92
bottom: var(--m2XS);
66
- }
93
+ } */
67
94
}
68
95
69
96
& .aside_item-current-section {
70
- & ::before {
97
+ /* &::before {
71
98
content: '';
72
99
position: absolute;
73
100
left: 0;
76
103
width: 1px;
77
104
background-color: var(--colorPrimary);
78
105
border-radius: 0;
79
- }
106
+ } */
80
107
81
- & .aside_item-current {
108
+ /* & .aside_item-current {
82
109
&::before {
83
110
top: 2px;
84
111
bottom: 2px;
89
116
bottom: 0;
90
117
right: var(--mXS);
91
118
}
92
- }
119
+ } */
93
120
}
94
121
95
- details {
122
+ /* details {
96
123
position: relative;
97
124
98
125
summary {
130
157
131
158
span {
132
159
display: inline-block;
133
- }
160
+ } */
134
161
}
135
162
136
- ul {
163
+ /* ul {
137
164
li {
138
165
border: none;
139
166
165
192
}
166
193
}
167
194
}
168
- }
195
+ } */
169
196
}
170
197
}
Original file line number Diff line number Diff line change 4
4
5
5
< nav class ="aside_nav ">
6
6
< ul >
7
- < li > < b > < a class ="{{ if eq $currentPageRelPermalink .Site.Home.RelPermalink }}aside_item-current{{ end }} " href ="{{ .Site.Home.RelPermalink }} "> {{ .Site.Home.LinkTitle }}</ a > </ b > </ li >
7
+ {{ range where .Site.Pages "Section" "" }}
8
+ < li > < a class ="{{ if eq .RelPermalink .Site.Home.RelPermalink }}aside_item-current{{ end }} " href ="{{ .RelPermalink }} "> {{ .Title }}</ a > </ li >
9
+ {{ end }}
8
10
{{ range .Site.Sections.ByWeight }}
9
11
< li class ="{{ if eq $currentPageSection .Section }}aside_item-current-section{{ end }} ">
10
- < details {{ if eq $currentPageSection .Section }}open{{ end }} >
11
- < summary > < b > {{ .LinkTitle | markdownify }}</ b > < i class ="icon " data-lucide ="chevron-down "> </ i > </ summary >
12
- < ul >
13
- {{ $allPages := .RegularPages.ByWeight | append .Sections.ByWeight }}
14
- {{ $allPages := sort $allPages "Weight" }}
15
- {{ range $allPages }}
16
- < li >
17
- {{ if .Content }}
18
- < a class ="{{ if eq $currentPageRelPermalink .RelPermalink }}aside_item-current{{ end }} " href ="{{ .RelPermalink }} "> {{ .LinkTitle | markdownify }}</ a >
19
- {{ else }}
20
- < span class ="{{ if eq $currentPageRelPermalink .RelPermalink }}aside_item-current{{ end }} "> {{ .LinkTitle | markdownify }}</ span >
21
- {{ end }}
22
- {{ if .IsSection }}
23
- < ul >
24
- {{ range .RegularPages.ByWeight }}
25
- < li > < a class ="{{ if eq $currentPageRelPermalink .RelPermalink }}aside_item-current{{ end }} " href ="{{ .RelPermalink }} "> {{ .LinkTitle | markdownify }}</ a > </ li >
26
- {{ end }}
27
- </ ul >
28
- {{ end }}
29
- </ li >
30
- {{ end }}
31
- </ ul >
32
- </ details >
12
+ < span > {{ .LinkTitle | markdownify }} </ span >
13
+ < ul >
14
+ {{ $allPages := .RegularPages.ByWeight | append .Sections.ByWeight }}
15
+ {{ $allPages := sort $allPages "Weight" }}
16
+ {{ range $allPages }}
17
+ < li >
18
+ {{ if .Content }}
19
+ < a class ="{{ if eq $currentPageRelPermalink .RelPermalink }}aside_item-current{{ end }} " href ="{{ .RelPermalink }} "> {{ .LinkTitle | markdownify }}</ a >
20
+ {{ else }}
21
+ < span class ="{{ if eq $currentPageRelPermalink .RelPermalink }}aside_item-current{{ end }} "> {{ .LinkTitle | markdownify }}</ span >
22
+ {{ end }}
23
+ {{ if .IsSection }}
24
+ < ul >
25
+ {{ range .RegularPages.ByWeight }}
26
+ < li > < a class ="{{ if eq $currentPageRelPermalink .RelPermalink }}aside_item-current{{ end }} " href ="{{ .RelPermalink }} "> {{ .LinkTitle | markdownify }}</ a > </ li >
27
+ {{ end }}
28
+ </ ul >
29
+ {{ end }}
30
+ </ li >
31
+ {{ end }}
32
+ </ ul >
33
33
</ li >
34
34
{{ end }}
35
35
</ ul >
You can’t perform that action at this time.
0 commit comments