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,42 +0,0 @@
1
- {{/*
2
- Copyright (c) 2018, 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
- Christopher Guindon <chris.guindon@eclipse-foundation.org>
9
- Olivier Goulet <olivier.goulet@eclipse-foundation.org>
10
-
11
- SPDX-License-Identifier: EPL-2.0
12
- */}}
13
-
14
- {{ $breadcrumb_container := "" }}
15
-
16
- {{ if and (eq $.Site.Params.layout_style "astro") (strings.Contains .Params.container "container-fluid") }}
17
- {{ $breadcrumb_container = "container" }}
18
- {{ end }}
19
-
20
- <div class="default-breadcrumbs hidden-print" id="breadcrumb">
21
- <div class="{{ $breadcrumb_container }}">
22
- <div class="row">
23
- <div class="col-sm-24">
24
- <ol aria-label="Breadcrumb" class="breadcrumb">
25
- {{ template "breadcrumbnav" (dict "p1" . "p2" . "site_params" $.Site.Params) }}
26
- </ol>
27
- {{ define "breadcrumbnav" }}
28
- {{ if .p1.Parent }}
29
- {{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 "site_params" .site_params) }}
30
- {{ else if not .p1.IsHome }}
31
- {{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 "site_params" .site_params) }}
32
- {{ end }}
33
- <li {{ if eq .p1 .p2 }} class="active" aria-current="page"{{ end }}>
34
- <a href="{{ .p1.Permalink }}">{{ if eq (.p1.Params.format_title | default .site_params.format_title) false }}{{ .p1.Title | safeHTML }}{{ else }}{{ .p1.Title | safeHTML | title }}{{ end }}</a>
35
- </li>
36
- {{ end }}
37
- </div>
38
- </div>
39
- </div>
40
- </div>
41
-
42
-
@@ -1,32 +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
- <p id="back-to-top">
14
- <a class="visible-xs" href="#">{{ i18n "navigation-back-to-top" }}</a>
15
- </p>
16
- <footer class="footer" id="footer">
17
- <div class="container">
18
- {{ partial "footer_prefix.html" . }}
19
- <div class="footer-sections row equal-height-md font-bold">
20
- {{ partial "footer_links/prefix.html" . }}
21
- <div class="col-md-15">
22
- <div class="row">
23
- {{ partial "footer_links/links.html" . }}
24
- </div>
25
- </div>
26
- {{ partial "footer_links/suffix.html" . }}
27
- </div>
28
- {{ partial "footer_links/footer-copyright.html" . }}
29
- <a href="#" class="scrollup">{{ i18n "navigation-back-to-top" }}</a>
30
- </div>
31
- </footer>
32
-
@@ -1,24 +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
- {{ $header_wrapper_class := .Params.header_wrapper_class | default .Site.Params.header_wrapper_class }}
15
-
16
- {{ partial "google_tag_manager_no_script.html" . }}
17
- <a class="sr-only" href="#content">{{ i18n "navigation-content-skip" }}</a>
18
- <header class="header-wrapper {{ $header_wrapper_class }}" id="header">
19
- {{ partial "toolbar.html" . }}
20
- {{ partial "navbar.html" . }}
21
- {{ partial "mobile_menu.html" . }}
22
- {{ partial "mega_menu.html" . }}
23
- {{ partial "jumbotron.html" . }}
24
- </header>
@@ -1,102 +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
- {{ $show_featured_story := .Page.Params.show_featured_story | default false }}
15
- {{ $hide_jumbotron := .Page.Params.hide_jumbotron }}
16
- {{ $jumbotron_container := .Page.Params.jumbotron_container | default "container" }}
17
- {{ $custom_jumbotron_end := .Page.Params.custom_jumbotron_end }}
18
-
19
- {{/*
20
- We need to keep track of whether or not a jumbotron is present on the
21
- page to know where to render the featured story.
22
- */}}
23
- {{ .Scratch.Set "has_jumbotron" false }}
24
-
25
- {{ if or (isset .Page.Params "headline") (eq $hide_jumbotron false) }}
26
- {{ .Scratch.Set "has_jumbotron" true }}
27
-
28
- <div class="jumbotron featured-jumbotron featured-jumbotron-dark margin-bottom-0">
29
- <div class="{{ $jumbotron_container }}">
30
- <div class="row">
31
- <div class="{{- .Params.jumbotron_class | default .Site.Params.jumbotron_class | default "col-md-20 col-md-offset-2 col-sm-18 col-sm-offset-3" }}">
32
- {{ if and (.Page.Params.headline) (ne .Page.Params.headline "") }}
33
- <h1 class="featured-jumbotron-headline">
34
- {{ if eq (.Page.Params.format_title | default .Site.Params.format_title) false }}
35
- {{ .Page.Params.headline | safeHTML }}
36
- {{ else }}
37
- {{ .Page.Params.headline | title | safeHTML }}
38
- {{ end }}
39
- </h1>
40
- {{ end }}
41
- {{ if isset .Page.Params "subtitle" }}
42
- <div class="featured-jumbotron-subtitle">{{ .Page.Params.subtitle | title | safeHTML }}</div>
43
- {{ end }}
44
-
45
- {{ if isset .Page.Params "tagline" }}
46
- <div class="row">
47
- <div class="{{- .Params.jumbotron_tagline_class | default .Site.Params.jumbotron_tagline_class | default "col-md-16" }}">
48
- <p class="featured-jumbotron-tagline">{{ .Page.Params.tagline | safeHTML }}</p>
49
- </div>
50
- </div>
51
- {{ end }}
52
-
53
- {{ if isset .Page.Params "custom_jumbotron" }}
54
- <div class="row">
55
- <div class="{{- .Params.custom_jumbotron_class | default .Site.Params.custom_jumbotron_class | default "col-sm-18 col-sm-offset-3"}}">
56
- {{ .Page.Params.custom_jumbotron | safeHTML }}
57
- </div>
58
- </div>
59
- {{ end }}
60
-
61
- {{ if isset .Page.Params "links" }}
62
- {{- with .Params.jumbotron_btn_class | default .Site.Params.jumbotron_btn_class | default "btn btn-primary" }}
63
- {{ $.Scratch.Set "jumbotron_btn" . }}
64
- {{ end }}
65
- <ul class="featured-jumbotron-links list-inline">
66
- {{ range $key,$val := index .Page.Params.links}}
67
- {{ $btn_class := "" }}
68
- {{ with (index $val 2) }}
69
- {{ $btn_class = .class }}
70
- {{ else }}
71
- {{ $btn_class = $.Scratch.Get "jumbotron_btn" }}
72
- {{ end }}
73
- <li>
74
- <a class="{{ $btn_class }}" href="{{ (index $val 0).href}}" {{ with (index $val 3) -}} id="{{ .id | safeHTMLAttr }}" {{- end }}>
75
- {{ (index $val 1).text}}
76
- </a>
77
- </li>
78
- {{ end }}
79
- </ul>
80
- {{ end }}
81
- <div class="featured-jumbotron-end">
82
- {{ if (eq $show_featured_story true) }}
83
- {{ $publish_target := .Page.Params.featured_content_publish_target | default .Site.Params.featured_content_publish_target | default "eclipse_org" }}
84
- <div
85
- class="eclipsefdn-featured-story"
86
- data-template-id="template-featured-story-jumbotron"
87
- data-publish-target="{{ $publish_target }}"
88
- >
89
- <div class="featured-container"></div>
90
- </div>
91
- {{ end }}
92
- {{ if $custom_jumbotron_end }}
93
- <div class="featured-jumbotron-end-custom">
94
- {{ $custom_jumbotron_end | safeHTML }}
95
- </div>
96
- {{ end }}
97
- </div>
98
- </div>
99
- </div>
100
- </div>
101
- </div>
102
- {{ end }}
@@ -1,40 +0,0 @@
1
- {{/*
2
- Copyright (c) 2019, 2023, 2024 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
- Eric Poirier <eric.poirier@eclipse-foundation.org></eric.poirier>
10
- Olivier Goulet <olivier.goulet@eclipse-foundation.org>
11
-
12
- SPDX-License-Identifier: EPL-2.0
13
- */}}
14
-
15
- <main>
16
- <div class="{{- .Params.container | default .Site.Params.container | default "container padding-bottom-30"}}">
17
- {{ if ne .Page.Params.hide_sidebar true }}
18
- <div class="row">
19
- <div class="{{- .Params.main_content_class | default .Site.Params.main_content_class | default "col-md-18"}}">
20
- {{ end }}
21
- {{ if ne .Page.Params.hide_breadcrumb true }}
22
- {{ partial "breadcrumbs.html" . }}
23
- {{ end }}
24
- {{ if eq .Page.Params.is_deprecated true }}
25
- {{ $msg := .Page.Params.deprecation_msg | default "This page is deprecated and may contain some information that is no longer relevant or accurate." }}
26
- <div class="alert alert-danger margin-top-20" role="alert">
27
- {{ $msg }}
28
- </div>
29
- {{ end }}
30
-
31
- {{ if ne .Page.Params.hide_page_title true }}
32
- <h1>
33
- {{ if eq (.Page.Params.format_title | default .Site.Params.format_title) false }}
34
- {{ .Title | safeHTML }}
35
- {{ else }}
36
- {{ .Title | safeHTML | title }}
37
- {{ end }}
38
- </h1>
39
- {{ end }}
40
-
@@ -1,30 +0,0 @@
1
- <!--
2
- Copyright (c) 2019, 2024 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
- Eric Poirier <eric.poirier@eclipse-foundation.org>
10
-
11
- SPDX-License-Identifier: EPL-2.0
12
- -->
13
-
14
- {{ partial "related_links.html" .}}
15
-
16
- {{ if ne .Page.Params.hide_sidebar true }}
17
- {{ $sidebarLayout := .Page.Params.sidebar_layout | default .Site.Params.sidebar_layout | default "default" }}
18
- </div>
19
- <div class="{{- .Params.main_sidebar_class | default .Site.Params.main_sidebar_class | default "col-md-6 padding-bottom-30"}}">
20
- {{ if eq $sidebarLayout "default" }}
21
- {{ partial "sidebar.html" . }}
22
- {{ else if eq $sidebarLayout "sidebar_block" }}
23
- {{ partial "sidebar-block.html" . }}
24
- {{ end }}
25
- </div>
26
- </div>
27
- {{ end }}
28
- </div>
29
- </main>
30
-
@@ -1,65 +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
- {{ $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 }}
37
-
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,108 +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
- {{ $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 }}
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,74 +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
- {{ $main_menu := .Scratch.Get "main_menu" }}
15
- {{ $current_page := . }}
16
-
17
- <nav class="header-navbar-nav">
18
- <ul class="header-navbar-nav-links">
19
- {{ range (index .Site.Menus $main_menu) }}
20
- {{ $menu_id := .Identifier | default (lower .Name) }}
21
- {{ $target_menu := printf "%s-menu" $menu_id }}
22
- {{ $active_class := "" }}
23
- {{ $menu_type := "link" }}
24
-
25
- {{ if $current_page.IsMenuCurrent $main_menu . }}
26
- {{ $active_class = "active" }}
27
- {{ end }}
28
-
29
- {{/* If the menu has children, we will show a dropdown */}}
30
- {{ if .HasChildren }}
31
- {{ $menu_type = "dropdown" }}
32
- {{ end }}
33
-
34
- {{/* Unless if any of the menus are 3-levels deep then we will show a mega menu. */}}
35
- {{ range .Children }}
36
- {{ if .HasChildren }}
37
- {{ $menu_type = "mega" }}
38
- {{ end }}
39
- {{ end }}
40
-
41
- <li class="navbar-nav-links-item {{ $active_class }}">
42
- {{ if eq $menu_type "link" }}
43
- <a class="link-unstyled" href="{{ .URL }}">{{ .Name }}</a>
44
- {{ else if eq $menu_type "dropdown" }}
45
- <div class="dropdown">
46
- <button class="btn-link link-unstyled" id="{{ $menu_id }}" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
47
- {{ .Name }}
48
- <i class="fa fa-caret-down" aria-hidden="true"></i>
49
- </button>
50
- <ul class="dropdown-menu" aria-labelledby="{{ $menu_id }}">
51
- {{ range .Children }}
52
- <li>
53
- <a class="link-unstyled" href="{{ .URL }}" {{ with .Params.target -}} target="{{ . | safeHTMLAttr }}" {{- end }}>
54
- {{ .Name }}
55
- {{ with .Params.external }}<i class="external-icon fa-solid fa-arrow-up-right-from-square" aria-hidden="true"></i>{{ end }}
56
- </a>
57
- </li>
58
- {{ end }}
59
- </ul>
60
- </div>
61
- {{ else }}
62
- <button
63
- class="nav-link-js btn-link link-unstyled"
64
- type="button"
65
- aria-expanded="true"
66
- data-menu-target="{{ $target_menu }}"
67
- >
68
- {{ .Name }}
69
- </button>
70
- {{ end }}
71
- </li>
72
- {{ end }}
73
- </ul>
74
- </nav>
@@ -1,51 +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
- {{ $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 }}
17
-
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 }}
22
-
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,79 +0,0 @@
1
- {{/*
2
- Copyright (c) 2023, 2024 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
- Zachary Sabourin <zachary.sabourin@eclipse-foundation.org>
10
-
11
- SPDX-License-Identifier: EPL-2.0
12
- */}}
13
-
14
- {{ if isset .Site.Menus "sidebar" }}
15
- {{ $identifiers := slice "home" }}
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 }}