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,130 +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
- {{ $logo := .Site.Params.logo | default "https://www.eclipse.org/eclipse.org-common/themes/solstice/public/images/logo/eclipse-foundation-white-orange.svg" }}
12
- {{ $logo_width := .Site.Params.logo_width | default "150" }}
13
- {{ $logo_title := .Site.Params.logo_title | default $.Site.Title }}
14
-
15
- {{ $call_for_action_text := .Site.Params.call_for_action_text }}
16
- {{ $call_for_action_url := .Site.Params.call_for_action_url }}
17
- {{ $call_for_action_icon := .Site.Params.call_for_action_icon }}
18
- {{ $call_for_action_id := .Site.Params.call_for_action_id }}
19
-
20
- {{ $hide_cfa := .Site.Params.hide_call_for_action | default .Page.Params.hide_call_for_action | default false }}
21
-
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>
114
- <a
115
- class="btn btn-outline-primary"
116
- {{ with $call_for_action_id -}} id="{{ . }}" {{- end }}
117
- href="{{ $call_for_action_url }}"
118
- >
119
- {{ $call_for_action_text }}
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>
128
- </div>
129
- </div>
130
- </div>
@@ -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
- {{ if isset .Site.Menus "sidebar" }}
12
- {{ $identifiers := slice "home" }}
13
-
14
- {{ if .Page.Params.sidebar }}
15
- {{ $identifiers = .Page.Params.sidebar }}
16
- {{ else if .Page.Section }}
17
- {{ $identifiers = slice .Page.Section }}
18
- {{ end }}
19
-
20
- {{ $menu_sections := where .Site.Menus.sidebar "Identifier" "in" $identifiers}}
21
-
22
- {{ with $menu_sections }}
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 }}">
54
- {{ range .Children }}
55
- <li><a href="{{ .URL }}">{{ .Name }}</a></li>
56
- {{ end }}
57
- </ul>
58
- </li>
59
- {{ else }}
60
- <li>
61
- <a href="{{ .URL }}">{{ .Name }}</a>
62
- </li>
63
- {{ end }}
64
- {{ end }}
65
- </ul>
66
- </li>
67
- {{ end }}
68
- </ul>
69
- </nav>
70
- </aside>
71
- {{ end }}
72
- {{ end }}
73
-
@@ -1,22 +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
- <ul class="social-media-list">
12
- {{ range $.Site.Params.socials }}
13
- <li>
14
- <a href="{{ .url }}" aria-label="{{ .name }}">
15
- <span class="fa-stack">
16
- <i class="fa-solid fa-circle fa-stack-2x" aria-hidden="true"></i>
17
- <i class="{{ .icon }} fa-stack-1x fa-inverse" aria-hidden="true"></i>
18
- </span>
19
- </a>
20
- </li>
21
- {{ end }}
22
- </ul>
@@ -1,11 +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
- <!-- Neptune has no toolbar, so this file is intentionally left blank -->
@@ -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 ne $.Site.Params.layout_style "astro" }}
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" .) }}
26
- </ol>
27
- {{ define "breadcrumbnav" }}
28
- {{ if .p1.Parent }}
29
- {{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }}
30
- {{ else if not .p1.IsHome }}
31
- {{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
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 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,26 +0,0 @@
1
- {{/*
2
- Copyright (c) 2018 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
- Christopher Guindon <chris.guindon@eclipse-foundation.org>
10
-
11
- SPDX-License-Identifier: EPL-2.0
12
- */}}
13
-
14
- <p id="back-to-top">
15
- <a class="visible-xs" href="#top">{{ i18n "navigation-back-to-top" }}</a>
16
- </p>
17
- <footer id="{{- .Params.footer_id | default .Site.Params.footer_id | default "solstice-footer"}}" class="{{- .Params.footer_class | default .Site.Params.footer_class | default ""}}">
18
- <div class="{{- .Params.footer_container_class | default .Site.Params.footer_container_class | default "container"}}">
19
- <div class="row">
20
- {{ partial "footer_links/prefix.html" . }}
21
- {{ partial "footer_links/links.html" . }}
22
- {{ partial "footer_links/suffix.html" . }}
23
- <a href="#" class="scrollup">{{ i18n "navigation-back-to-top" }}</a>
24
- </div>
25
- </div>
26
- </footer>
@@ -1,21 +0,0 @@
1
- {{/*
2
- Copyright (c) 2018 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
- Christopher Guindon <chris.guindon@eclipse-foundation.org>
10
-
11
- SPDX-License-Identifier: EPL-2.0
12
- */}}
13
-
14
- {{- partial "google_tag_manager_no_script.html" . }}
15
- <a class="sr-only" href="#content">{{ i18n "navigation-content-skip" }}</a>
16
- <header class="header-wrapper{{- with .Params.header_wrapper_class | default .Site.Params.header_wrapper_class }} {{ . }}{{end}}" id="header-wrapper">
17
- {{ partial "toolbar.html" . }}
18
- {{ partial "navbar.html" . }}
19
- {{ partial "jumbotron.html" . }}
20
- </header>
21
-
@@ -1,66 +0,0 @@
1
- {{/*
2
- Copyright (c) 2018, 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
- Christopher Guindon <chris.guindon@eclipse-foundation.org>
10
- Olivier Goulet <olivier.goulet@eclipse-foundation.org>
11
-
12
- SPDX-License-Identifier: EPL-2.0
13
- */}}
14
-
15
- {{ if isset .Page.Params "headline" }}
16
- <div class="jumbotron featured-jumbotron margin-bottom-0">
17
- <div class="container">
18
- <div class="row">
19
- <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"}}">
20
- <h1>
21
- {{ if eq .Page.Params.format_title false }}
22
- {{ .Page.Params.headline | safeHTML }}
23
- {{ else }}
24
- {{ .Page.Params.headline | title | safeHTML }}
25
- {{ end }}
26
- </h1>
27
- {{ if isset .Page.Params "subtitle" }}
28
- <h2>{{ .Page.Params.subtitle | title | safeHTML }}</h2>
29
- {{end}}
30
-
31
- {{ if isset .Page.Params "tagline" }}
32
- <div class="row">
33
- <div class="{{- .Params.jumbotron_tagline_class | default .Site.Params.jumbotron_tagline_class | default "col-sm-18 col-sm-offset-3"}}">
34
- <p>{{ .Page.Params.tagline | safeHTML }}</p>
35
- </div>
36
- </div>
37
- {{end}}
38
-
39
- {{ if isset .Page.Params "custom_jumbotron" }}
40
- <div class="row">
41
- <div class="{{- .Params.custom_jumbotron_class | default .Site.Params.custom_jumbotron_class | default "col-sm-18 col-sm-offset-3"}}">
42
- {{ .Page.Params.custom_jumbotron | safeHTML }}
43
- </div>
44
- </div>
45
- {{end}}
46
-
47
- {{ if isset .Page.Params "links" }}
48
- {{- with .Params.jumbotron_btn_class | default .Site.Params.jumbotron_btn_class | default "btn btn-primary"}}{{ $.Scratch.Set "jumbotron_btn" . }}{{end}}
49
- <ul class="list-inline">
50
- {{range $key,$val := index .Page.Params.links}}
51
- {{ $btn_class := "" }}
52
- {{ with (index $val 2) }}
53
- {{ $btn_class = .class }}
54
- {{ else }}
55
- {{ $btn_class = $.Scratch.Get "jumbotron_btn" }}
56
- {{ end }}
57
- <li><a class="{{ $btn_class }}" href="{{ (index $val 0).href}}">{{ (index $val 1).text}}</a></li>
58
- {{end}}
59
- </ul>
60
- {{end}}
61
- </div>
62
- </div>
63
- </div>
64
- </div>
65
- {{ end }}
66
-
@@ -1,37 +0,0 @@
1
- {{/*
2
- Copyright (c) 2019 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 "collapsible-menu.html" . }}
15
- <main>
16
- <div class="{{- .Params.container | default .Site.Params.container | default "container"}}">
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 padding-bottom-30"}}">
20
- {{ end }}
21
-
22
- {{ if eq .Page.Params.is_deprecated true }}
23
- <div class="alert alert-danger margin-top-20" role="alert">
24
- This page is deprecated and may contain some information that is no longer relevant or accurate.
25
- </div>
26
- {{ end }}
27
-
28
- {{ if ne .Page.Params.hide_page_title true }}
29
- <h1>
30
- {{ if eq .Page.Params.format_title false }}
31
- {{ .Title | safeHTML }}
32
- {{ else }}
33
- {{ .Title | safeHTML | title }}
34
- {{ end }}
35
- </h1>
36
- {{ end }}
37
-
@@ -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,70 +0,0 @@
1
- {{/*
2
- Copyright (c) 2018, 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
- Christopher Guindon <chris.guindon@eclipse-foundation.org>
10
- Olivier Goulet <olivier.goulet@eclipse-foundation.org>
11
-
12
- SPDX-License-Identifier: EPL-2.0
13
- */}}
14
-
15
- {{ $main_menu := .Scratch.Get "main_menu" }}
16
-
17
- {{ $currentNode := . }}
18
- {{ range (index .Site.Menus $main_menu) }}
19
- {{ if .HasChildren }}
20
- {{ $multicol := false }}
21
- {{ range .Children }}
22
- {{ if .HasChildren }}
23
- {{ $multicol = true }}
24
- {{ end }}
25
- {{ end }}
26
- <li class="dropdown {{ if $multicol -}} eclipse-more {{- end }}">
27
- <a href="#" data-toggle="dropdown" class="dropdown-toggle">
28
- {{ .Pre }}
29
- <span>{{ .Name }}</span>
30
- <b class="caret"></b>
31
- </a>
32
- <ul class="dropdown-menu">
33
- {{ if eq $multicol true }}
34
- {{ $colClass := "col-sm-12" }}
35
- {{ if gt (len .Children) 2 }}
36
- {{ $colClass = "col-sm-8" }}
37
- {{ end }}
38
- <li>
39
- <!-- Content container to add padding -->
40
- <div class="yamm-content">
41
- <div class="row">
42
- {{ range .Children }}
43
- <ul class="{{ $colClass }} list-unstyled padding-bottom-20">
44
- <li><p><a href="{{.URL}}"><strong>{{ .Name }}</strong></a></p>
45
- </li>
46
- {{ range .Children }}
47
- <li {{if $currentNode.IsMenuCurrent "{{ $main_menu }}" . }} class="active"{{end}}><a href="{{.URL}}">{{ .Name }}</a> </li>
48
- {{ end }}
49
- </ul>
50
- {{ end }}
51
- </div>
52
- </div>
53
- </li>
54
- {{ else }}
55
- {{ range .Children }}
56
- <li {{if $currentNode.IsMenuCurrent "{{ $main_menu }}" . }} class="active"{{end}}><a href="{{.URL}}">{{ .Name }}</a> </li>
57
- {{ end }}
58
- {{ end }}
59
- </ul>
60
- {{else}}
61
- <li>
62
- <a class="" href="{{.URL}}">
63
- {{ .Pre }}
64
- {{ .Name }}
65
- </a>
66
- {{end}}
67
- </li>
68
- {{end}}
69
- {{ partial "nav_more.html" . }}
70
- {{ partial "google_search.html" . }}
@@ -1,74 +0,0 @@
1
- {{/*
2
- Copyright (c) 2018 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
- Christopher Guindon <chris.guindon@eclipse-foundation.org>
10
-
11
- SPDX-License-Identifier: EPL-2.0
12
- */}}
13
-
14
- <div class="{{ $.Site.Params.navbar_wrapper_classes | default "navbar-wrapper" }}">
15
- <div class="container">
16
- <div class="row" id="header-row">
17
- <div class="{{ $.Site.Params.header_left_classes | default "col-sm-5 col-md-4" }}" id="header-left">
18
- <div class="wrapper-logo-default">
19
-
20
- {{ with .Page.Params.logo | default .Site.Params.logo | default "https://www.eclipse.org/eclipse.org-common/themes/solstice/public/images/logo/eclipse-foundation-white-orange.svg" }}
21
-
22
- {{ $currentPageLogo := . }}
23
- {{ $currentPageLogoTitle := $.Site.Title }}
24
- {{ $currentPageLogoLink := "" }}
25
-
26
- {{ range $.Site.Data.subsites_custom_logo.items }}
27
- {{ $section := $.Site.GetPage (.page_url) }}
28
- {{ if or (eq ($.Section) ($section)) ( $.Page.IsDescendant $section ) }}
29
- {{ $currentPageLogo = .logo }}
30
- {{ $currentPageLogoTitle = .logo_title }}
31
- {{ $currentPageLogoLink = .logo_url }}
32
- {{ end }}
33
- {{ end }}
34
-
35
- <a title="{{ $currentPageLogoTitle }}" href="{{ $currentPageLogoLink | absLangURL }}">
36
- <img width="{{ $.Page.Params.logo_width | default $.Site.Params.logo_width | default "140"}}" class="logo-eclipse-default img-responsive hidden-xs" src="{{ $currentPageLogo | relURL }}" alt="{{ $currentPageLogoTitle }}" />
37
- </a>
38
- {{ end }}
39
-
40
- </div>
41
- </div>
42
- {{ $has_cfa := 0 }}
43
- {{ if (and (isset .Site.Params "call_for_action_text") (isset .Site.Params "call_for_action_url") (isset .Site.Params "call_for_action_icon")) }}
44
- {{ $has_cfa = 1 }}
45
- {{ end }}
46
- <div class="{{ $.Site.Params.main_menu_wrapper_classes | default "col-sm-19 col-md-20 margin-top-10" }}{{ if eq $has_cfa 0}} reset{{ end }}" id="main-menu-wrapper">
47
- {{ $normalized_cta_url := .Site.Params.call_for_action_url }}
48
- {{ $hide_call_for_action := .Page.Params.hide_call_for_action }}
49
- {{ if (eq (len (findRE `(\.[^\/]{3,4}|\/)$` $normalized_cta_url)) 0) }}
50
- {{ $normalized_cta_url = printf "%s/" $normalized_cta_url }}
51
- {{ end }}
52
-
53
- {{ $abs_cfa := printf "%s" ($normalized_cta_url | relURL) }}
54
- {{ $is_cfa_page := 0 }}
55
- {{ if or (eq $normalized_cta_url .Permalink) (eq $abs_cfa .Permalink) }}
56
- {{ $is_cfa_page = 1 }}
57
- {{ end }}
58
- {{ if and (eq $has_cfa 1) (not (or (eq .Site.Params.hide_cfa_same_page "true") (eq $is_cfa_page 1) (eq $hide_call_for_action true))) }}
59
- <div class="{{ $.Site.Params.call_for_action_wrapper_classes | default "float-right hidden-xs" }}" id="btn-call-for-action">
60
- <div id="btn-call-for-action"><a href="{{ .Site.Params.call_for_action_url }}" class="{{ .Site.Params.call_for_action_classes | default "btn btn-huge btn-warning" }}"><i class="fa {{ .Site.Params.call_for_action_icon }}"></i> {{ .Site.Params.call_for_action_text }}</a></div>
61
- </div>
62
- {{ end }}
63
- <div class="{{ $.Site.Params.main_menu_classes | default "navbar float-sm-right yamm" }}" id="main-menu">
64
- <div class="navbar-collapse collapse reset float-right" id="navbar-main-menu">
65
- <ul class="nav navbar-nav">
66
- {{ partial "nav.html" . }}
67
- </ul>
68
- </div>
69
- {{ partial "nav_toggle.html" . }}
70
- </div>
71
- </div>
72
- </div>
73
- </div>
74
- </div>
@@ -1,45 +0,0 @@
1
- {{/*
2
- Copyright (c) 2018 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
- Contributors:
7
- Christopher Guindon <chris.guindon@eclipse-foundation.org>
8
- SPDX-License-Identifier: EPL-2.0
9
- */}}
10
-
11
- {{ if isset .Site.Menus "sidebar" }}
12
- {{ $currentPage := . }}
13
- {{ .Scratch.Set "currentSection" "home" }}
14
-
15
- {{ if $currentPage.Section }}
16
- {{ .Scratch.Set "currentSection" $currentPage.Section }}
17
- {{ end }}
18
-
19
- {{$currentSection := .Scratch.Get "currentSection" }}
20
-
21
- {{ range .Site.Menus.sidebar }}
22
- {{$parentItem := . }}
23
-
24
- {{ if and (.HasChildren) (eq $currentSection $parentItem.Identifier) }}
25
- <aside id="main-sidebar" class="subpage-sidebar">
26
- <ul id="leftnav" class="ul-left-nav fa-ul hidden-print">
27
- <li class="separator">
28
- <a class="separator" href="{{ .URL | relURL }}">{{ $parentItem.Name }}</a>
29
- </li>
30
- {{ range .Children }}
31
- {{ if or (eq $parentItem.Identifier $currentSection) (eq .Parent $currentSection) }}
32
- <li{{if $currentPage.IsMenuCurrent "main" . }} class="active"{{end}}>
33
- {{ .Pre }}
34
- <a href="{{ .URL | relURL }}" target="_self">{{ .Name }}</a>
35
- </li>
36
- {{ end }}
37
- {{ end }}
38
- </ul>
39
- </aside>
40
- {{ end }}
41
- {{ end }}
42
- {{ if isset $currentPage.Params "custom_sidebar" }}
43
- {{ $currentPage.Params.custom_sidebar | safeHTML }}
44
- {{ end }}
45
- {{ end }}