eclipsefdn-hugo-solstice-theme 0.3.3 → 2.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 +0 -660
- package/exampleSite/config/_default/config.toml +2 -3
- package/layouts/_default/baseof.html +0 -1
- package/layouts/partials/breadcrumbs.html +28 -2
- package/layouts/partials/featured_story.html +1 -8
- package/layouts/partials/featured_story_popup.html +0 -6
- package/layouts/partials/footer.html +20 -8
- package/layouts/partials/footer_js.html +1 -4
- package/layouts/partials/footer_links/footer-copyright.html +0 -5
- package/layouts/partials/footer_links/footer-eclipse-foundation.html +11 -31
- package/layouts/partials/footer_links/footer-legal.html +12 -28
- package/layouts/partials/footer_links/footer-other.html +10 -27
- package/layouts/partials/footer_links/links.html +0 -8
- package/layouts/partials/footer_links/suffix.html +21 -23
- package/layouts/partials/head.html +10 -15
- package/layouts/partials/header.html +12 -5
- package/layouts/partials/jumbotron.html +91 -5
- package/layouts/partials/main_prefix.html +29 -4
- package/layouts/partials/main_suffix.html +16 -2
- package/layouts/partials/mega_menu.html +53 -3
- package/layouts/partials/mobile_menu.html +95 -5
- package/layouts/partials/nav.html +62 -9
- package/layouts/partials/navbar.html +37 -4
- package/layouts/partials/sidebar.html +68 -5
- package/layouts/partials/socials.html +85 -4
- package/layouts/partials/toolbar.html +65 -3
- package/package.json +3 -3
- package/webpack.mix.js +0 -18
- package/layouts/partials/astro/breadcrumbs.html +0 -42
- package/layouts/partials/astro/footer.html +0 -32
- package/layouts/partials/astro/header.html +0 -24
- package/layouts/partials/astro/jumbotron.html +0 -102
- package/layouts/partials/astro/main_prefix.html +0 -40
- package/layouts/partials/astro/main_suffix.html +0 -30
- package/layouts/partials/astro/mega_menu.html +0 -65
- package/layouts/partials/astro/mobile_menu.html +0 -108
- package/layouts/partials/astro/nav.html +0 -74
- package/layouts/partials/astro/navbar.html +0 -51
- package/layouts/partials/astro/sidebar.html +0 -79
- package/layouts/partials/astro/socials.html +0 -97
- package/layouts/partials/astro/toolbar.html +0 -77
- package/layouts/partials/neptune/breadcrumbs.html +0 -35
- package/layouts/partials/neptune/footer.html +0 -73
- package/layouts/partials/neptune/header.html +0 -24
- package/layouts/partials/neptune/jumbotron.html +0 -90
- package/layouts/partials/neptune/main_prefix.html +0 -38
- package/layouts/partials/neptune/main_suffix.html +0 -13
- package/layouts/partials/neptune/mega_menu.html +0 -61
- package/layouts/partials/neptune/mobile_menu.html +0 -54
- package/layouts/partials/neptune/nav.html +0 -60
- package/layouts/partials/neptune/navbar.html +0 -130
- package/layouts/partials/neptune/sidebar.html +0 -73
- package/layouts/partials/neptune/socials.html +0 -22
- package/layouts/partials/neptune/toolbar.html +0 -11
- package/layouts/partials/quicksilver/breadcrumbs.html +0 -42
- package/layouts/partials/quicksilver/footer.html +0 -26
- package/layouts/partials/quicksilver/header.html +0 -21
- package/layouts/partials/quicksilver/jumbotron.html +0 -66
- package/layouts/partials/quicksilver/main_prefix.html +0 -37
- package/layouts/partials/quicksilver/main_suffix.html +0 -30
- package/layouts/partials/quicksilver/nav.html +0 -70
- package/layouts/partials/quicksilver/navbar.html +0 -74
- package/layouts/partials/quicksilver/sidebar.html +0 -45
- package/layouts/partials/quicksilver/socials.html +0 -91
- package/layouts/partials/quicksilver/toolbar.html +0 -39
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
{{/*
|
|
1
|
+
{{/*
|
|
2
2
|
Copyright (c) 2023 Eclipse Foundation, Inc.
|
|
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.
|
|
@@ -10,6 +11,55 @@
|
|
|
10
11
|
SPDX-License-Identifier: EPL-2.0
|
|
11
12
|
*/}}
|
|
12
13
|
|
|
13
|
-
{{ $
|
|
14
|
+
{{ $main_menu := .Scratch.Get "main_menu" }}
|
|
15
|
+
|
|
16
|
+
{{ $current_page := . }}
|
|
17
|
+
{{ $hide_ad := $.Site.Params.hide_ad | default true }}
|
|
18
|
+
{{ $header_ad_format := $.Site.Params.header_ad_format | default "ads_square" }}
|
|
19
|
+
{{ $megaMenu := .Site.Data.mega_menu }}
|
|
20
|
+
|
|
21
|
+
<div class="eclipsefdn-mega-menu">
|
|
22
|
+
{{ range (index .Site.Menus $main_menu) }}
|
|
23
|
+
{{ $menu_id := .Identifier | default (lower .Name) }}
|
|
24
|
+
{{ $menu_id = printf "%s-menu" $menu_id }}
|
|
25
|
+
|
|
26
|
+
<div class="mega-menu-submenu container hidden" data-menu-id="{{ $menu_id }}">
|
|
27
|
+
<div class="mega-menu-submenu-featured-story">
|
|
28
|
+
|
|
29
|
+
{{ if .Params.description }}
|
|
30
|
+
<p class="mega-menu-submenu-featured-story-heading">{{ .Params.heading | default .Name }}</p>
|
|
31
|
+
<p class="mega-menu-submenu-featured-story-text">{{ .Params.description }}</p>
|
|
32
|
+
{{ end }}
|
|
33
|
+
|
|
34
|
+
{{ with .Params.link }}
|
|
35
|
+
<a class="mega-menu-submenu-featured-story-btn btn btn-primary" href="{{ .url }}">{{ .text }}</a>
|
|
36
|
+
{{ end }}
|
|
14
37
|
|
|
15
|
-
|
|
38
|
+
</div>
|
|
39
|
+
<div class="mega-menu-submenu-links-section">
|
|
40
|
+
{{ range .Children }}
|
|
41
|
+
<div class="mega-menu-submenu-links">
|
|
42
|
+
<p class="menu-heading">{{ .Name }}</p>
|
|
43
|
+
<ul>
|
|
44
|
+
{{ range .Children }}
|
|
45
|
+
<li>
|
|
46
|
+
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
47
|
+
</li>
|
|
48
|
+
{{ end }}
|
|
49
|
+
</ul>
|
|
50
|
+
</div>
|
|
51
|
+
{{ end }}
|
|
52
|
+
</div>
|
|
53
|
+
<div class="mega-menu-submenu-ad-wrapper">
|
|
54
|
+
{{ if eq $hide_ad false }}
|
|
55
|
+
<div
|
|
56
|
+
class="eclipsefdn-mega-menu-promo-content mega-menu-promo-content"
|
|
57
|
+
data-ad-format="ads_square"
|
|
58
|
+
data-ad-publish-to="eclipse_org_home"
|
|
59
|
+
>
|
|
60
|
+
</div>
|
|
61
|
+
{{ end }}
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
{{ end }}
|
|
65
|
+
</div>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
{{/*
|
|
1
|
+
{{/*
|
|
2
2
|
Copyright (c) 2023 Eclipse Foundation, Inc.
|
|
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.
|
|
@@ -10,9 +11,98 @@
|
|
|
10
11
|
SPDX-License-Identifier: EPL-2.0
|
|
11
12
|
*/}}
|
|
12
13
|
|
|
13
|
-
{{ $
|
|
14
|
-
{{ $
|
|
14
|
+
{{ $main_menu := .Scratch.Get "main_menu" }}
|
|
15
|
+
{{ $current_page := . }}
|
|
16
|
+
|
|
17
|
+
<nav class="mobile-menu hidden" aria-expanded="false">
|
|
18
|
+
<ul>
|
|
19
|
+
{{ range (index .Site.Menus $main_menu) }}
|
|
20
|
+
{{ $menu_id := .Identifier | default (lower .Name) }}
|
|
21
|
+
{{ $target_menu := printf "%s-menu" $menu_id }}
|
|
22
|
+
{{ $menu_type := "link" }}
|
|
23
|
+
|
|
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 }}
|
|
45
|
+
{{ end }}
|
|
46
|
+
</ul>
|
|
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 }}
|
|
15
70
|
|
|
16
|
-
{{
|
|
17
|
-
|
|
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>
|
|
18
108
|
{{ end }}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{{/*
|
|
2
|
-
Copyright (c)
|
|
2
|
+
Copyright (c) 2023 Eclipse Foundation, Inc.
|
|
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
8
|
Contributors:
|
|
9
|
-
Christopher Guindon <chris.guindon@eclipse-foundation.org>
|
|
10
9
|
Olivier Goulet <olivier.goulet@eclipse-foundation.org>
|
|
11
10
|
|
|
12
11
|
SPDX-License-Identifier: EPL-2.0
|
|
@@ -16,14 +15,68 @@
|
|
|
16
15
|
{{ .Scratch.Set "main_menu" .Page.Params.main_menu }}
|
|
17
16
|
{{ else if (index .Site.Menus "main") }}
|
|
18
17
|
{{ .Scratch.Set "main_menu" "main" }}
|
|
19
|
-
{{ else if (eq .Site.Params.layout_style "neptune") }}
|
|
20
|
-
{{ .Scratch.Set "main_menu" "neptune" }}
|
|
21
|
-
{{ else if (eq .Site.Params.layout_style "astro") }}
|
|
22
|
-
{{ .Scratch.Set "main_menu" "astro" }}
|
|
23
18
|
{{ else }}
|
|
24
|
-
{{ .Scratch.Set "main_menu" "
|
|
19
|
+
{{ .Scratch.Set "main_menu" "astro" }}
|
|
25
20
|
{{ end }}
|
|
26
21
|
|
|
27
|
-
{{ $
|
|
22
|
+
{{ $main_menu := .Scratch.Get "main_menu" }}
|
|
23
|
+
{{ $current_page := . }}
|
|
24
|
+
|
|
25
|
+
<nav class="header-navbar-nav">
|
|
26
|
+
<ul class="header-navbar-nav-links">
|
|
27
|
+
{{ range (index .Site.Menus $main_menu) }}
|
|
28
|
+
{{ $menu_id := .Identifier | default (lower .Name) }}
|
|
29
|
+
{{ $target_menu := printf "%s-menu" $menu_id }}
|
|
30
|
+
{{ $active_class := "" }}
|
|
31
|
+
{{ $menu_type := "link" }}
|
|
32
|
+
|
|
33
|
+
{{ if $current_page.IsMenuCurrent $main_menu . }}
|
|
34
|
+
{{ $active_class = "active" }}
|
|
35
|
+
{{ end }}
|
|
36
|
+
|
|
37
|
+
{{/* If the menu has children, we will show a dropdown */}}
|
|
38
|
+
{{ if .HasChildren }}
|
|
39
|
+
{{ $menu_type = "dropdown" }}
|
|
40
|
+
{{ end }}
|
|
41
|
+
|
|
42
|
+
{{/* Unless if any of the menus are 3-levels deep then we will show a mega menu. */}}
|
|
43
|
+
{{ range .Children }}
|
|
44
|
+
{{ if .HasChildren }}
|
|
45
|
+
{{ $menu_type = "mega" }}
|
|
46
|
+
{{ end }}
|
|
47
|
+
{{ end }}
|
|
28
48
|
|
|
29
|
-
|
|
49
|
+
<li class="navbar-nav-links-item {{ $active_class }}">
|
|
50
|
+
{{ if eq $menu_type "link" }}
|
|
51
|
+
<a class="link-unstyled" href="{{ .URL }}">{{ .Name }}</a>
|
|
52
|
+
{{ else if eq $menu_type "dropdown" }}
|
|
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>
|
|
80
|
+
{{ end }}
|
|
81
|
+
</ul>
|
|
82
|
+
</nav>
|
|
@@ -1,18 +1,51 @@
|
|
|
1
1
|
{{/*
|
|
2
|
-
Copyright (c)
|
|
2
|
+
Copyright (c) 2023 Eclipse Foundation, Inc.
|
|
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
8
|
Contributors:
|
|
9
|
-
Christopher Guindon <chris.guindon@eclipse-foundation.org>
|
|
10
9
|
Olivier Goulet <olivier.goulet@eclipse-foundation.org>
|
|
11
10
|
|
|
12
11
|
SPDX-License-Identifier: EPL-2.0
|
|
13
12
|
*/}}
|
|
14
13
|
|
|
14
|
+
{{ $logo := .Site.Params.logo | default "https://www.eclipse.org/eclipse.org-common/themes/solstice/public/images/logo/eclipse-foundation-grey-orange.svg" }}
|
|
15
|
+
{{ $logo_width := .Site.Params.logo_width | default "150" }}
|
|
16
|
+
{{ $logo_title := .Site.Params.logo_title | default $.Site.Title }}
|
|
15
17
|
|
|
16
|
-
{{ $
|
|
18
|
+
{{ $call_for_action_text := .Site.Params.call_for_action_text }}
|
|
19
|
+
{{ $call_for_action_url := .Site.Params.call_for_action_url }}
|
|
20
|
+
{{ $call_for_action_icon := .Site.Params.call_for_action_icon }}
|
|
21
|
+
{{ $call_for_action_id := .Site.Params.call_for_action_id }}
|
|
17
22
|
|
|
18
|
-
{{
|
|
23
|
+
{{ $hide_cfa := .Site.Params.hide_call_for_action | default .Page.Params.hide_call_for_action | default false }}
|
|
24
|
+
|
|
25
|
+
<div class="header-navbar-wrapper">
|
|
26
|
+
<div class="container">
|
|
27
|
+
<div class="header-navbar">
|
|
28
|
+
<div class="header-navbar-brand">
|
|
29
|
+
<a class="logo-wrapper" href="/" title="{{ $logo_title }}">
|
|
30
|
+
<img src="{{ $logo }}" alt="" width="{{ $logo_width }}" />
|
|
31
|
+
</a>
|
|
32
|
+
</div>
|
|
33
|
+
{{ partial "nav.html" . }}
|
|
34
|
+
<div class="header-navbar-end">
|
|
35
|
+
{{ if not $hide_cfa }}
|
|
36
|
+
<a
|
|
37
|
+
class="header-navbar-end-download-btn btn btn-primary"
|
|
38
|
+
href="{{ $call_for_action_url }}"
|
|
39
|
+
{{ with $call_for_action_id -}} id="{{ . }}" {{- end }}
|
|
40
|
+
>
|
|
41
|
+
<i class="fa {{ $call_for_action_icon }}" aria-hidden="true"></i>
|
|
42
|
+
{{ $call_for_action_text }}
|
|
43
|
+
</a>
|
|
44
|
+
{{ end }}
|
|
45
|
+
<button class="mobile-menu-btn" aria-label="Toggle mobile navigation menu" aria-expanded="false">
|
|
46
|
+
<i class="fa fa-bars fa-xl"></i>
|
|
47
|
+
</button>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
@@ -1,16 +1,79 @@
|
|
|
1
1
|
{{/*
|
|
2
|
-
Copyright (c)
|
|
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
|
-
|
|
9
|
-
|
|
8
|
+
Olivier Goulet <olivier.goulet@eclipse-foundation.org>
|
|
9
|
+
Zachary Sabourin <zachary.sabourin@eclipse-foundation.org>
|
|
10
10
|
|
|
11
11
|
SPDX-License-Identifier: EPL-2.0
|
|
12
12
|
*/}}
|
|
13
13
|
|
|
14
|
-
{{
|
|
14
|
+
{{ if isset .Site.Menus "sidebar" }}
|
|
15
|
+
{{ $identifiers := slice "home" }}
|
|
15
16
|
|
|
16
|
-
{{
|
|
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}}
|
|
24
|
+
|
|
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 | relURL }}" target="_self">{{ .Name }}</a>
|
|
55
|
+
</li>
|
|
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 | relURL }}">
|
|
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>
|
|
75
|
+
{{ end }}
|
|
76
|
+
{{ end }}
|
|
77
|
+
</aside>
|
|
78
|
+
{{ end }}
|
|
79
|
+
{{ end }}
|
|
@@ -1,16 +1,97 @@
|
|
|
1
1
|
{{/*
|
|
2
|
-
Copyright (c)
|
|
2
|
+
Copyright (c) 2023 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
|
-
Christopher Guindon <chris.guindon@eclipse-foundation.org>
|
|
9
8
|
Olivier Goulet <olivier.goulet@eclipse-foundation.org>
|
|
10
9
|
|
|
11
10
|
SPDX-License-Identifier: EPL-2.0
|
|
12
11
|
*/}}
|
|
13
12
|
|
|
14
|
-
{{ $
|
|
13
|
+
{{ $twitter_url := $.Site.Params.twitter_url }}
|
|
14
|
+
{{ $facebook_url := $.Site.Params.facebook_url }}
|
|
15
|
+
{{ $instagram_url := $.Site.Params.instagram_url }}
|
|
16
|
+
{{ $youtube_url := $.Site.Params.youtube_url }}
|
|
17
|
+
{{ $linkedin_url := $.Site.Params.linkedin_url }}
|
|
18
|
+
{{ $bluesky_url := $.Site.Params.bluesky_url }}
|
|
15
19
|
|
|
16
|
-
{{
|
|
20
|
+
{{/* To support the legacy "socialmedia_url" params */}}
|
|
21
|
+
{{ $socials := slice }}
|
|
22
|
+
{{ $using_legacy_socials := cond (or (ne $facebook_url nil) (ne $twitter_url nil) (ne $instagram_url nil) (ne $youtube_url nil) (ne $linkedin_url nil) (ne $bluesky_url nil)) true false }}
|
|
23
|
+
|
|
24
|
+
{{ if $using_legacy_socials }}
|
|
25
|
+
{{ with $twitter_url }}
|
|
26
|
+
{{ $x := (dict
|
|
27
|
+
"name" "X"
|
|
28
|
+
"url" .
|
|
29
|
+
"icon" "fa-brands fa-x-twitter"
|
|
30
|
+
) }}
|
|
31
|
+
{{ $socials = $socials | append $x }}
|
|
32
|
+
{{ end }}
|
|
33
|
+
{{ with $facebook_url }}
|
|
34
|
+
{{ $facebook := (dict
|
|
35
|
+
"name" "Facebook"
|
|
36
|
+
"url" .
|
|
37
|
+
"icon" "fa-brands fa-facebook-f"
|
|
38
|
+
) }}
|
|
39
|
+
{{ $socials = $socials | append $facebook }}
|
|
40
|
+
{{ end }}
|
|
41
|
+
{{ with $instagram_url }}
|
|
42
|
+
{{ $instagram := (dict
|
|
43
|
+
"name" "Instagram"
|
|
44
|
+
"url" .
|
|
45
|
+
"icon" "fa-brands fa-instagram"
|
|
46
|
+
) }}
|
|
47
|
+
{{ $socials = $socials | append $instagram }}
|
|
48
|
+
{{ end }}
|
|
49
|
+
{{ with $youtube_url }}
|
|
50
|
+
{{ $youtube := (dict
|
|
51
|
+
"name" "YouTube"
|
|
52
|
+
"url" .
|
|
53
|
+
"icon" "fa-brands fa-youtube"
|
|
54
|
+
) }}
|
|
55
|
+
{{ $socials = $socials | append $youtube }}
|
|
56
|
+
{{ end }}
|
|
57
|
+
{{ with $linkedin_url }}
|
|
58
|
+
{{ $linkedin := (dict
|
|
59
|
+
"name" "LinkedIn"
|
|
60
|
+
"url" .
|
|
61
|
+
"icon" "fa-brands fa-linkedin-in"
|
|
62
|
+
) }}
|
|
63
|
+
{{ $socials = $socials | append $linkedin }}
|
|
64
|
+
{{ end }}
|
|
65
|
+
{{ with $bluesky_url }}
|
|
66
|
+
{{ $bluesky := (dict
|
|
67
|
+
"name" "Bluesky"
|
|
68
|
+
"url" .
|
|
69
|
+
"icon" "fa-brands fa-bluesky"
|
|
70
|
+
) }}
|
|
71
|
+
{{ $socials = $socials | append $bluesky }}
|
|
72
|
+
{{ end }}
|
|
73
|
+
{{ else }}
|
|
74
|
+
{{ $socials = $.Site.Params.socials }}
|
|
75
|
+
{{ end }}
|
|
76
|
+
|
|
77
|
+
<div class="footer-end-social">
|
|
78
|
+
<p class="footer-end-social-text hidden-xs">Follow Us:</p>
|
|
79
|
+
<ul class="footer-end-social-links list-unstyled">
|
|
80
|
+
{{ range $socials }}
|
|
81
|
+
{{ $text := i18n "footer-sr-social-account" .name | default (printf "%s account" .name) }}
|
|
82
|
+
<li>
|
|
83
|
+
<a
|
|
84
|
+
class="link-unstyled"
|
|
85
|
+
href="{{ .url }}"
|
|
86
|
+
title="{{ $text }}"
|
|
87
|
+
>
|
|
88
|
+
<span class="fa-stack">
|
|
89
|
+
<i class="fa-solid fa-circle fa-stack-2x" aria-hidden="true"></i>
|
|
90
|
+
<i class="{{ .icon }} fa-stack-1x fa-inverse" aria-hidden="true"></i>
|
|
91
|
+
<span class="sr-only">{{ $text }}</span>
|
|
92
|
+
</span>
|
|
93
|
+
</a>
|
|
94
|
+
</li>
|
|
95
|
+
{{ end }}
|
|
96
|
+
</ul>
|
|
97
|
+
</div>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{{/*
|
|
2
2
|
Copyright (c) 2023 Eclipse Foundation, Inc.
|
|
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.
|
|
@@ -10,6 +11,67 @@
|
|
|
10
11
|
SPDX-License-Identifier: EPL-2.0
|
|
11
12
|
*/}}
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
<div class="header-toolbar">
|
|
15
|
+
<div class="container">
|
|
16
|
+
<div class="header-toolbar-row">
|
|
17
|
+
<div class="toolbar-btn toolbar-search-btn dropdown">
|
|
18
|
+
<button
|
|
19
|
+
class="dropdown-toggle"
|
|
20
|
+
id="toolbar-search"
|
|
21
|
+
type="button"
|
|
22
|
+
data-toggle="dropdown"
|
|
23
|
+
tabindex="0"
|
|
24
|
+
aria-label="Search"
|
|
25
|
+
>
|
|
26
|
+
<i class="fa fa-search fa-lg" aria-role="none"></i>
|
|
27
|
+
</button>
|
|
28
|
+
<div
|
|
29
|
+
class="toolbar-search-bar-wrapper dropdown-menu dropdown-menu-right"
|
|
30
|
+
aria-labelledby="toolbar-search"
|
|
31
|
+
>
|
|
32
|
+
<form action="https://www.eclipse.org/home/search" method="get">
|
|
33
|
+
<div class="search-bar">
|
|
34
|
+
<input class="search-bar-input" name="q" placeholder="Search" />
|
|
35
|
+
<button>
|
|
36
|
+
<i class="fa fa-search" type="submit"></i>
|
|
37
|
+
</button>
|
|
38
|
+
</div>
|
|
39
|
+
</form>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="toolbar-btn toolbar-user-menu-btn dropdown">
|
|
43
|
+
<button
|
|
44
|
+
class="dropdown-toggle"
|
|
45
|
+
id="toolbar-user-menu"
|
|
46
|
+
type="button"
|
|
47
|
+
data-toggle="dropdown"
|
|
48
|
+
tabindex="0"
|
|
49
|
+
aria-label="User Menu"
|
|
50
|
+
>
|
|
51
|
+
<i class="fa fa-user fa-lg"></i>
|
|
52
|
+
</button>
|
|
53
|
+
<ul class="toolbar-user-menu dropdown-menu dropdown-menu-right text-center"
|
|
54
|
+
aria-labelledby="toolbar-user-menu">
|
|
55
|
+
<li>
|
|
56
|
+
<a href="https://accounts.eclipse.org/user">
|
|
57
|
+
<i class="fa fa-user"></i>
|
|
58
|
+
View My Account
|
|
59
|
+
</a>
|
|
60
|
+
</li>
|
|
61
|
+
<li>
|
|
62
|
+
<a href="https://accounts.eclipse.org/user/edit">
|
|
63
|
+
<i class="fa fa-edit"></i>
|
|
64
|
+
Edit My Account
|
|
65
|
+
</a>
|
|
66
|
+
</li>
|
|
67
|
+
<li>
|
|
68
|
+
<a class="toolbar-manage-cookies">
|
|
69
|
+
<i class="fa fa-wrench"></i>
|
|
70
|
+
Manage Cookies
|
|
71
|
+
</a>
|
|
72
|
+
</li>
|
|
73
|
+
</ul>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
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.
|
|
7
|
+
"version": "2.0.0",
|
|
8
8
|
"bugs": {
|
|
9
9
|
"url": "https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/-/issues"
|
|
10
10
|
},
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
},
|
|
23
23
|
"readmeFilename": "README.md",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"eclipsefdn-solstice-assets": "0.2.
|
|
25
|
+
"eclipsefdn-solstice-assets": "0.2.7",
|
|
26
26
|
"json2yaml": "^1.1.0",
|
|
27
27
|
"toml": "^3.0.0"
|
|
28
28
|
},
|
|
29
29
|
"browserslist": "last 5 version, > 0.2%, not dead, IE 11",
|
|
30
30
|
"devDependencies": {},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@eclipsefdn/solstice-components": "
|
|
32
|
+
"@eclipsefdn/solstice-components": "~0.7.0"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/webpack.mix.js
CHANGED
|
@@ -19,33 +19,15 @@ mix.EclipseFdnSolsticeAssets();
|
|
|
19
19
|
mix.setPublicPath('static');
|
|
20
20
|
mix.setResourceRoot('../');
|
|
21
21
|
|
|
22
|
-
mix.less(
|
|
23
|
-
'./node_modules/eclipsefdn-solstice-assets/less/quicksilver/styles.less',
|
|
24
|
-
'static/css/quicksilver.css'
|
|
25
|
-
);
|
|
26
|
-
|
|
27
22
|
mix.less(
|
|
28
23
|
'./node_modules/eclipsefdn-solstice-assets/less/astro/main.less',
|
|
29
24
|
'static/css/astro.css'
|
|
30
25
|
);
|
|
31
26
|
|
|
32
|
-
mix.less(
|
|
33
|
-
'./node_modules/eclipsefdn-solstice-assets/less/neptune/main.less',
|
|
34
|
-
'static/css/neptune.css'
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
mix.js(
|
|
38
|
-
['./node_modules/eclipsefdn-solstice-assets/js/main.js'],
|
|
39
|
-
'./static/js/solstice.js'
|
|
40
|
-
);
|
|
41
27
|
mix.js(
|
|
42
28
|
['./node_modules/eclipsefdn-solstice-assets/js/astro.js'],
|
|
43
29
|
'./static/js/astro.js'
|
|
44
30
|
);
|
|
45
|
-
mix.js(
|
|
46
|
-
['./node_modules/eclipsefdn-solstice-assets/js/neptune.js'],
|
|
47
|
-
'./static/js/neptune.js'
|
|
48
|
-
);
|
|
49
31
|
|
|
50
32
|
mix.js(['./node_modules/eclipsefdn-solstice-assets/js/solstice/eclipsefdn.projects.ts'], './static/js/eclipsefdn.projects.js');
|
|
51
33
|
|