eclipsefdn-hugo-solstice-theme 0.0.200 → 0.0.202
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/exampleSite/content/components/table_of_contents.md +27 -0
- package/exampleSite/data/doc_params.yml +5 -0
- package/exampleSite/data/site_params.yml +6 -1
- package/i18n/de.toml +1 -1
- package/i18n/en.toml +4 -2
- package/i18n/jp.toml +1 -1
- package/i18n/pt.toml +1 -1
- package/i18n/ru.toml +1 -1
- package/i18n/tr.toml +1 -1
- package/i18n/zh.toml +1 -1
- package/layouts/partials/astro/jumbotron.html +7 -1
- package/layouts/partials/astro/navbar.html +9 -5
- package/layouts/partials/footer_links/footer-copyright.html +15 -1
- package/layouts/partials/footer_links/links.html +3 -1
- package/layouts/partials/head.html +3 -3
- package/layouts/partials/quicksilver/jumbotron.html +7 -1
- package/layouts/shortcodes/table_of_contents.html +15 -0
- package/package.json +2 -2
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Table of Contents
|
|
3
|
+
date: 2024-01-16
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
{{< table_of_contents >}}
|
|
7
|
+
|
|
8
|
+
## Introduction
|
|
9
|
+
|
|
10
|
+
This is a sample page to demonstrate the use of the `table_of_contents`
|
|
11
|
+
shortcode.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
The `table_of_contents` shortcode is used to generate a table of contents
|
|
16
|
+
based on the headings in the current page. The table of contents is generated
|
|
17
|
+
using headings.
|
|
18
|
+
|
|
19
|
+
The table of contents is generated using the following syntax:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
{{</* table_of_contents */>}}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Parameters
|
|
26
|
+
|
|
27
|
+
The `table_of_contents` shortcode has no parameters.
|
|
@@ -27,6 +27,11 @@ items:
|
|
|
27
27
|
description: If set, will render a jumbotron in the header with the given text as the headline of the content. Also used in the title meta tag when seo_title is missing from the page parameters.
|
|
28
28
|
values:
|
|
29
29
|
- Any string value
|
|
30
|
+
-
|
|
31
|
+
name: hide_call_for_action
|
|
32
|
+
description: Hides the CFA button on the page.
|
|
33
|
+
values:
|
|
34
|
+
- "true"
|
|
30
35
|
-
|
|
31
36
|
name: hide_breadcrumb
|
|
32
37
|
description: Hides the page breadcrumb if set to true, otherwise ignored.
|
|
@@ -78,6 +78,11 @@ items:
|
|
|
78
78
|
description: Used in the header.html layout file, being appended to the header-wrapper class to optionally change or add to the header classes used on the page. Only used if not set at the page level.
|
|
79
79
|
values:
|
|
80
80
|
- Any string value
|
|
81
|
+
-
|
|
82
|
+
name: hide_call_for_action
|
|
83
|
+
description: Hides the CFA button site-wide.
|
|
84
|
+
value:
|
|
85
|
+
- "true"
|
|
81
86
|
-
|
|
82
87
|
name: hide_cfa_same_page
|
|
83
88
|
description: Attempt to hide CFA on the page it links to
|
|
@@ -148,4 +153,4 @@ items:
|
|
|
148
153
|
name: custom_jumbotron_class
|
|
149
154
|
description: Optional custom_jumbotron_class that will be used for custom_jumbotron.
|
|
150
155
|
values:
|
|
151
|
-
- Any string value
|
|
156
|
+
- Any string value
|
package/i18n/de.toml
CHANGED
|
@@ -182,7 +182,7 @@ other = "IDE und Werkzeuge"
|
|
|
182
182
|
other = "Newcomer-Forum"
|
|
183
183
|
|
|
184
184
|
[footer-copyright-text]
|
|
185
|
-
other = "Copyright © Eclipse Foundation. Alle Rechte vorbehalten."
|
|
185
|
+
other = "Copyright © Eclipse Foundation AISBL. Alle Rechte vorbehalten."
|
|
186
186
|
|
|
187
187
|
[search-section-label]
|
|
188
188
|
other = "Suchen"
|
package/i18n/en.toml
CHANGED
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
other = "Newcomer Forum"
|
|
195
195
|
|
|
196
196
|
[footer-copyright-text]
|
|
197
|
-
other = "Copyright © Eclipse Foundation
|
|
197
|
+
other = "Copyright © Eclipse Foundation AISBL. All Rights Reserved."
|
|
198
198
|
|
|
199
199
|
[search-section-label]
|
|
200
200
|
other = "Search"
|
|
@@ -328,7 +328,6 @@ other = "Session Name"
|
|
|
328
328
|
[agenda-presenter-name]
|
|
329
329
|
other = "Presenter Name"
|
|
330
330
|
|
|
331
|
-
|
|
332
331
|
[agenda-organization]
|
|
333
332
|
other = "Organization"
|
|
334
333
|
|
|
@@ -364,3 +363,6 @@ other = "logo"
|
|
|
364
363
|
|
|
365
364
|
[modal-close-alt]
|
|
366
365
|
other = "Close"
|
|
366
|
+
|
|
367
|
+
[table-of-contents-heading]
|
|
368
|
+
other = "Table of Contents"
|
package/i18n/jp.toml
CHANGED
package/i18n/pt.toml
CHANGED
|
@@ -185,4 +185,4 @@ other = "Saiba mais"
|
|
|
185
185
|
other = "Pule para o conteúdo principal"
|
|
186
186
|
|
|
187
187
|
[footer-copyright-text]
|
|
188
|
-
other = "Copyright © Eclipse Foundation. Todos os direitos reservados."
|
|
188
|
+
other = "Copyright © Eclipse Foundation AISBL. Todos os direitos reservados."
|
package/i18n/ru.toml
CHANGED
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
other = "Форум новичков"
|
|
183
183
|
|
|
184
184
|
[footer-copyright-text]
|
|
185
|
-
other = "Copyright © Eclipse Foundation. Все права защищены."
|
|
185
|
+
other = "Copyright © Eclipse Foundation AISBL. Все права защищены."
|
|
186
186
|
|
|
187
187
|
[search-section-label]
|
|
188
188
|
other = "Поиск"
|
package/i18n/tr.toml
CHANGED
|
@@ -182,7 +182,7 @@ other = "IDE ve Araçlar"
|
|
|
182
182
|
other = "Yeni Gelen Forumu"
|
|
183
183
|
|
|
184
184
|
[footer-copyright-text]
|
|
185
|
-
other = "Copyright © Eclipse Foundation. Tüm hakları saklıdır."
|
|
185
|
+
other = "Copyright © Eclipse Foundation AISBL. Tüm hakları saklıdır."
|
|
186
186
|
|
|
187
187
|
[search-section-label]
|
|
188
188
|
other = "Ara"
|
package/i18n/zh.toml
CHANGED
|
@@ -30,7 +30,13 @@
|
|
|
30
30
|
<div class="row">
|
|
31
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
32
|
{{ if and (.Page.Params.headline) (ne .Page.Params.headline "") }}
|
|
33
|
-
<h1 class="featured-jumbotron-headline">
|
|
33
|
+
<h1 class="featured-jumbotron-headline">
|
|
34
|
+
{{ if eq .Page.Params.format_title false }}
|
|
35
|
+
{{ .Page.Params.headline | safeHTML }}
|
|
36
|
+
{{ else }}
|
|
37
|
+
{{ .Page.Params.headline | title | safeHTML }}
|
|
38
|
+
{{ end }}
|
|
39
|
+
</h1>
|
|
34
40
|
{{ end }}
|
|
35
41
|
{{ if isset .Page.Params "subtitle" }}
|
|
36
42
|
<div class="featured-jumbotron-subtitle">{{ .Page.Params.subtitle | title | safeHTML }}</div>
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
{{ $call_for_action_url := .Site.Params.call_for_action_url }}
|
|
20
20
|
{{ $call_for_action_icon := .Site.Params.call_for_action_icon }}
|
|
21
21
|
|
|
22
|
+
{{ $hide_cfa := .Site.Params.hide_call_for_action | default .Page.Params.hide_call_for_action | default false }}
|
|
23
|
+
|
|
22
24
|
<div class="header-navbar-wrapper">
|
|
23
25
|
<div class="container">
|
|
24
26
|
<div class="header-navbar">
|
|
@@ -29,14 +31,16 @@
|
|
|
29
31
|
</div>
|
|
30
32
|
{{ partial "nav.html" . }}
|
|
31
33
|
<div class="header-navbar-end">
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
{{ if not $hide_cfa }}
|
|
35
|
+
<a class="header-navbar-end-download-btn btn btn-primary" href="{{ $call_for_action_url }}">
|
|
36
|
+
<i class="fa {{ $call_for_action_icon }}" aria-hidden="true"></i>
|
|
37
|
+
{{ $call_for_action_text }}
|
|
38
|
+
</a>
|
|
39
|
+
{{ end }}
|
|
36
40
|
<button class="mobile-menu-btn" aria-label="Toggle mobile navigation menu" aria-expanded="false">
|
|
37
41
|
<i class="fa fa-bars fa-xl"></i>
|
|
38
42
|
</button>
|
|
39
43
|
</div>
|
|
40
44
|
</div>
|
|
41
45
|
</div>
|
|
42
|
-
</div>
|
|
46
|
+
</div>
|
|
@@ -1,9 +1,23 @@
|
|
|
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
|
+
{{ $layout_style := $.Site.Params.layout_style | default "quicksilver" }}
|
|
14
|
+
|
|
1
15
|
<div class="col-sm-24 margin-top-20">
|
|
2
16
|
<div class="row">
|
|
3
17
|
<div id="copyright" class="col-md-16">
|
|
4
18
|
<p id="copyright-text">{{ i18n "footer-copyright-text" | safeHTML}}</p>
|
|
5
19
|
</div>
|
|
6
|
-
{{ if eq
|
|
20
|
+
{{ if eq $layout_style "quicksilver" }}
|
|
7
21
|
{{ partial "socials.html" . }}
|
|
8
22
|
{{ end }}
|
|
9
23
|
</div>
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
{{ $layout_style := $.Site.Params.layout_style | default "quicksilver" }}
|
|
2
|
+
|
|
1
3
|
{{ partial "footer_links/footer-eclipse-foundation.html" . }}
|
|
2
4
|
{{ partial "footer_links/footer-legal.html" . }}
|
|
3
5
|
{{ if eq $.Site.Params.layout_style "quicksilver" }}
|
|
4
6
|
{{ partial "footer_links/footer-useful-links.html" . }}
|
|
5
7
|
{{ end }}
|
|
6
8
|
{{ partial "footer_links/footer-other.html" . }}
|
|
7
|
-
{{ if eq
|
|
9
|
+
{{ if eq $layout_style "quicksilver" }}
|
|
8
10
|
{{ partial "footer_links/footer-copyright.html" . }}
|
|
9
11
|
{{ end }}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
{{- end }}
|
|
33
33
|
{{- end }}
|
|
34
34
|
{{- with .Page.Params.author }}
|
|
35
|
-
<meta name="author" content="{{ .
|
|
35
|
+
<meta name="author" content="{{ . }}"/>
|
|
36
36
|
{{- end }}
|
|
37
37
|
{{- with .Params.page_favicon | default .Site.Params.favicon | default "https://www.eclipse.org/favicon.ico"}}
|
|
38
38
|
<link href='{{ . | relURL }}' rel='icon' type='image/x-icon'/>
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
{{- end }}
|
|
43
43
|
<!-- Social Media Tags -->
|
|
44
44
|
{{- with .Params.share_img | default .Params.image | default .Site.Params.share_img | default .Site.Params.logo }}
|
|
45
|
-
<meta property="og:image" content="{{ . |
|
|
46
|
-
<meta name="twitter:image" content="{{ . |
|
|
45
|
+
<meta property="og:image" content="{{ . | absURL }}" />
|
|
46
|
+
<meta name="twitter:image" content="{{ . | absURL }}" />
|
|
47
47
|
{{- end }}
|
|
48
48
|
<meta name="twitter:card" content="summary" />
|
|
49
49
|
{{- with .Site.Author.twitter }}
|
|
@@ -17,7 +17,13 @@
|
|
|
17
17
|
<div class="container">
|
|
18
18
|
<div class="row">
|
|
19
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>
|
|
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>
|
|
21
27
|
{{ if isset .Page.Params "subtitle" }}
|
|
22
28
|
<h2>{{ .Page.Params.subtitle | title | safeHTML }}</h2>
|
|
23
29
|
{{end}}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
Copyright (c) 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
|
+
Olivier Goulet <olivier.goulet@eclipse-foundation.org>
|
|
10
|
+
|
|
11
|
+
SPDX-License-Identifier: EPL-2.0
|
|
12
|
+
*/}}
|
|
13
|
+
|
|
14
|
+
<h2 id="toc">{{ i18n "table-of-contents-heading" }}</h2>
|
|
15
|
+
{{ .Page.TableOfContents }}
|
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.
|
|
7
|
+
"version": "0.0.202",
|
|
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": "^1.6.0",
|
|
26
|
-
"eclipsefdn-solstice-assets": "0.0.
|
|
26
|
+
"eclipsefdn-solstice-assets": "0.0.252",
|
|
27
27
|
"json2yaml": "^1.1.0",
|
|
28
28
|
"toml": "^3.0.0"
|
|
29
29
|
},
|