eclipsefdn-hugo-solstice-theme 2.0.0 → 3.0.0
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.
- package/config.toml +521 -286
- package/exampleSite/config/_default/config.toml +2 -2
- package/layouts/_default/baseof.html +0 -1
- package/layouts/partials/breadcrumbs.html +26 -33
- package/layouts/partials/featured_story_popup.html +6 -0
- package/layouts/partials/footer.html +60 -19
- package/layouts/partials/footer_js.html +1 -1
- package/layouts/partials/head.html +10 -10
- package/layouts/partials/header.html +8 -8
- package/layouts/partials/jumbotron.html +73 -85
- package/layouts/partials/main_prefix.html +16 -18
- package/layouts/partials/main_suffix.html +1 -18
- package/layouts/partials/mega_menu.html +47 -51
- package/layouts/partials/mobile_menu.html +43 -97
- package/layouts/partials/nav.html +47 -60
- package/layouts/partials/navbar.html +108 -29
- package/layouts/partials/sidebar.html +48 -54
- package/layouts/partials/socials.html +15 -90
- package/layouts/partials/toolbar.html +4 -70
- package/package.json +3 -3
- package/webpack.mix.js +4 -4
- package/layouts/partials/featured_story.html +0 -38
- package/layouts/partials/footer_links/footer-copyright.html +0 -19
- package/layouts/partials/footer_links/footer-eclipse-foundation.html +0 -11
- package/layouts/partials/footer_links/footer-legal.html +0 -12
- package/layouts/partials/footer_links/footer-other.html +0 -10
- package/layouts/partials/footer_links/footer-useful-links.html +0 -11
- package/layouts/partials/footer_links/links.html +0 -3
- package/layouts/partials/footer_links/prefix.html +0 -0
- package/layouts/partials/footer_links/suffix.html +0 -36
- package/layouts/partials/working_group_footer.html +0 -55
|
@@ -1,108 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
Copyright (c)
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (c) 2025 Eclipse Foundation AISBL
|
|
3
3
|
|
|
4
4
|
This program and the accompanying materials are made available under the
|
|
5
5
|
terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
6
|
http://www.eclipse.org/legal/epl-2.0.
|
|
7
7
|
|
|
8
|
-
Contributors:
|
|
9
|
-
Olivier Goulet <olivier.goulet@eclipse-foundation.org>
|
|
10
|
-
|
|
11
8
|
SPDX-License-Identifier: EPL-2.0
|
|
12
|
-
|
|
9
|
+
-->
|
|
13
10
|
|
|
14
11
|
{{ $main_menu := .Scratch.Get "main_menu" }}
|
|
15
12
|
{{ $current_page := . }}
|
|
16
|
-
|
|
17
|
-
<nav class="mobile-menu
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
{{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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>
|
|
13
|
+
<div class="mobile-menu hidden">
|
|
14
|
+
<nav class="mobile-menu-nav">
|
|
15
|
+
{{ template "mobile_menu_list" (dict "current_page" $current_page "menu_id" nil "menu" (index .Site.Menus $main_menu)) }}
|
|
16
|
+
</nav>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
{{ define "mobile_menu_list" }}
|
|
20
|
+
{{ $current_page := .current_page }}
|
|
21
|
+
|
|
22
|
+
{{ $has_parent := false }}
|
|
23
|
+
|
|
24
|
+
<!-- Detect whether this menu is the root or not. -->
|
|
25
|
+
{{ range .menu }}
|
|
26
|
+
{{ if .Parent }}
|
|
27
|
+
{{ $has_parent = true }}
|
|
28
|
+
{{ end }}
|
|
29
|
+
{{ end }}
|
|
30
|
+
|
|
31
|
+
<ul {{ if $has_parent -}} class="collapse" id="{{ .menu_id }}" {{- end -}}>
|
|
32
|
+
{{ range .menu }}
|
|
33
|
+
{{ $menu_id := .Identifier | default (lower .Name) }}
|
|
34
|
+
{{ $target_menu := printf "mobile-menu-%s" $menu_id }}
|
|
35
|
+
<li>
|
|
36
|
+
{{ if .HasChildren }}
|
|
37
|
+
<a
|
|
38
|
+
role="button"
|
|
39
|
+
href="#{{ $target_menu }}"
|
|
40
|
+
data-toggle="collapse"
|
|
41
|
+
aria-expanded="false"
|
|
42
|
+
aria-controls="{{ $target_menu }}"
|
|
43
|
+
>
|
|
44
|
+
{{ .Name }}
|
|
45
|
+
<i class="fa-solid fa-chevron-down" aria-hidden="true"></i>
|
|
46
|
+
</a>
|
|
47
|
+
{{ template "mobile_menu_list" (dict "current_page" $current_page "menu_id" $target_menu "menu" .Children) }}
|
|
48
|
+
{{ else }}
|
|
49
|
+
<a href="{{ .URL }}" {{ with .Params.target -}} target="{{ . | safeHTMLAttr }}" {{- end }}>{{ .Name }}</a>
|
|
104
50
|
{{ end }}
|
|
105
|
-
</
|
|
106
|
-
|
|
107
|
-
</
|
|
51
|
+
</li>
|
|
52
|
+
{{ end }}
|
|
53
|
+
</ul>
|
|
108
54
|
{{ end }}
|
|
@@ -1,82 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
Copyright (c)
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (c) 2025 Eclipse Foundation AISBL
|
|
3
3
|
|
|
4
4
|
This program and the accompanying materials are made available under the
|
|
5
5
|
terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
6
|
http://www.eclipse.org/legal/epl-2.0.
|
|
7
7
|
|
|
8
|
-
Contributors:
|
|
9
|
-
Olivier Goulet <olivier.goulet@eclipse-foundation.org>
|
|
10
|
-
|
|
11
8
|
SPDX-License-Identifier: EPL-2.0
|
|
12
|
-
|
|
9
|
+
-->
|
|
13
10
|
|
|
14
11
|
{{ if .Page.Params.main_menu }}
|
|
15
12
|
{{ .Scratch.Set "main_menu" .Page.Params.main_menu }}
|
|
16
13
|
{{ else if (index .Site.Menus "main") }}
|
|
17
14
|
{{ .Scratch.Set "main_menu" "main" }}
|
|
18
15
|
{{ else }}
|
|
19
|
-
{{ .Scratch.Set "main_menu" "
|
|
16
|
+
{{ .Scratch.Set "main_menu" "neptune" }}
|
|
20
17
|
{{ end }}
|
|
21
18
|
|
|
19
|
+
|
|
22
20
|
{{ $main_menu := .Scratch.Get "main_menu" }}
|
|
23
21
|
{{ $current_page := . }}
|
|
24
22
|
|
|
25
|
-
<nav class="
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
<nav class="navigation-bar-nav hidden-xs hidden-sm">
|
|
24
|
+
<ul>
|
|
25
|
+
{{ range (index .Site.Menus $main_menu) }}
|
|
26
|
+
{{ $menu_id := .Identifier | default (lower .Name) }}
|
|
27
|
+
{{ $target_menu := printf "%s-menu" $menu_id }}
|
|
28
|
+
{{ $active_class := "" }}
|
|
29
|
+
{{ $menu_type := "link" }}
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{{/* If the menu has children, we will show a dropdown */}}
|
|
38
|
-
{{ if .HasChildren }}
|
|
39
|
-
{{ $menu_type = "dropdown" }}
|
|
40
|
-
{{ end }}
|
|
31
|
+
{{ if $current_page.IsMenuCurrent $main_menu . }}
|
|
32
|
+
{{ $active_class = "active" }}
|
|
33
|
+
{{ end }}
|
|
41
34
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
{{ end }}
|
|
47
|
-
{{ end }}
|
|
35
|
+
{{/* If the menu has children, we will show a dropdown */}}
|
|
36
|
+
{{ if .HasChildren }}
|
|
37
|
+
{{ $menu_type = "dropdown" }}
|
|
38
|
+
{{ end }}
|
|
48
39
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
<div class="dropdown">
|
|
54
|
-
<button class="btn-link link-unstyled" id="{{ $menu_id }}" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
55
|
-
{{ .Name }}
|
|
56
|
-
<i class="fa fa-caret-down" aria-hidden="true"></i>
|
|
57
|
-
</button>
|
|
58
|
-
<ul class="dropdown-menu" aria-labelledby="{{ $menu_id }}">
|
|
59
|
-
{{ range .Children }}
|
|
60
|
-
<li>
|
|
61
|
-
<a class="link-unstyled" href="{{ .URL }}" {{ with .Params.target -}} target="{{ . | safeHTMLAttr }}" {{- end }}>
|
|
62
|
-
{{ .Name }}
|
|
63
|
-
{{ with .Params.external }}<i class="external-icon fa-solid fa-arrow-up-right-from-square" aria-hidden="true"></i>{{ end }}
|
|
64
|
-
</a>
|
|
65
|
-
</li>
|
|
66
|
-
{{ end }}
|
|
67
|
-
</ul>
|
|
68
|
-
</div>
|
|
69
|
-
{{ else }}
|
|
70
|
-
<button
|
|
71
|
-
class="nav-link-js btn-link link-unstyled"
|
|
72
|
-
type="button"
|
|
73
|
-
aria-expanded="true"
|
|
74
|
-
data-menu-target="{{ $target_menu }}"
|
|
75
|
-
>
|
|
76
|
-
{{ .Name }}
|
|
77
|
-
</button>
|
|
78
|
-
{{ end }}
|
|
79
|
-
</li>
|
|
40
|
+
{{/* Unless if any of the menus are 3-levels deep then we will show a mega menu. */}}
|
|
41
|
+
{{ range .Children }}
|
|
42
|
+
{{ if .HasChildren }}
|
|
43
|
+
{{ $menu_type = "mega" }}
|
|
80
44
|
{{ end }}
|
|
81
|
-
|
|
45
|
+
{{ end }}
|
|
46
|
+
|
|
47
|
+
{{ if eq $menu_type "link" }}
|
|
48
|
+
<li>
|
|
49
|
+
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
50
|
+
</li>
|
|
51
|
+
{{ else if eq $menu_type "dropdown" }}
|
|
52
|
+
<li class="dropdown">
|
|
53
|
+
<button
|
|
54
|
+
class="dropdown-toggle btn btn-link"
|
|
55
|
+
data-toggle="dropdown"
|
|
56
|
+
aria-haspopup="true"
|
|
57
|
+
aria-expanded="false"
|
|
58
|
+
>
|
|
59
|
+
{{ .Name }}
|
|
60
|
+
</button>
|
|
61
|
+
</li>
|
|
62
|
+
{{ else if eq $menu_type "mega" }}
|
|
63
|
+
<li>
|
|
64
|
+
<button type="button" class="btn btn-link" data-target="{{ $target_menu }}">{{ .Name }}</button>
|
|
65
|
+
</li>
|
|
66
|
+
{{ end }}
|
|
67
|
+
{{ end }}
|
|
68
|
+
</ul>
|
|
82
69
|
</nav>
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
Copyright (c)
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (c) 2025 Eclipse Foundation AISBL
|
|
3
3
|
|
|
4
4
|
This program and the accompanying materials are made available under the
|
|
5
5
|
terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
6
|
http://www.eclipse.org/legal/epl-2.0.
|
|
7
7
|
|
|
8
|
-
Contributors:
|
|
9
|
-
Olivier Goulet <olivier.goulet@eclipse-foundation.org>
|
|
10
|
-
|
|
11
8
|
SPDX-License-Identifier: EPL-2.0
|
|
12
|
-
|
|
9
|
+
-->
|
|
13
10
|
|
|
14
|
-
{{ $logo := .Site.Params.logo | default "https://www.eclipse.org/eclipse.org-common/themes/solstice/public/images/logo/eclipse-foundation-
|
|
11
|
+
{{ $logo := .Site.Params.logo | default "https://www.eclipse.org/eclipse.org-common/themes/solstice/public/images/logo/eclipse-foundation-white-orange.svg" }}
|
|
15
12
|
{{ $logo_width := .Site.Params.logo_width | default "150" }}
|
|
16
13
|
{{ $logo_title := .Site.Params.logo_title | default $.Site.Title }}
|
|
17
14
|
|
|
@@ -22,30 +19,112 @@
|
|
|
22
19
|
|
|
23
20
|
{{ $hide_cfa := .Site.Params.hide_call_for_action | default .Page.Params.hide_call_for_action | default false }}
|
|
24
21
|
|
|
25
|
-
<div class="
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
{{
|
|
34
|
-
|
|
35
|
-
|
|
22
|
+
<div class="navigation-bar dark">
|
|
23
|
+
<div class="container">
|
|
24
|
+
<div class="navigation-bar-inner">
|
|
25
|
+
<div class="navigation-bar-left">
|
|
26
|
+
<a class="focus-highlight focus-inverse" href="/">
|
|
27
|
+
<img
|
|
28
|
+
class="navigation-bar-brand"
|
|
29
|
+
src="{{ $logo }}"
|
|
30
|
+
alt="{{ $logo_title }}"
|
|
31
|
+
/>
|
|
32
|
+
</a>
|
|
33
|
+
</div>
|
|
34
|
+
{{ partial "nav.html" . }}
|
|
35
|
+
<div class="navigation-bar-right">
|
|
36
|
+
<!-- Navbar controls -->
|
|
37
|
+
<div class="navigation-bar-controls hidden-xs hidden-sm">
|
|
38
|
+
<ul>
|
|
39
|
+
<li class="dropdown">
|
|
40
|
+
<a
|
|
41
|
+
class="dropdown-toggle link-unstyled focus-highlight"
|
|
42
|
+
tabindex="0"
|
|
43
|
+
id="search-dropdown-toggle"
|
|
44
|
+
data-toggle="dropdown"
|
|
45
|
+
href="#"
|
|
46
|
+
aria-label="Search"
|
|
47
|
+
>
|
|
48
|
+
<i class="fa-solid fa-magnifying-glass" aria-hidden="true"></i>
|
|
49
|
+
</a>
|
|
50
|
+
<form
|
|
51
|
+
class="search-bar dropdown-menu dropdown-menu-right"
|
|
52
|
+
aria-labelledby="search-dropdown-toggle"
|
|
53
|
+
action="https://www.eclipse.org/home/search/"
|
|
54
|
+
method="get"
|
|
55
|
+
>
|
|
56
|
+
<input class="search-bar-input" name="q" placeholder="Search" />
|
|
57
|
+
<button class="btn btn-link" type="submit">
|
|
58
|
+
<i class="fa-solid fa-arrow-right"></i>
|
|
59
|
+
</button>
|
|
60
|
+
</form>
|
|
61
|
+
</li>
|
|
62
|
+
<li class="dropdown">
|
|
63
|
+
<a
|
|
64
|
+
class="dropdown-toggle focus-highlight"
|
|
65
|
+
id="user-menu"
|
|
66
|
+
href="#"
|
|
67
|
+
data-toggle="dropdown"
|
|
68
|
+
aria-haspopup="true"
|
|
69
|
+
aria-expanded="false"
|
|
70
|
+
tabindex="0"
|
|
71
|
+
>
|
|
72
|
+
<i class="fa-regular fa-user" aria-hidden="true"></i>
|
|
73
|
+
</a>
|
|
74
|
+
<ul
|
|
75
|
+
class="dropdown-menu dropdown-menu-right"
|
|
76
|
+
aria-labelledby="user-menu"
|
|
77
|
+
>
|
|
78
|
+
<li>
|
|
79
|
+
<a href="https://accounts.eclipse.org/user">
|
|
80
|
+
<i
|
|
81
|
+
class="fa-solid fa-user margin-right-10"
|
|
82
|
+
aria-hidden="true"
|
|
83
|
+
></i>
|
|
84
|
+
View my account
|
|
85
|
+
</a>
|
|
86
|
+
</li>
|
|
87
|
+
<li>
|
|
88
|
+
<a href="https://accounts.eclipse.org/user/edit">
|
|
89
|
+
<i
|
|
90
|
+
class="fa-solid fa-edit margin-right-10"
|
|
91
|
+
aria-hidden="true"
|
|
92
|
+
></i>
|
|
93
|
+
Edit my account
|
|
94
|
+
</a>
|
|
95
|
+
</li>
|
|
96
|
+
<li>
|
|
97
|
+
<a role="link" class="toolbar-manage-cookies" href="#" tabindex="0">
|
|
98
|
+
<i
|
|
99
|
+
class="fa-solid fa-wrench margin-right-10"
|
|
100
|
+
aria-hidden=""
|
|
101
|
+
></i>
|
|
102
|
+
Manage cookies
|
|
103
|
+
</a>
|
|
104
|
+
</li>
|
|
105
|
+
</ul>
|
|
106
|
+
</li>
|
|
107
|
+
</ul>
|
|
108
|
+
</div>
|
|
109
|
+
<!-- Navbar controls end -->
|
|
110
|
+
{{ if not $hide_cfa }}
|
|
111
|
+
<div class="navigation-bar-ctas hidden-xs hidden-sm">
|
|
112
|
+
<ul>
|
|
113
|
+
<li>
|
|
36
114
|
<a
|
|
37
|
-
class="
|
|
38
|
-
|
|
39
|
-
|
|
115
|
+
class="btn btn-outline-primary"
|
|
116
|
+
{{ with $call_for_action_id -}} id="{{ . }}" {{- end }}
|
|
117
|
+
href="{{ $call_for_action_url }}"
|
|
40
118
|
>
|
|
41
|
-
<i class="fa {{ $call_for_action_icon }}" aria-hidden="true"></i>
|
|
42
119
|
{{ $call_for_action_text }}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</
|
|
120
|
+
</a>
|
|
121
|
+
</li>
|
|
122
|
+
</ul>
|
|
123
|
+
</div>
|
|
124
|
+
{{ end }}
|
|
125
|
+
<a class="mobile-menu-toggle visible-xs visible-sm" aria-expanded="false">
|
|
126
|
+
</a>
|
|
127
|
+
</div>
|
|
50
128
|
</div>
|
|
129
|
+
</div>
|
|
51
130
|
</div>
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
Copyright (c)
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (c) 2025 Eclipse Foundation AISBL
|
|
3
|
+
|
|
3
4
|
This program and the accompanying materials are made available under the
|
|
4
5
|
terms of the Eclipse Public License v. 2.0 which is available at
|
|
5
6
|
http://www.eclipse.org/legal/epl-2.0.
|
|
6
7
|
|
|
7
|
-
Contributors:
|
|
8
|
-
Olivier Goulet <olivier.goulet@eclipse-foundation.org>
|
|
9
|
-
Zachary Sabourin <zachary.sabourin@eclipse-foundation.org>
|
|
10
|
-
|
|
11
8
|
SPDX-License-Identifier: EPL-2.0
|
|
12
|
-
|
|
9
|
+
-->
|
|
13
10
|
|
|
14
11
|
{{ if isset .Site.Menus "sidebar" }}
|
|
15
12
|
{{ $identifiers := slice "home" }}
|
|
@@ -23,57 +20,54 @@
|
|
|
23
20
|
{{ $menu_sections := where .Site.Menus.sidebar "Identifier" "in" $identifiers}}
|
|
24
21
|
|
|
25
22
|
{{ with $menu_sections }}
|
|
26
|
-
<aside class="
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
23
|
+
<aside class="sidebar">
|
|
24
|
+
<a
|
|
25
|
+
class="sidebar-toggle sidebar-toggle-open"
|
|
26
|
+
type="button"
|
|
27
|
+
href="#sidebar-open"
|
|
28
|
+
>
|
|
29
|
+
<i class="fa-solid fa-bars" aria-hidden="true"></i>
|
|
30
|
+
</a>
|
|
31
|
+
<a
|
|
32
|
+
class="sidebar-toggle sidebar-toggle-close"
|
|
33
|
+
type="button"
|
|
34
|
+
href="#sidebar-close"
|
|
35
|
+
>
|
|
36
|
+
<i class="fa-solid fa-close" aria-hidden="true"></i>
|
|
37
|
+
</a>
|
|
38
|
+
<nav>
|
|
39
|
+
<ul class="sidebar-menu">
|
|
40
|
+
{{ range $index, $menu := . }}
|
|
41
|
+
<li class="menu-group">
|
|
42
|
+
<!-- bootstrap 3 collapse -->
|
|
43
|
+
<a href="#{{ $menu.Identifier }}" data-toggle="collapse" aria-expanded="{{ if eq $index 0 -}} true {{- else -}} false {{- end}}" class="dropdown-toggle">
|
|
44
|
+
{{ $menu.Name }}
|
|
45
|
+
</a>
|
|
46
|
+
<ul class="collapse {{ if eq $index 0 -}} in {{- end }}" id="{{ $menu.Identifier }}">
|
|
47
|
+
{{ range $menu.Children }}
|
|
48
|
+
{{ if .HasChildren }}
|
|
49
|
+
<li class="menu-subgroup">
|
|
50
|
+
<a href="#{{ .Identifier }}" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
|
|
51
|
+
{{ .Name }}
|
|
52
|
+
</a>
|
|
53
|
+
<ul class="collapse" id="{{ .Identifier }}">
|
|
51
54
|
{{ range .Children }}
|
|
52
|
-
|
|
53
|
-
{{ .Pre }}
|
|
54
|
-
<a class="link-unstyled" href="{{ .URL | relURL }}" target="_self">{{ .Name }}</a>
|
|
55
|
-
</li>
|
|
55
|
+
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
|
56
56
|
{{ end }}
|
|
57
57
|
</ul>
|
|
58
|
-
</
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
<span class="main-sidebar-item-pre" aria-hidden="true">
|
|
65
|
-
{{ .Pre }}
|
|
66
|
-
</span>
|
|
67
|
-
{{ .Name }}
|
|
68
|
-
</div>
|
|
69
|
-
</a>
|
|
70
|
-
</li>
|
|
58
|
+
</li>
|
|
59
|
+
{{ else }}
|
|
60
|
+
<li>
|
|
61
|
+
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
62
|
+
</li>
|
|
63
|
+
{{ end }}
|
|
71
64
|
{{ end }}
|
|
72
|
-
</
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
65
|
+
</ul>
|
|
66
|
+
</li>
|
|
67
|
+
{{ end }}
|
|
68
|
+
</ul>
|
|
69
|
+
</nav>
|
|
77
70
|
</aside>
|
|
78
71
|
{{ end }}
|
|
79
72
|
{{ end }}
|
|
73
|
+
|