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.
Files changed (65) hide show
  1. package/config.toml +0 -660
  2. package/exampleSite/config/_default/config.toml +2 -3
  3. package/layouts/_default/baseof.html +0 -1
  4. package/layouts/partials/breadcrumbs.html +28 -2
  5. package/layouts/partials/featured_story.html +1 -8
  6. package/layouts/partials/featured_story_popup.html +0 -6
  7. package/layouts/partials/footer.html +20 -8
  8. package/layouts/partials/footer_js.html +1 -4
  9. package/layouts/partials/footer_links/footer-copyright.html +0 -5
  10. package/layouts/partials/footer_links/footer-eclipse-foundation.html +11 -31
  11. package/layouts/partials/footer_links/footer-legal.html +12 -28
  12. package/layouts/partials/footer_links/footer-other.html +10 -27
  13. package/layouts/partials/footer_links/links.html +0 -8
  14. package/layouts/partials/footer_links/suffix.html +21 -23
  15. package/layouts/partials/head.html +10 -15
  16. package/layouts/partials/header.html +12 -5
  17. package/layouts/partials/jumbotron.html +91 -5
  18. package/layouts/partials/main_prefix.html +29 -4
  19. package/layouts/partials/main_suffix.html +16 -2
  20. package/layouts/partials/mega_menu.html +53 -3
  21. package/layouts/partials/mobile_menu.html +95 -5
  22. package/layouts/partials/nav.html +62 -9
  23. package/layouts/partials/navbar.html +37 -4
  24. package/layouts/partials/sidebar.html +68 -5
  25. package/layouts/partials/socials.html +85 -4
  26. package/layouts/partials/toolbar.html +65 -3
  27. package/package.json +3 -3
  28. package/webpack.mix.js +0 -18
  29. package/layouts/partials/astro/breadcrumbs.html +0 -42
  30. package/layouts/partials/astro/footer.html +0 -32
  31. package/layouts/partials/astro/header.html +0 -24
  32. package/layouts/partials/astro/jumbotron.html +0 -102
  33. package/layouts/partials/astro/main_prefix.html +0 -40
  34. package/layouts/partials/astro/main_suffix.html +0 -30
  35. package/layouts/partials/astro/mega_menu.html +0 -65
  36. package/layouts/partials/astro/mobile_menu.html +0 -108
  37. package/layouts/partials/astro/nav.html +0 -74
  38. package/layouts/partials/astro/navbar.html +0 -51
  39. package/layouts/partials/astro/sidebar.html +0 -79
  40. package/layouts/partials/astro/socials.html +0 -97
  41. package/layouts/partials/astro/toolbar.html +0 -77
  42. package/layouts/partials/neptune/breadcrumbs.html +0 -35
  43. package/layouts/partials/neptune/footer.html +0 -73
  44. package/layouts/partials/neptune/header.html +0 -24
  45. package/layouts/partials/neptune/jumbotron.html +0 -90
  46. package/layouts/partials/neptune/main_prefix.html +0 -38
  47. package/layouts/partials/neptune/main_suffix.html +0 -13
  48. package/layouts/partials/neptune/mega_menu.html +0 -61
  49. package/layouts/partials/neptune/mobile_menu.html +0 -54
  50. package/layouts/partials/neptune/nav.html +0 -60
  51. package/layouts/partials/neptune/navbar.html +0 -130
  52. package/layouts/partials/neptune/sidebar.html +0 -73
  53. package/layouts/partials/neptune/socials.html +0 -22
  54. package/layouts/partials/neptune/toolbar.html +0 -11
  55. package/layouts/partials/quicksilver/breadcrumbs.html +0 -42
  56. package/layouts/partials/quicksilver/footer.html +0 -26
  57. package/layouts/partials/quicksilver/header.html +0 -21
  58. package/layouts/partials/quicksilver/jumbotron.html +0 -66
  59. package/layouts/partials/quicksilver/main_prefix.html +0 -37
  60. package/layouts/partials/quicksilver/main_suffix.html +0 -30
  61. package/layouts/partials/quicksilver/nav.html +0 -70
  62. package/layouts/partials/quicksilver/navbar.html +0 -74
  63. package/layouts/partials/quicksilver/sidebar.html +0 -45
  64. package/layouts/partials/quicksilver/socials.html +0 -91
  65. package/layouts/partials/quicksilver/toolbar.html +0 -39
@@ -1,97 +0,0 @@
1
- {{/*
2
- Copyright (c) 2023 Eclipse Foundation, Inc.
3
- This program and the accompanying materials are made available under the
4
- terms of the Eclipse Public License v. 2.0 which is available at
5
- http://www.eclipse.org/legal/epl-2.0.
6
-
7
- Contributors:
8
- Olivier Goulet <olivier.goulet@eclipse-foundation.org>
9
-
10
- SPDX-License-Identifier: EPL-2.0
11
- */}}
12
-
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 }}
19
-
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,77 +0,0 @@
1
- {{/*
2
- Copyright (c) 2023 Eclipse Foundation, Inc.
3
-
4
- This program and the accompanying materials are made available under the
5
- terms of the Eclipse Public License v. 2.0 which is available at
6
- http://www.eclipse.org/legal/epl-2.0.
7
-
8
- Contributors:
9
- Olivier Goulet <olivier.goulet@eclipse-foundation.org>
10
-
11
- SPDX-License-Identifier: EPL-2.0
12
- */}}
13
-
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>
@@ -1,35 +0,0 @@
1
- <!--
2
- Copyright (c) 2025 Eclipse Foundation AISBL
3
-
4
- This program and the accompanying materials are made available under the
5
- terms of the Eclipse Public License v. 2.0 which is available at
6
- http://www.eclipse.org/legal/epl-2.0.
7
-
8
- SPDX-License-Identifier: EPL-2.0
9
- -->
10
-
11
- {{ if not .Page.Params.hide_breadcrumb }}
12
- <nav aria-label="Breadcrumb">
13
- <div class="container">
14
- <ol class="breadcrumb">
15
- {{ template "breadcrumb-links" (dict "p1" . "p2" .) }}
16
- </ol>
17
- </div>
18
- </nav>
19
- {{ end }}
20
-
21
- {{ define "breadcrumb-links" }}
22
- {{ $max_length := 32 }}
23
-
24
- {{ if .p1.Parent }}
25
- {{ template "breadcrumb-links" (dict "p1" .p1.Parent "p2" .p2 ) }}
26
- {{ else if not .p1.IsHome }}
27
- {{ template "breadcrumb-links" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
28
- {{ end }}
29
- {{ $is_current_page := eq .p1.Permalink .p2.Permalink }}
30
- {{ if $is_current_page }}
31
- <li class="active">{{ (.p1.Params.breadcrumb_title | default .p1.Title) | safeHTML | truncate $max_length }}</li>
32
- {{ else }}
33
- <li><a href="{{ .p1.Permalink }}">{{ (.p1.Params.breadcrumb_title | default .p1.Title) | safeHTML | truncate $max_length }}</a></li>
34
- {{ end }}
35
- {{ end }}
@@ -1,73 +0,0 @@
1
- <!--
2
- Copyright (c) 2025 Eclipse Foundation AISBL
3
-
4
- This program and the accompanying materials are made available under the
5
- terms of the Eclipse Public License v. 2.0 which is available at
6
- http://www.eclipse.org/legal/epl-2.0.
7
-
8
- SPDX-License-Identifier: EPL-2.0
9
- -->
10
-
11
- {{ $footer_class := .Page.Params.footer_class }}
12
- <footer class="footer {{- with $footer_class }} {{ . }}{{ end }}">
13
- <div class="container">
14
- <div class="footer-inner">
15
- <section class="links-section">
16
- {{ range $.Site.Menus.footer }}
17
- <ul>
18
- <li>{{ .Name }}</li>
19
- <li>
20
- <ul>
21
- {{ range .Children }}
22
- <li>
23
- {{ if .URL }}
24
- <a href="{{ .URL }}" {{ with .Params.class -}} class="{{ . }}" {{- end }}>{{ .Name }}</a>
25
- {{ else }}
26
- <button type="button" class="btn btn-link {{ with .Params.class -}} {{ . }} {{- end }}">{{ .Name }}</button>
27
- {{ end }}
28
- </li>
29
- {{ end }}
30
- </ul>
31
- </li>
32
- </ul>
33
- {{ end }}
34
- </section>
35
- <section class="social-media-section">
36
- <p class="subheading text-tertiary">See what we're up to</p>
37
- {{ partial "socials.html" . }}
38
- </section>
39
- <section class="newsletter-section">
40
- <p class="subheading text-tertiary">Stay up to date</p>
41
- <h2>Subscribe to our newsletter</h2>
42
- <form
43
- class="newsletter-form margin-top-40"
44
- id="mc-embedded-subscribe-form"
45
- action="https://eclipse.us6.list-manage.com/subscribe/post?u=eaf9e1f06f194eadc66788a85&amp;id=e7538485cd&amp;f_id=00f9c2e1f0"
46
- method="post"
47
- novalidate
48
- target="_blank"
49
- >
50
- <div class="text-field-outlined">
51
- <input name="EMAIL" type="email" placeholder="Your email">
52
- <button class="newsletter-form-submit" type="submit" name="subscribe" id="mc-embedded-subscribe" aria-label="Submit">
53
- <i class="fa-solid fa-arrow-right" aria-hidden="true"></i>
54
- </button>
55
- </div>
56
- </form>
57
- </section>
58
- <section class="footer-bottom-section">
59
- <img class="img-responsive logo" src="https://www.eclipse.org/eclipse.org-common/themes/solstice/public/images/logo/eclipse-foundation-white.svg" alt="Eclipse Foundation">
60
- <div class="legal-information">
61
- <p>Copyright &copy; Eclipse Foundation AISBL. All rights reserved.</p>
62
- <ul class="legal-links">
63
- <li><a href="https://www.eclipse.org/legal/privacy/">Privacy policy</a></li>
64
- <li><a href="https://www.eclipse.org/legal/terms-of-use/">Terms of use</a></li>
65
- <li><a href="https://www.eclipse.org/legal/compliance/">Compliance</a></li>
66
- <li><a href="https://www.eclipse.org/legal/">Legal</a></li>
67
- </ul>
68
- </div>
69
- </section>
70
- </div>
71
- </div>
72
- </footer>
73
-
@@ -1,24 +0,0 @@
1
- <!--
2
- Copyright (c) 2025 Eclipse Foundation AISBL
3
-
4
- This program and the accompanying materials are made available under the
5
- terms of the Eclipse Public License v. 2.0 which is available at
6
- http://www.eclipse.org/legal/epl-2.0.
7
-
8
- SPDX-License-Identifier: EPL-2.0
9
- -->
10
-
11
- {{ $header_wrapper_class := .Params.header_wrapper_class | default .Site.Params.header_wrapper_class }}
12
-
13
- {{ partial "google_tag_manager_no_script.html" . }}
14
- <a href="#main" class="skip-link">Skip to content</a>
15
- {{ if or (ne .Page.Params.hide_featured_story_banner true) (ne $.Site.Params.hide_featured_story_banner) }}
16
- {{ $publish_target := .Page.Params.featured_content_publish_target | default .Site.Params.featured_content_publish_target | default "eclipse_org" }}
17
- <div class="eclipsefdn-featured-story-banner" data-publish-target="{{ $publish_target }}"></div>
18
- {{ end }}
19
- <header class="header-wrapper {{ $header_wrapper_class }}" id="header">
20
- {{ partial "toolbar.html" . }}
21
- {{ partial "navbar.html" . }}
22
- {{ partial "mobile_menu.html" . }}
23
- {{ partial "mega_menu.html" . }}
24
- </header>
@@ -1,90 +0,0 @@
1
- <!--
2
- Copyright (c) 2025 Eclipse Foundation AISBL
3
-
4
- This program and the accompanying materials are made available under the
5
- terms of the Eclipse Public License v. 2.0 which is available at
6
- http://www.eclipse.org/legal/epl-2.0.
7
-
8
- SPDX-License-Identifier: EPL-2.0
9
- -->
10
-
11
- {{ $jumbotron_container := .Page.Params.jumbotron_container | default "container" }}
12
- {{ $jumbotron_class := .Params.jumbotron_class | default .Site.Params.jumbotron_class | default "col-xs-24" }}
13
- {{ $headline := .Page.Params.headline }}
14
- {{ $preheadline := .Page.Params.preheadline }}
15
- {{ $tagline := .Page.Params.tagline }}
16
- {{ $links := .Page.Params.links }}
17
- {{ $default_btn_class := "btn btn-primary" }}
18
-
19
- {{ $jumbotron_background_class := .Page.Params.jumbotron_background_class | default .Site.Params.jumbotron_background_class | default "bg bg-hero-1" }}
20
-
21
- {{ .Store.Set "has_jumbotron" (or (isset .Page.Params "headline") (isset .Page.Params "custom_jumbotron")) }}
22
- {{ $has_jumbotron := .Store.Get "has_jumbotron" }}
23
-
24
- {{ if $has_jumbotron }}
25
- <section class="featured-jumbotron fade-group {{ $jumbotron_background_class }}">
26
- <div class="{{ $jumbotron_container }}">
27
- <div class="{{ $jumbotron_class }}">
28
- <div class="featured-jumbotron-heading-group">
29
- {{ with $.Page.Params.preheadline }}
30
- <p
31
- class="featured-jumbotron-preheadline fade-item"
32
- data-fade-duration="0.5"
33
- data-fade-direction="none"
34
- >
35
- {{- . | safeHTML -}}
36
- </p>
37
- {{ end }}
38
- {{ with $headline }}
39
- <h1
40
- class="featured-jumbotron-headline fade-item"
41
- data-fade-duration="0.5"
42
- data-fade-direction="none"
43
- >
44
- {{- . | safeHTML -}}
45
- </h1>
46
- {{ end }}
47
- </div>
48
- {{ with $tagline }}
49
- <p
50
- class="featured-jumbotron-tagline fade-item"
51
- data-fade-duration="0.5"
52
- data-fade-direction="none"
53
- >
54
- {{- . -}}
55
- </p>
56
- {{ end }}
57
- {{ if isset .Page.Params "custom_jumbotron" }}
58
- <div class="row">
59
- <div class="{{- .Params.custom_jumbotron_class | default .Site.Params.custom_jumbotron_class | default "col-xs-24" }}">
60
- {{ .Page.Params.custom_jumbotron | safeHTML }}
61
- </div>
62
- </div>
63
- {{ end }}
64
- {{ with $links }}
65
- <ul class="featured-jumbotron-links list-inline">
66
- {{ range $key,$val := index . }}
67
- {{ $btn_class := "" }}
68
- {{ with (index $val 2) }}
69
- {{ $btn_class = .class }}
70
- {{ else }}
71
- {{ $btn_class = $default_btn_class }}
72
- {{ end }}
73
- <li>
74
- <a
75
- class="{{ $btn_class }} fade-item"
76
- href="{{ (index $val 0).href }}"
77
- {{ with (index $val 3) -}} id="{{ .id | safeHTMLAttr }}" {{- end }}
78
- data-fade-duration="0.5"
79
- data-fade-direction="none"
80
- >
81
- {{ (index $val 1).text}}
82
- </a>
83
- </li>
84
- {{ end }}
85
- </ul>
86
- {{ end }}
87
- </div>
88
- </div>
89
- </section>
90
- {{ end }}
@@ -1,38 +0,0 @@
1
- <!--
2
- Copyright (c) 2025 Eclipse Foundation AISBL
3
-
4
- This program and the accompanying materials are made available under the
5
- terms of the Eclipse Public License v. 2.0 which is available at
6
- http://www.eclipse.org/legal/epl-2.0.
7
-
8
- SPDX-License-Identifier: EPL-2.0
9
- -->
10
-
11
- {{ $has_jumbotron := .Store.Get "has_jumbotron" }}
12
- <main id="main">
13
- {{ partial "jumbotron.html" . }}
14
- {{ partial "breadcrumbs.html" . }}
15
- <div class="{{- .Params.container | default .Site.Params.container | default "container padding-bottom-30"}}">
16
- {{ if ne .Page.Params.hide_sidebar true }}
17
- <div class="row">
18
- <div class='{{- .Params.main_sidebar_class | default .Site.Params.main_sidebar_class | default "col-md-6" }}'>
19
- {{ partial "sidebar.html" . }}
20
- </div>
21
- <div class="{{- .Params.main_content_class | default .Site.Params.main_content_class | default "col-md-18"}}">
22
- {{ end }}
23
- {{ if eq .Page.Params.is_deprecated true }}
24
- {{ $msg := .Page.Params.deprecation_msg | default "This page is deprecated and may contain some information that is no longer relevant or accurate." }}
25
- <div class="alert alert-danger margin-top-20" role="alert">
26
- {{ $msg }}
27
- </div>
28
- {{ end }}
29
-
30
- {{ if ne .Page.Params.hide_page_title true }}
31
- {{ if $has_jumbotron }}
32
- <p class="h1">{{ .Title | safeHTML }}</p>
33
- {{ else }}
34
- <h1>{{ .Title | safeHTML }}</h1>
35
- {{ end }}
36
- {{ end }}
37
-
38
-
@@ -1,13 +0,0 @@
1
- <!--
2
- Copyright (c) 2025 Eclipse Foundation AISBL
3
-
4
- This program and the accompanying materials are made available under the
5
- terms of the Eclipse Public License v. 2.0 which is available at
6
- http://www.eclipse.org/legal/epl-2.0.
7
-
8
- SPDX-License-Identifier: EPL-2.0
9
- -->
10
-
11
- {{ partial "related_links.html" .}}
12
- </div>
13
- </main>
@@ -1,61 +0,0 @@
1
- <!--
2
- Copyright (c) 2025 Eclipse Foundation AISBL
3
-
4
- This program and the accompanying materials are made available under the
5
- terms of the Eclipse Public License v. 2.0 which is available at
6
- http://www.eclipse.org/legal/epl-2.0.
7
-
8
- SPDX-License-Identifier: EPL-2.0
9
- -->
10
-
11
- {{ $main_menu := .Scratch.Get "main_menu" }}
12
- {{ $current_page := . }}
13
-
14
- {{ $has_mega_menu := false }}
15
- {{/* Unless if any of the menus are 3-levels deep then we will show a mega menu. */}}
16
- {{ with (index .Site.Menus $main_menu) }}
17
- {{ range . }}
18
- {{ if .HasChildren }}
19
- {{ range .Children }}
20
- {{ if .HasChildren }}
21
- {{ $has_mega_menu = true }}
22
- {{ end }}
23
- {{ end }}
24
- {{ end }}
25
- {{ end }}
26
- {{ end }}
27
-
28
- {{ if $has_mega_menu }}
29
- <div class="mega-menu">
30
- {{ range (index .Site.Menus $main_menu) }}
31
- {{ $menu_id := .Identifier | default (lower .Name) }}
32
- {{ $menu_id = printf "%s-menu" $menu_id }}
33
- <div class="menu hidden" id="{{ $menu_id }}">
34
- <div class="container">
35
- <nav>
36
- {{ range .Children }}
37
- <div class="submenu" {{ with .Params.style -}} style="{{ . | safeCSS }}" {{- end }}>
38
- <div class="menu-heading-group">
39
- {{ with .Pre }}
40
- <span class="menu-pre">
41
- {{ . | safeHTML }}
42
- </span>
43
- {{ end }}
44
- <h2 class="menu-heading">{{ .Name }}</h2>
45
- </div>
46
- <ul>
47
- {{ range .Children }}
48
- <li>
49
- <a href="{{ .URL }}" {{ with .Params.target -}} target="{{ . | safeHTMLAttr }}" {{- end }}>{{ .Name }}</a>
50
- {{ with .Params.external }}<i class="external-icon fa-solid fa-arrow-up-right-from-square" aria-hidden="true"></i>{{ end }}
51
- </li>
52
- {{ end }}
53
- </ul>
54
- </div>
55
- {{ end }}
56
- </nav>
57
- </div>
58
- </div>
59
- {{ end }}
60
- </div>
61
- {{ end }}
@@ -1,54 +0,0 @@
1
- <!--
2
- Copyright (c) 2025 Eclipse Foundation AISBL
3
-
4
- This program and the accompanying materials are made available under the
5
- terms of the Eclipse Public License v. 2.0 which is available at
6
- http://www.eclipse.org/legal/epl-2.0.
7
-
8
- SPDX-License-Identifier: EPL-2.0
9
- -->
10
-
11
- {{ $main_menu := .Scratch.Get "main_menu" }}
12
- {{ $current_page := . }}
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>
50
- {{ end }}
51
- </li>
52
- {{ end }}
53
- </ul>
54
- {{ end }}
@@ -1,60 +0,0 @@
1
- <!--
2
- Copyright (c) 2025 Eclipse Foundation AISBL
3
-
4
- This program and the accompanying materials are made available under the
5
- terms of the Eclipse Public License v. 2.0 which is available at
6
- http://www.eclipse.org/legal/epl-2.0.
7
-
8
- SPDX-License-Identifier: EPL-2.0
9
- -->
10
-
11
- {{ $main_menu := .Scratch.Get "main_menu" }}
12
- {{ $current_page := . }}
13
-
14
- <nav class="navigation-bar-nav hidden-xs hidden-sm">
15
- <ul>
16
- {{ range (index .Site.Menus $main_menu) }}
17
- {{ $menu_id := .Identifier | default (lower .Name) }}
18
- {{ $target_menu := printf "%s-menu" $menu_id }}
19
- {{ $active_class := "" }}
20
- {{ $menu_type := "link" }}
21
-
22
- {{ if $current_page.IsMenuCurrent $main_menu . }}
23
- {{ $active_class = "active" }}
24
- {{ end }}
25
-
26
- {{/* If the menu has children, we will show a dropdown */}}
27
- {{ if .HasChildren }}
28
- {{ $menu_type = "dropdown" }}
29
- {{ end }}
30
-
31
- {{/* Unless if any of the menus are 3-levels deep then we will show a mega menu. */}}
32
- {{ range .Children }}
33
- {{ if .HasChildren }}
34
- {{ $menu_type = "mega" }}
35
- {{ end }}
36
- {{ end }}
37
-
38
- {{ if eq $menu_type "link" }}
39
- <li>
40
- <a href="{{ .URL }}">{{ .Name }}</a>
41
- </li>
42
- {{ else if eq $menu_type "dropdown" }}
43
- <li class="dropdown">
44
- <button
45
- class="dropdown-toggle btn btn-link"
46
- data-toggle="dropdown"
47
- aria-haspopup="true"
48
- aria-expanded="false"
49
- >
50
- {{ .Name }}
51
- </button>
52
- </li>
53
- {{ else if eq $menu_type "mega" }}
54
- <li>
55
- <button type="button" class="btn btn-link" data-target="{{ $target_menu }}">{{ .Name }}</button>
56
- </li>
57
- {{ end }}
58
- {{ end }}
59
- </ul>
60
- </nav>