eclipsefdn-hugo-solstice-theme 0.0.217 → 0.0.218

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,290 +1,34 @@
1
-
2
- [[main]]
3
- name = "Examples"
4
- url = "#"
5
- weight = 2
6
- identifier = "examples"
7
-
8
- [main.params]
9
- description = """
10
- Examples of the different layouts and features offered by Hugo Solstice Theme.
11
- """
12
-
13
- [[main]]
14
- name = "Layouts"
15
- url = "#"
16
- weight = 1
17
- parent = "examples"
18
- identifier = "layouts"
19
-
20
- [[main]]
21
- name = "Features"
22
- url = "#"
23
- weight = 2
24
- parent = "examples"
25
- identifier = "features"
26
-
27
- [[main]]
28
- name = "Single Page"
29
- url = "/single_page/"
30
- weight = 1
31
- parent = "layouts"
32
-
33
- [[main]]
34
- name = "News sample"
35
- url = "/news/"
36
- weight = 2
37
- parent = "layouts"
38
-
39
- [[main]]
40
- name = "Membership sample"
41
- url = "/membership/"
42
- weight = 3
43
- parent = "features"
44
-
45
- [[main]]
46
- name = "Events sample"
47
- url = "/events/"
48
- weight = 3
49
- parent = "features"
50
-
51
- [[main]]
52
- name = "FAQ sample"
53
- url = "/faq/"
54
- weight = 4
55
- parent = "features"
56
-
57
- [[main]]
58
- name = "Hide Call For Action"
59
- url = "/hide_call_for_action/"
60
- weight = 5
61
- parent = "features"
62
-
63
- [[main]]
64
- name = "Without Breadcrumb"
65
- url = "/without_breadcrumb/"
66
- weight = 6
67
- parent = "features"
68
-
69
- [[main]]
70
- name = "multi-children mobile sidebar sample"
71
- url = "/third-parent/"
72
- weight = 7
73
- parent = "layouts"
74
-
75
- [[main]]
76
- name = "Subsite Custom Logo"
77
- url = "/subsite-1/"
78
- weight = 8
79
- parent = "layouts"
80
-
81
- [[main]]
82
- name = "Custom Jumbotron"
83
- url = "/custom-jumbotron/"
84
- weight = 9
85
- parent = "layouts"
86
-
87
- [[main]]
88
- name = "Coming Soon"
89
- url = "/coming-soon/"
90
- weight = 10
91
- parent = "layouts"
92
-
93
- [[main]]
94
- name = "Components"
95
- url = "/components/"
96
- weight = 3
97
- identifier = "components"
98
-
99
- [[main]]
100
- name = "Solstice Additions"
101
- url = "/components/#solstice"
102
- weight = 1
103
- parent = "components"
104
- identifier = "solstice"
105
-
106
- [[main]]
107
- name = "Events Framework"
108
- url = "/components/#events-framework"
109
- weight = 2
110
- parent = "components"
111
- identifier = "events"
112
-
113
- [[main]]
114
- name = "Dynamic Content"
115
- url = "/components/#dynamic"
116
- weight = 3
117
- parent = "components"
118
- identifier = "dynamic"
119
-
120
- [[main]]
121
- name = "Deprecated"
122
- url = "/components/#deprecated"
123
- weight = 4
124
- parent = "components"
125
- identifier = "deprecated"
126
-
127
- [[main]]
128
- name = "Meeting Minutes"
129
- url = "/components/meeting_minutes/"
130
- weight = 3
131
- parent = "deprecated"
132
-
133
- [[main]]
134
- name = "Membership"
135
- url = "/components/members/"
136
- weight = 3
137
- parent = "solstice"
138
-
139
- [[main]]
140
- name = "Taxonomy list"
141
- url = "/components/taxonomy_list/"
142
- weight = 3
143
- parent = "solstice"
144
-
145
- [[main]]
146
- name = "Testimonials"
147
- url = "/components/testimonials/"
148
- weight = 3
149
- parent = "solstice"
150
-
151
1
  [[main]]
152
- name = "YouTube videos"
153
- url = "/components/youtube/"
154
- weight = 3
155
- parent = "solstice"
156
-
157
- [[main]]
158
- name = "FAQ"
159
- url = "/components/faq/"
160
- weight = 4
161
- parent = "solstice"
162
-
163
- [[main]]
164
- name = "Hubspot Contact Form"
165
- url = "/components/hubspot/"
166
- weight = 5
167
- parent = "solstice"
168
-
169
- [[main]]
170
- name = "Featured Footer"
171
- url = "/components/featured_footer/"
172
- weight = 3
173
- parent = "solstice"
174
-
175
- [[main]]
176
- name = "Featured Story"
177
- url = "/components/featured_story/"
178
- weight = 3
179
- parent = "solstice"
180
-
181
- [[main]]
182
- name = "EclipseFdn Projects page"
183
- url = "/components/eclipsefdn_projects_page/"
184
- weight = 3
185
- parent = "solstice"
186
-
187
- [[main]]
188
- name = "EclipseFdn Members List"
189
- url = "/components/eclipsefdn_members_list/"
190
- weight = 4
191
- parent = "solstice"
2
+ name = "About"
3
+ url = "/about/"
4
+ weight = 1
5
+ identifier = "about"
192
6
 
193
7
  [[main]]
194
- name = "HTML Tables"
195
- url = "/components/tables/"
196
- weight = 3
197
- parent = "solstice"
198
-
199
- [[main]]
200
- name = "Text Target"
201
- url = "/components/text_target/"
202
- weight = 3
203
- parent = "solstice"
204
-
205
- [[main]]
206
- name = "Twitter Timeline"
207
- url = "/components/twitter_timeline/"
208
- weight = 3
209
- parent = "solstice"
210
-
211
- [[main]]
212
- name = "Twitter Buttons"
213
- url = "/components/twitter_button/"
214
- weight = 3
215
- parent = "solstice"
8
+ name = "Membership"
9
+ url = "/membership/"
10
+ weight = 2
11
+ identifier = "membership"
216
12
 
217
13
  [[main]]
218
- name = "RSS Feed"
219
- url = "/components/rss/"
220
- weight = 3
221
- parent = "dynamic"
14
+ name = "Participate"
15
+ url = "/participate/"
16
+ weight = 3
17
+ identifier = "participate"
222
18
 
223
19
  [[main]]
224
- name = "Video List"
225
- url = "/components/video_list"
226
- weight = 3
227
- parent = "solstice"
20
+ name = "Participation and Membership FAQ"
21
+ url = "/about/participation-and-membership-faq/"
22
+ weight = 3
23
+ identifier = "participation-and-membership-faq"
228
24
 
229
25
  [[main]]
230
- name = "Adopters"
231
- url = "/components/adopters"
232
- weight = 3
233
- parent = "solstice"
26
+ name = "Testing Submenu"
27
+ url = "/test/"
28
+ weight = 1
29
+ identifier = "testing-submenu"
30
+ parent = "about"
234
31
 
235
- [[main]]
236
- name = "Users Display"
237
- url = "/components/user_display/"
238
- weight = 3
239
- parent = "events"
240
-
241
- [[main]]
242
- name = "User Bios"
243
- url = "/components/user_bios/"
244
- weight = 3
245
- parent = "events"
246
-
247
- [[main]]
248
- name = "Registration"
249
- url = "/components/registration/"
250
- weight = 3
251
- parent = "events"
252
-
253
- [[main]]
254
- name = "Agenda"
255
- url = "/components/agenda/"
256
- weight = 3
257
- parent = "events"
258
-
259
- [[main]]
260
- name = "Newsroom News"
261
- url = "/components/newsroom/news/"
262
- weight = 3
263
- parent = "dynamic"
264
-
265
- [[main]]
266
- name = "Newsroom Events"
267
- url = "/components/newsroom/events/"
268
- weight = 3
269
- parent = "dynamic"
270
-
271
- [[main]]
272
- name = "Newsroom Resources"
273
- url = "/components/newsroom/resources/"
274
- weight = 3
275
- parent = "dynamic"
276
-
277
- [[main]]
278
- name = "News"
279
- url = "/components/news/"
280
- weight = 2
281
- parent = "deprecated"
282
-
283
- [[main]]
284
- name = "Events"
285
- url = "/components/events/"
286
- weight = 3
287
- parent = "deprecated"
288
32
 
289
33
  [[sidebar]]
290
34
  name = "Hugo Solstice Theme"
@@ -384,3 +128,45 @@
384
128
  name = "Go Home"
385
129
  url = "/"
386
130
  weight = 1
131
+
132
+ # Custom sidebar
133
+ [[sidebar]]
134
+ identifier = "sidebar-custom"
135
+ name = "Eclipse Working Groups"
136
+ url = "https://www.eclipse.org/collaborations/"
137
+ weight = 1
138
+
139
+ [[sidebar]]
140
+ parent = "sidebar-custom"
141
+ name = "Explore Working Groups"
142
+ weight = 1
143
+ url = "https://www.eclipse.org/org/working-groups/explore/"
144
+
145
+ [[sidebar]]
146
+ parent = "sidebar-custom"
147
+ name = "About Working Groups"
148
+ weight = 2
149
+ url = "https://www.eclipse.org/org/working-groups/about/"
150
+
151
+ [[sidebar]]
152
+ identifier = "sidebar-additional"
153
+ name = "Related Links"
154
+ weight = 2
155
+
156
+ [[sidebar]]
157
+ parent = "sidebar-additional"
158
+ name = "Working Group Process"
159
+ weight = 1
160
+ url = "https://www.eclipse.org/org/working-groups/process/"
161
+
162
+ [[sidebar]]
163
+ parent = "sidebar-additional"
164
+ name = "Working Group Operations"
165
+ weight = 2
166
+ url = "https://www.eclipse.org/org/working-groups/operations/"
167
+
168
+ [[sidebar]]
169
+ parent = "sidebar-additional"
170
+ name = "Working Group Development Effort Guidelines"
171
+ weight = 3
172
+ url = "https://www.eclipse.org/org/working-groups/wgfi-program/"
@@ -347,3 +347,45 @@
347
347
  name = "Go Home"
348
348
  url = "/"
349
349
  weight = 1
350
+
351
+ # Custom sidebar
352
+ [[sidebar]]
353
+ identifier = "sidebar-custom"
354
+ name = "Eclipse Working Groups"
355
+ url = "https://www.eclipse.org/collaborations/"
356
+ weight = 1
357
+
358
+ [[sidebar]]
359
+ parent = "sidebar-custom"
360
+ name = "Explore Working Groups"
361
+ weight = 1
362
+ url = "https://www.eclipse.org/org/working-groups/explore/"
363
+
364
+ [[sidebar]]
365
+ parent = "sidebar-custom"
366
+ name = "About Working Groups"
367
+ weight = 2
368
+ url = "https://www.eclipse.org/org/working-groups/about/"
369
+
370
+ [[sidebar]]
371
+ identifier = "sidebar-additional"
372
+ name = "Related Links"
373
+ weight = 2
374
+
375
+ [[sidebar]]
376
+ parent = "sidebar-additional"
377
+ name = "Working Group Process"
378
+ weight = 1
379
+ url = "https://www.eclipse.org/org/working-groups/process/"
380
+
381
+ [[sidebar]]
382
+ parent = "sidebar-additional"
383
+ name = "Working Group Operations"
384
+ weight = 2
385
+ url = "https://www.eclipse.org/org/working-groups/operations/"
386
+
387
+ [[sidebar]]
388
+ parent = "sidebar-additional"
389
+ name = "Working Group Development Effort Guidelines"
390
+ weight = 3
391
+ url = "https://www.eclipse.org/org/working-groups/wgfi-program/"
@@ -349,3 +349,45 @@
349
349
  name = "Go Home"
350
350
  url = "/"
351
351
  weight = 1
352
+
353
+ # Custom sidebar
354
+ [[sidebar]]
355
+ identifier = "sidebar-custom"
356
+ name = "Eclipse Working Groups"
357
+ url = "https://www.eclipse.org/collaborations/"
358
+ weight = 1
359
+
360
+ [[sidebar]]
361
+ parent = "sidebar-custom"
362
+ name = "Explore Working Groups"
363
+ weight = 1
364
+ url = "https://www.eclipse.org/org/working-groups/explore/"
365
+
366
+ [[sidebar]]
367
+ parent = "sidebar-custom"
368
+ name = "About Working Groups"
369
+ weight = 2
370
+ url = "https://www.eclipse.org/org/working-groups/about/"
371
+
372
+ [[sidebar]]
373
+ identifier = "sidebar-additional"
374
+ name = "Related Links"
375
+ weight = 2
376
+
377
+ [[sidebar]]
378
+ parent = "sidebar-additional"
379
+ name = "Working Group Process"
380
+ weight = 1
381
+ url = "https://www.eclipse.org/org/working-groups/process/"
382
+
383
+ [[sidebar]]
384
+ parent = "sidebar-additional"
385
+ name = "Working Group Operations"
386
+ weight = 2
387
+ url = "https://www.eclipse.org/org/working-groups/operations/"
388
+
389
+ [[sidebar]]
390
+ parent = "sidebar-additional"
391
+ name = "Working Group Development Effort Guidelines"
392
+ weight = 3
393
+ url = "https://www.eclipse.org/org/working-groups/wgfi-program/"
@@ -347,3 +347,45 @@
347
347
  name = "Go Home"
348
348
  url = "/"
349
349
  weight = 1
350
+
351
+ # Custom sidebar
352
+ [[sidebar]]
353
+ identifier = "sidebar-custom"
354
+ name = "Eclipse Working Groups"
355
+ url = "https://www.eclipse.org/collaborations/"
356
+ weight = 1
357
+
358
+ [[sidebar]]
359
+ parent = "sidebar-custom"
360
+ name = "Explore Working Groups"
361
+ weight = 1
362
+ url = "https://www.eclipse.org/org/working-groups/explore/"
363
+
364
+ [[sidebar]]
365
+ parent = "sidebar-custom"
366
+ name = "About Working Groups"
367
+ weight = 2
368
+ url = "https://www.eclipse.org/org/working-groups/about/"
369
+
370
+ [[sidebar]]
371
+ identifier = "sidebar-additional"
372
+ name = "Related Links"
373
+ weight = 2
374
+
375
+ [[sidebar]]
376
+ parent = "sidebar-additional"
377
+ name = "Working Group Process"
378
+ weight = 1
379
+ url = "https://www.eclipse.org/org/working-groups/process/"
380
+
381
+ [[sidebar]]
382
+ parent = "sidebar-additional"
383
+ name = "Working Group Operations"
384
+ weight = 2
385
+ url = "https://www.eclipse.org/org/working-groups/operations/"
386
+
387
+ [[sidebar]]
388
+ parent = "sidebar-additional"
389
+ name = "Working Group Development Effort Guidelines"
390
+ weight = 3
391
+ url = "https://www.eclipse.org/org/working-groups/wgfi-program/"
@@ -347,3 +347,45 @@
347
347
  name = "Go Home"
348
348
  url = "/"
349
349
  weight = 1
350
+
351
+ # Custom sidebar
352
+ [[sidebar]]
353
+ identifier = "sidebar-custom"
354
+ name = "Eclipse Working Groups"
355
+ url = "https://www.eclipse.org/collaborations/"
356
+ weight = 1
357
+
358
+ [[sidebar]]
359
+ parent = "sidebar-custom"
360
+ name = "Explore Working Groups"
361
+ weight = 1
362
+ url = "https://www.eclipse.org/org/working-groups/explore/"
363
+
364
+ [[sidebar]]
365
+ parent = "sidebar-custom"
366
+ name = "About Working Groups"
367
+ weight = 2
368
+ url = "https://www.eclipse.org/org/working-groups/about/"
369
+
370
+ [[sidebar]]
371
+ identifier = "sidebar-additional"
372
+ name = "Related Links"
373
+ weight = 2
374
+
375
+ [[sidebar]]
376
+ parent = "sidebar-additional"
377
+ name = "Working Group Process"
378
+ weight = 1
379
+ url = "https://www.eclipse.org/org/working-groups/process/"
380
+
381
+ [[sidebar]]
382
+ parent = "sidebar-additional"
383
+ name = "Working Group Operations"
384
+ weight = 2
385
+ url = "https://www.eclipse.org/org/working-groups/operations/"
386
+
387
+ [[sidebar]]
388
+ parent = "sidebar-additional"
389
+ name = "Working Group Development Effort Guidelines"
390
+ weight = 3
391
+ url = "https://www.eclipse.org/org/working-groups/wgfi-program/"
@@ -347,3 +347,45 @@
347
347
  name = "Go Home"
348
348
  url = "/"
349
349
  weight = 1
350
+
351
+ # Custom sidebar
352
+ [[sidebar]]
353
+ identifier = "sidebar-custom"
354
+ name = "Eclipse Working Groups"
355
+ url = "https://www.eclipse.org/collaborations/"
356
+ weight = 1
357
+
358
+ [[sidebar]]
359
+ parent = "sidebar-custom"
360
+ name = "Explore Working Groups"
361
+ weight = 1
362
+ url = "https://www.eclipse.org/org/working-groups/explore/"
363
+
364
+ [[sidebar]]
365
+ parent = "sidebar-custom"
366
+ name = "About Working Groups"
367
+ weight = 2
368
+ url = "https://www.eclipse.org/org/working-groups/about/"
369
+
370
+ [[sidebar]]
371
+ identifier = "sidebar-additional"
372
+ name = "Related Links"
373
+ weight = 2
374
+
375
+ [[sidebar]]
376
+ parent = "sidebar-additional"
377
+ name = "Working Group Process"
378
+ weight = 1
379
+ url = "https://www.eclipse.org/org/working-groups/process/"
380
+
381
+ [[sidebar]]
382
+ parent = "sidebar-additional"
383
+ name = "Working Group Operations"
384
+ weight = 2
385
+ url = "https://www.eclipse.org/org/working-groups/operations/"
386
+
387
+ [[sidebar]]
388
+ parent = "sidebar-additional"
389
+ name = "Working Group Development Effort Guidelines"
390
+ weight = 3
391
+ url = "https://www.eclipse.org/org/working-groups/wgfi-program/"
@@ -347,3 +347,45 @@
347
347
  name = "Go Home"
348
348
  url = "/"
349
349
  weight = 1
350
+
351
+ # Custom sidebar
352
+ [[sidebar]]
353
+ identifier = "sidebar-custom"
354
+ name = "Eclipse Working Groups"
355
+ url = "https://www.eclipse.org/collaborations/"
356
+ weight = 1
357
+
358
+ [[sidebar]]
359
+ parent = "sidebar-custom"
360
+ name = "Explore Working Groups"
361
+ weight = 1
362
+ url = "https://www.eclipse.org/org/working-groups/explore/"
363
+
364
+ [[sidebar]]
365
+ parent = "sidebar-custom"
366
+ name = "About Working Groups"
367
+ weight = 2
368
+ url = "https://www.eclipse.org/org/working-groups/about/"
369
+
370
+ [[sidebar]]
371
+ identifier = "sidebar-additional"
372
+ name = "Related Links"
373
+ weight = 2
374
+
375
+ [[sidebar]]
376
+ parent = "sidebar-additional"
377
+ name = "Working Group Process"
378
+ weight = 1
379
+ url = "https://www.eclipse.org/org/working-groups/process/"
380
+
381
+ [[sidebar]]
382
+ parent = "sidebar-additional"
383
+ name = "Working Group Operations"
384
+ weight = 2
385
+ url = "https://www.eclipse.org/org/working-groups/operations/"
386
+
387
+ [[sidebar]]
388
+ parent = "sidebar-additional"
389
+ name = "Working Group Development Effort Guidelines"
390
+ weight = 3
391
+ url = "https://www.eclipse.org/org/working-groups/wgfi-program/"
@@ -0,0 +1,130 @@
1
+ ---
2
+ title: "Sidebar"
3
+ date: 2024-09-05
4
+ sidebar:
5
+ - sidebar-custom
6
+ - sidebar-additional
7
+ ---
8
+
9
+ ## Front matter
10
+
11
+ A custom sidebar menu can be added to a specific page or subsection by including the "sidebar" parameter to a page's front matter using the following format:
12
+
13
+ ~~~md
14
+ sidebar:
15
+ - <custom-identifier>
16
+ - <custom-identifier-2>
17
+ - <custom-identifier-3>
18
+ ~~~
19
+
20
+ ## Site configs
21
+
22
+ For each sidebar identifier added in front matter, a corresponding config must be added to the site's "config" file. The "url" key can be omitted from the top-level menu items if they need to be displayed as regular text.
23
+
24
+ Using the identifiers listed above, here is what this configuration would look like:
25
+
26
+ ~~~toml
27
+ ## First menu section
28
+ [[sidebar]]
29
+ identifier = "custom-identifier"
30
+ name = "Custom Title 1"
31
+ url = "Absolute or relative URL"
32
+ weight = 1
33
+
34
+ [[sidebar]]
35
+ parent = "custom-identifier"
36
+ name = "Menu Item 1"
37
+ weight = 1
38
+ url = "Absolute or relative URL"
39
+
40
+ [[sidebar]]
41
+ parent = "custom-identifier"
42
+ name = "Menu Item 2"
43
+ weight = 2
44
+ url = "Absolute or relative URL"
45
+
46
+ [[sidebar]]
47
+ parent = "custom-identifier"
48
+ name = "Menu Item 3"
49
+ weight = 3
50
+ url = "Absolute or relative URL"
51
+
52
+ ## Second menu section
53
+ ## This menu title will not display as a clickable link
54
+ [[sidebar]]
55
+ identifier = "custom-identifier-2"
56
+ name = "Custom Title 2"
57
+ weight = 1
58
+
59
+ [[sidebar]]
60
+ parent = "custom-identifier-2"
61
+ name = "Menu Item 1"
62
+ weight = 1
63
+ url = "Absolute or relative URL"
64
+
65
+ ## Third menu section
66
+ [[sidebar]]
67
+ identifier = "custom-identifier-3"
68
+ name = "Custom Title 3"
69
+ url = "Absolute or relative URL"
70
+ weight = 1
71
+
72
+ [[sidebar]]
73
+ parent = "custom-identifier-3"
74
+ name = "Menu Item 1"
75
+ weight = 1
76
+ url = "Absolute or relative URL"
77
+ ~~~
78
+
79
+ ## On this page
80
+
81
+ Below is the configuration used to display the sidebar on this page.
82
+
83
+ ~~~md
84
+ sidebar:
85
+ - sidebar-custom
86
+ - sidebar-additional
87
+ ~~~
88
+
89
+ ~~~toml
90
+ [[sidebar]]
91
+ identifier = "sidebar-custom"
92
+ name = "Eclipse Working Groups"
93
+ url = "https://www.eclipse.org/collaborations/"
94
+ weight = 1
95
+
96
+ [[sidebar]]
97
+ parent = "sidebar-custom"
98
+ name = "Explore Working Groups"
99
+ weight = 1
100
+ url = "https://www.eclipse.org/org/working-groups/explore/"
101
+
102
+ [[sidebar]]
103
+ parent = "sidebar-custom"
104
+ name = "About Working Groups"
105
+ weight = 2
106
+ url = "https://www.eclipse.org/org/working-groups/about/"
107
+
108
+ [[sidebar]]
109
+ identifier = "sidebar-additional"
110
+ name = "Related Links"
111
+ weight = 2
112
+
113
+ [[sidebar]]
114
+ parent = "sidebar-additional"
115
+ name = "Working Group Process"
116
+ weight = 1
117
+ url = "https://www.eclipse.org/org/working-groups/process/"
118
+
119
+ [[sidebar]]
120
+ parent = "sidebar-additional"
121
+ name = "Working Group Operations"
122
+ weight = 2
123
+ url = "https://www.eclipse.org/org/working-groups/operations/"
124
+
125
+ [[sidebar]]
126
+ parent = "sidebar-additional"
127
+ name = "Working Group Development Effort Guidelines"
128
+ weight = 3
129
+ url = "https://www.eclipse.org/org/working-groups/wgfi-program/"
130
+ ~~~
@@ -146,3 +146,9 @@ items:
146
146
  description: Formats the page title in headings and breadcrumbs to title case. If there is no value set, will default to true.
147
147
  values:
148
148
  - "false"
149
+
150
+ -
151
+ name: sidebar
152
+ description: Target specific menu identifiers. Used when a page or sub-section uses different sidebar content than the rest of the section it's in. Each identifier must have a corresponding "menu.sidebar" entry in the site's "config" file. If this parameter is omitted, the default sidebar for the section is used.
153
+ values:
154
+ - An array of string values
@@ -19,43 +19,90 @@
19
19
  {{ range (index .Site.Menus $main_menu) }}
20
20
  {{ $menu_id := .Identifier | default (lower .Name) }}
21
21
  {{ $target_menu := printf "%s-menu" $menu_id }}
22
+ {{ $menu_type := "link" }}
22
23
 
23
- <li class="mobile-menu-dropdown">
24
- <a class="mobile-menu-item mobile-menu-dropdown-toggle" data-target="{{ $target_menu }}">
25
- <span>{{ .Name }}</span>
26
- <i class="fa fa-chevron-down" aria-hidden="true"></i>
27
- </a>
28
- <div class="mobile-menu-sub-menu-wrapper">
29
- <ul class="mobile-menu-sub-menu hidden" id="{{ .Identifier }}-menu">
30
- {{ range .Children }}
31
- <li class="mobile-menu-dropdown">
32
- <a
33
- data-target="{{ .Identifier }}-sub-menu"
34
- class="mobile-menu-item mobile-menu-dropdown-toggle"
35
- aria-expanded="false"
36
- >
37
- <span>{{ .Name }}</span>
38
- <i class="fa fa-chevron-down" aria-hidden="true"></i>
39
- </a>
40
- <div class="mobile-menu-sub-menu-wrapper">
41
- <ul
42
- class="mobile-menu-sub-menu mobile-menu-links-menu hidden"
43
- id="{{ .Identifier }}-sub-menu"
44
- >
45
- {{ range .Children }}
46
- <li>
47
- <a class="mobile-menu-item" href="{{ .URL }}">
48
- {{ .Name }}
49
- </a>
50
- </li>
51
- {{ end }}
52
- </ul>
53
- </div>
54
- </li>
55
- {{ end }}
56
- </ul>
57
- </div>
58
- </li>
24
+ {{/* If the desktop menu uses basic dropdowns, set menu type to "dropdown". */}}
25
+ {{ if .HasChildren }}
26
+ {{ $menu_type = "dropdown" }}
27
+ {{ end }}
28
+
29
+ {{/* Unless if any of the menus are 3-levels deep then we know the desktop menu type is "mega". */}}
30
+ {{ range .Children }}
31
+ {{ if .HasChildren }}
32
+ {{ $menu_type = "mega" }}
33
+ {{ end }}
34
+ {{ end }}
35
+
36
+ {{ $args := dict "target_menu" $target_menu "Name" .Name "URL" .URL "Identifier" .Identifier "Children" .Children }}
37
+
38
+ {{ if eq $menu_type "link" }}
39
+ {{ template "mobile_menu_link" $args }}
40
+ {{ else if eq $menu_type "dropdown" }}
41
+ {{ template "mobile_menu_dropdown" $args }}
42
+ {{ else if eq $menu_type "mega" }}
43
+ {{ template "mobile_menu_mega" $args }}
44
+ {{ end }}
59
45
  {{ end }}
60
46
  </ul>
61
47
  </nav>
48
+
49
+ {{ define "mobile_menu_link" }}
50
+ <li>
51
+ <a class="mobile-menu-item" href="{{ .URL }}">{{ .Name }}</a>
52
+ </li>
53
+ {{ end }}
54
+
55
+ {{ define "mobile_menu_dropdown" }}
56
+ <li class="mobile-menu-dropdown">
57
+ <a class="mobile-menu-item mobile-menu-dropdown-toggle" data-target="{{ .target_menu }}">
58
+ <span>{{ .Name }}</span>
59
+ <i class="fa fa-chevron-down" aria-hidden="true"></i>
60
+ </a>
61
+ <div class="mobile-menu-sub-menu-wrapper">
62
+ <ul class="mobile-menu-sub-menu mobile-menu-links-menu hidden" id="{{ .Identifier }}-menu">
63
+ {{ range .Children }}
64
+ {{ template "mobile_menu_link" . }}
65
+ {{ end }}
66
+ </ul>
67
+ </div>
68
+ </li>
69
+ {{ end }}
70
+
71
+ {{ define "mobile_menu_mega" }}
72
+ <li class="mobile-menu-dropdown">
73
+ <a class="mobile-menu-item mobile-menu-dropdown-toggle" data-target="{{ .target_menu }}">
74
+ <span>{{ .Name }}</span>
75
+ <i class="fa fa-chevron-down" aria-hidden="true"></i>
76
+ </a>
77
+ <div class="mobile-menu-sub-menu-wrapper">
78
+ <ul class="mobile-menu-sub-menu hidden" id="{{ .Identifier }}-menu">
79
+ {{ range .Children }}
80
+ <li class="mobile-menu-dropdown">
81
+ <a
82
+ data-target="{{ .Identifier }}-sub-menu"
83
+ class="mobile-menu-item mobile-menu-dropdown-toggle"
84
+ aria-expanded="false"
85
+ >
86
+ <span>{{ .Name }}</span>
87
+ <i class="fa fa-chevron-down" aria-hidden="true"></i>
88
+ </a>
89
+ <div class="mobile-menu-sub-menu-wrapper">
90
+ <ul
91
+ class="mobile-menu-sub-menu mobile-menu-links-menu hidden"
92
+ id="{{ .Identifier }}-sub-menu"
93
+ >
94
+ {{ range .Children }}
95
+ <li>
96
+ <a class="mobile-menu-item" href="{{ .URL }}">
97
+ {{ .Name }}
98
+ </a>
99
+ </li>
100
+ {{ end }}
101
+ </ul>
102
+ </div>
103
+ </li>
104
+ {{ end }}
105
+ </ul>
106
+ </div>
107
+ </li>
108
+ {{ end }}
@@ -1,75 +1,79 @@
1
1
  {{/*
2
- Copyright (c) 2023 Eclipse Foundation, Inc.
2
+ Copyright (c) 2023, 2024 Eclipse Foundation, Inc.
3
3
  This program and the accompanying materials are made available under the
4
4
  terms of the Eclipse Public License v. 2.0 which is available at
5
5
  http://www.eclipse.org/legal/epl-2.0.
6
6
 
7
7
  Contributors:
8
8
  Olivier Goulet <olivier.goulet@eclipse-foundation.org>
9
+ Zachary Sabourin <zachary.sabourin@eclipse-foundation.org>
9
10
 
10
11
  SPDX-License-Identifier: EPL-2.0
11
12
  */}}
12
13
 
13
14
  {{ if isset .Site.Menus "sidebar" }}
14
- {{ $current_page := . }}
15
- {{ $current_section := "home" }}
15
+ {{ $identifiers := slice "home" }}
16
16
 
17
- {{ if $current_page.Section }}
18
- {{ $current_section = $current_page.Section }}
19
- {{ end }}
17
+ {{ if .Page.Params.sidebar }}
18
+ {{ $identifiers = .Page.Params.sidebar }}
19
+ {{ else if .Page.Section }}
20
+ {{ $identifiers = slice .Page.Section }}
21
+ {{ end }}
22
+
23
+ {{ $menu_sections := where .Site.Menus.sidebar "Identifier" "in" $identifiers}}
20
24
 
21
- {{ range .Site.Menus.sidebar }}
22
- {{ $parent_item := . }}
23
- {{ if and (.HasChildren) (eq $current_section $parent_item.Identifier ) }}
24
- <aside class="main-sidebar-default-margin" id="main-sidebar">
25
- <ul class="ul-left-nav" id="leftnav" role="tablist" aria-multiselectable="true">
26
- <li class="main-sidebar-main-item main-sidebar-item-indented separator">
27
- <a class="main-sidebar-heading link-unstyled" href="{{ .URL }}">
28
- {{ .Name }}
29
- </a>
30
- </li>
31
- {{ range .Children }}
32
- <li class="main-sidebar-item main-sidebar-item-indented">
33
- {{ if .HasChildren }}
34
- <li class="main-sidebar-item main-sidebar-item-indented">
35
- <a
36
- class="link-unstyled"
37
- role="button"
38
- data-toggle="collapse"
39
- href="#{{ .Identifier }}"
40
- aria-expanded="false"
41
- aria-controls="{{ .Identifier }}"
42
- >
43
- <span>{{ .Name }}</span>
44
- <i class="main-sidebar-item-icon fa fa-chevron-down" aria-hidden="true"></i>
45
- </a>
46
- <div class="collapse" id="{{ .Identifier }}">
47
- <ul class="main-sidebar-item-submenu list-unstyled">
48
- {{ range .Children }}
49
- <li class="submenu-item">
50
- {{ .Pre }}
51
- <a class="link-unstyled" href="{{ .URL }}" target="_self">{{ .Name }}</a>
52
- </li>
53
- {{ end }}
54
- </ul>
55
- </div>
56
- </li>
57
- {{ else }}
58
- <li class="main-sidebar-item main-sidebar-item-indented">
59
- <a class="link-unstyled" href="{{ .URL }}">
60
- <div>
61
- <span class="main-sidebar-item-pre" aria-hidden="true">
62
- {{ .Pre }}
63
- </span>
64
- {{ .Name }}
65
- </div>
66
- </a>
67
- </li>
68
- {{ end }}
25
+ {{ with $menu_sections }}
26
+ <aside class="main-sidebar-default-margin" id="main-sidebar">
27
+ {{ range . }}
28
+ {{ if .HasChildren }}
29
+ <ul class="ul-left-nav" id="leftnav" role="tablist" aria-multiselectable="true">
30
+ <li class="main-sidebar-main-item main-sidebar-item-indented separator">
31
+ {{ if .URL }}
32
+ <a class="main-sidebar-heading link-unstyled" href="{{ .URL }}">
33
+ {{ .Name }}
34
+ </a>
35
+ {{ else }}
36
+ <p class="main-sidebar-heading">
37
+ {{ .Name }}
38
+ </p>
39
+ {{ end }}
40
+ </li>
41
+ {{ range .Children }}
42
+ <li class="main-sidebar-item main-sidebar-item-indented">
43
+ {{ if .HasChildren }}
44
+ <li class="main-sidebar-item main-sidebar-item-indented">
45
+ <a class="link-unstyled" role="button" data-toggle="collapse" href="#{{ .Identifier }}" aria-expanded="false" aria-controls="{{ .Identifier }}">
46
+ <span>{{ .Name }}</span>
47
+ <i class="main-sidebar-item-icon fa fa-chevron-down" aria-hidden="true"></i>
48
+ </a>
49
+ <div class="collapse" id="{{ .Identifier }}">
50
+ <ul class="main-sidebar-item-submenu list-unstyled">
51
+ {{ range .Children }}
52
+ <li class="submenu-item">
53
+ {{ .Pre }}
54
+ <a class="link-unstyled" href="{{ .URL }}" target="_self">{{ .Name }}</a>
69
55
  </li>
70
- {{ end }}
71
- </ul>
72
- </aside>
56
+ {{ end }}
57
+ </ul>
58
+ </div>
59
+ </li>
60
+ {{ else }}
61
+ <li class="main-sidebar-item main-sidebar-item-indented">
62
+ <a class="link-unstyled" href="{{ .URL }}">
63
+ <div>
64
+ <span class="main-sidebar-item-pre" aria-hidden="true">
65
+ {{ .Pre }}
66
+ </span>
67
+ {{ .Name }}
68
+ </div>
69
+ </a>
70
+ </li>
71
+ {{ end }}
72
+ </li>
73
+ {{ end }}
74
+ </ul>
73
75
  {{ end }}
74
- {{end }}
76
+ {{ end }}
77
+ </aside>
78
+ {{ end }}
75
79
  {{ end }}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "webpack.min.js",
5
5
  "author": "Christopher Guindon",
6
6
  "license": "EPL-2.0",
7
- "version": "0.0.217",
7
+ "version": "0.0.218",
8
8
  "bugs": {
9
9
  "url": "https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/-/issues"
10
10
  },
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "readmeFilename": "README.md",
24
24
  "dependencies": {
25
- "axios": "^1.6.0",
26
- "eclipsefdn-solstice-assets": "0.0.268",
25
+ "axios": "^1.7.7",
26
+ "eclipsefdn-solstice-assets": "0.0.270",
27
27
  "json2yaml": "^1.1.0",
28
28
  "toml": "^3.0.0"
29
29
  },