eclipsefdn-hugo-solstice-theme 0.0.181 → 0.0.183

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/Jenkinsfile CHANGED
@@ -4,7 +4,7 @@ hugo (
4
4
  appName: 'webdev.eclipse.org-docs-hugo',
5
5
  productionDomain: 'webdev.eclipse.org',
6
6
  build: [
7
- containerImage: 'eclipsefdn/hugo-node:h0.76.5-n12.22.1',
7
+ containerImage: 'eclipsefdn/hugo-node:h0.110.0-n18.13.0',
8
8
  script: 'bin/build.sh'
9
9
  ],
10
10
  deployment: [
package/README.md CHANGED
@@ -9,9 +9,9 @@ Dependencies:
9
9
 
10
10
  | Program | Version |
11
11
  |---------|---------|
12
- | node.js | ~ 12.22.0 |
13
- | npm | ~ 7.11 |
14
- | Hugo | > 0.76 |
12
+ | node.js | 18.13.0 |
13
+ | npm | 8.19 |
14
+ | Hugo | 0.110 |
15
15
  | Git | > 2.31 |
16
16
  | Make | > 4.3 |
17
17
 
@@ -354,3 +354,14 @@
354
354
  weight = 2
355
355
  parent = "membership"
356
356
  pre = "<i class=\"fa fa-chevron-right fa-fw\"></i>"
357
+
358
+ [[main_menu_demo]]
359
+ identifier = "custom-menu"
360
+ name = "Custom Menu"
361
+ weight = 1
362
+
363
+ [[main_menu_demo]]
364
+ parent = "custom-menu"
365
+ name = "Go Home"
366
+ url = "/"
367
+ weight = 1
@@ -342,3 +342,14 @@
342
342
  weight = 2
343
343
  parent = "membership"
344
344
  pre = "<i class=\"fa fa-chevron-right fa-fw\"></i>"
345
+
346
+ [[main_menu_demo]]
347
+ identifier = "custom-menu"
348
+ name = "Custom Menu"
349
+ weight = 1
350
+
351
+ [[main_menu_demo]]
352
+ parent = "custom-menu"
353
+ name = "Go Home"
354
+ url = "/"
355
+ weight = 1
@@ -345,3 +345,13 @@
345
345
  parent = "membership"
346
346
  pre = "<i class=\"fa fa-chevron-right fa-fw\"></i>"
347
347
 
348
+ [[main_menu_demo]]
349
+ identifier = "custom-menu"
350
+ name = "Custom Menu"
351
+ weight = 1
352
+
353
+ [[main_menu_demo]]
354
+ parent = "custom-menu"
355
+ name = "Go Home"
356
+ url = "/"
357
+ weight = 1
@@ -342,3 +342,14 @@
342
342
  weight = 2
343
343
  parent = "membership"
344
344
  pre = "<i class=\"fa fa-chevron-right fa-fw\"></i>"
345
+
346
+ [[main_menu_demo]]
347
+ identifier = "custom-menu"
348
+ name = "Custom Menu"
349
+ weight = 1
350
+
351
+ [[main_menu_demo]]
352
+ parent = "custom-menu"
353
+ name = "Go Home"
354
+ url = "/"
355
+ weight = 1
@@ -342,3 +342,14 @@
342
342
  weight = 2
343
343
  parent = "membership"
344
344
  pre = "<i class=\"fa fa-chevron-right fa-fw\"></i>"
345
+
346
+ [[main_menu_demo]]
347
+ identifier = "custom-menu"
348
+ name = "Custom Menu"
349
+ weight = 1
350
+
351
+ [[main_menu_demo]]
352
+ parent = "custom-menu"
353
+ name = "Go Home"
354
+ url = "/"
355
+ weight = 1
@@ -342,3 +342,14 @@
342
342
  weight = 2
343
343
  parent = "membership"
344
344
  pre = "<i class=\"fa fa-chevron-right fa-fw\"></i>"
345
+
346
+ [[main_menu_demo]]
347
+ identifier = "custom-menu"
348
+ name = "Custom Menu"
349
+ weight = 1
350
+
351
+ [[main_menu_demo]]
352
+ parent = "custom-menu"
353
+ name = "Go Home"
354
+ url = "/"
355
+ weight = 1
@@ -342,3 +342,14 @@
342
342
  weight = 2
343
343
  parent = "membership"
344
344
  pre = "<i class=\"fa fa-chevron-right fa-fw\"></i>"
345
+
346
+ [[main_menu_demo]]
347
+ identifier = "custom-menu"
348
+ name = "Custom Menu"
349
+ weight = 1
350
+
351
+ [[main_menu_demo]]
352
+ parent = "custom-menu"
353
+ name = "Go Home"
354
+ url = "/"
355
+ weight = 1
@@ -0,0 +1,65 @@
1
+ ---
2
+ title: Main Menu
3
+ main_menu: main_menu_demo
4
+ hide_sidebar: true
5
+ ---
6
+
7
+ The `main_menu` parameter allows you to use a different navigation bar menu.
8
+ This page uses the `main_menu` parameter to show the "Custom Menu" on the
9
+ navigation bar above.
10
+
11
+ If `main_menu` is not specified, it will use the default `main` menu from the
12
+ config.toml, or menus.toml file.
13
+
14
+ ## Example
15
+
16
+ Let's create an example which uses a menu named `my_custom_menu`.
17
+
18
+ config.toml:
19
+
20
+ ```
21
+ [[menu.my_custom_menu]]
22
+ name = "home"
23
+ url = "/awesome-event-2022"
24
+ weight = 1
25
+
26
+ [[menu.my_custom_menu]]
27
+ name = "News"
28
+ url = "/awesome-event-2022/news"
29
+ weight = 2
30
+ ```
31
+
32
+ We want this custom menu to appear on a section named "awesome-event-2022" whose
33
+ url is located at "/awesome-event-2022". To do this, we need to add the front
34
+ matter parameter `main_menu` in our markdown file for awesome-event-2022.
35
+
36
+ awesome-event-2022/\_index.md:
37
+
38
+ ```
39
+ ---
40
+ title: Awesome Event 2022
41
+ main_menu: my_custom_menu
42
+ layout: single
43
+ ---
44
+
45
+ This is the home page for the Awesome Event 2022
46
+ ```
47
+
48
+ ### Front Matter Cascade
49
+
50
+ You can use the `cascade` front matter parameter to make all subpages use the
51
+ new menu as well:
52
+
53
+ ```
54
+ ---
55
+ title: Awesome Event 2022
56
+ layout: single
57
+ cascade:
58
+ main_menu: my_custom_menu
59
+ ---
60
+
61
+ This is the home page for the Awesome Event 2022
62
+ ```
63
+
64
+ For more information about `cascade`, visit the
65
+ [Hugo docs](https://gohugo.io/content-management/front-matter/#front-matter-cascade).
@@ -60,6 +60,13 @@ items:
60
60
  - Array of URL objects that each contain values for "text" and "href"
61
61
  example: |
62
62
  [[href: "about/", text: "About"], [href: "news/", text: "News"]]
63
+ -
64
+ name: main_menu
65
+ description: |
66
+ Replaces the default main menu for one defined in config.toml or menus.toml.
67
+ <a href="./params/main-menu">See more information here</a>.
68
+ values:
69
+ - Any string value
63
70
  -
64
71
  name: redirect_url
65
72
  description: Set the redirect URL for client-side page forwarding. Used in the head.html layout file, and is used in the canonical URL, and in an instant refresh meta tag for page target. If set, it will also set the page to not be indexed in the future by robots.
@@ -1,5 +1,5 @@
1
- <!--
2
- Copyright (c) 2018 Eclipse Foundation, Inc.
1
+ {{/*
2
+ Copyright (c) 2018, 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
@@ -7,11 +7,15 @@
7
7
 
8
8
  Contributors:
9
9
  Christopher Guindon <chris.guindon@eclipse-foundation.org>
10
+ Olivier Goulet <olivier.goulet@eclipse-foundation.org>
10
11
 
11
12
  SPDX-License-Identifier: EPL-2.0
12
- -->
13
+ */}}
14
+
15
+ {{ $main_menu := .Page.Params.main_menu | default "main" }}
16
+
13
17
  {{ $currentNode := . }}
14
- {{ range .Site.Menus.main }}
18
+ {{ range (index .Site.Menus $main_menu) }}
15
19
  {{ if .HasChildren }}
16
20
  {{ $multicol := false }}
17
21
  {{ range .Children }}
@@ -19,10 +23,9 @@
19
23
  {{ $multicol = true }}
20
24
  {{ end }}
21
25
  {{ end }}
22
- <li class="dropdown{{ if $multicol }} eclipse-more{{ end }}">
26
+ <li class="dropdown {{ if $multicol -}} eclipse-more {{- end }}">
23
27
  <a href="#" data-toggle="dropdown" class="dropdown-toggle">
24
28
  {{ .Pre }}
25
- <!--<i class="icon_desktop"></i>-->
26
29
  <span>{{ .Name }}</span>
27
30
  <b class="caret"></b>
28
31
  </a>
@@ -41,7 +44,7 @@
41
44
  <li><p><a href="{{.URL}}"><strong>{{ .Name }}</strong></a></p>
42
45
  </li>
43
46
  {{ range .Children }}
44
- <li{{if $currentNode.IsMenuCurrent "main" . }} class="active"{{end}}><a href="{{.URL}}">{{ .Name }}</a> </li>
47
+ <li {{if $currentNode.IsMenuCurrent "{{ $main_menu }}" . }} class="active"{{end}}><a href="{{.URL}}">{{ .Name }}</a> </li>
45
48
  {{ end }}
46
49
  </ul>
47
50
  {{ end }}
@@ -50,7 +53,7 @@
50
53
  </li>
51
54
  {{ else }}
52
55
  {{ range .Children }}
53
- <li{{if $currentNode.IsMenuCurrent "main" . }} class="active"{{end}}><a href="{{.URL}}">{{ .Name }}</a> </li>
56
+ <li {{if $currentNode.IsMenuCurrent "{{ $main_menu }}" . }} class="active"{{end}}><a href="{{.URL}}">{{ .Name }}</a> </li>
54
57
  {{ end }}
55
58
  {{ end }}
56
59
  </ul>
@@ -1,5 +1,5 @@
1
- <!--
2
- Copyright (c) 2020 Eclipse Foundation, Inc.
1
+ {{/*
2
+ Copyright (c) 2020, 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
@@ -7,9 +7,11 @@
7
7
 
8
8
  Contributors:
9
9
  Martin Lowe <martin.lowe@eclipse-foundation.org>
10
+ Olivier Goulet <olivier.goulet@eclipse-foundation.org>
10
11
 
11
12
  SPDX-License-Identifier: EPL-2.0
12
- -->
13
+ */}}
14
+
13
15
  {{ if $.Site.Data.eclipsefdn_projects }}
14
16
  <section wg-filter="{{$.Site.Params.projects_working_group}}">
15
17
  <style>
@@ -47,7 +49,7 @@
47
49
  <div class="col-xs-24 col-md-4 text-center margin-top-20 margin-bottom-20">
48
50
  <div class="btn-group">
49
51
  <a class="btn btn-primary" href="{{ .url }}/downloads">{{ i18n "project-list-downloads" }}</a>
50
- <button type="button" class="btn btn-sm btn-warning dropdown-toggle details-link" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
52
+ <button type="button" class="btn btn-primary dropdown-toggle details-link" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
51
53
  <span class="caret"></span>
52
54
  <span class="sr-only">{{ i18n "project-list-dropdown-sr" }}</span>
53
55
  </button>
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.0.181",
7
+ "version": "0.0.183",
8
8
  "bugs": {
9
9
  "url": "https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/-/issues"
10
10
  },
@@ -23,7 +23,7 @@
23
23
  "readmeFilename": "README.md",
24
24
  "dependencies": {
25
25
  "axios": "^0.21.1",
26
- "eclipsefdn-solstice-assets": "0.0.216",
26
+ "eclipsefdn-solstice-assets": "0.0.217",
27
27
  "json2yaml": "^1.1.0",
28
28
  "toml": "^3.0.0"
29
29
  },