eclipsefdn-hugo-solstice-theme 0.0.211 → 0.0.213

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.
@@ -2,6 +2,9 @@
2
2
  title: "Questions fréquemment posées"
3
3
  date: 2019-04-01T13:30:00-00:00
4
4
  description: "Questions fréquemment posées - FR"
5
+ metadata:
6
+ - path: "fr/faq"
7
+ type: "ld+json"
5
8
  ---
6
9
 
7
10
  {{< faq >}}
@@ -2,6 +2,9 @@
2
2
  title: "FAQ"
3
3
  date: 2019-04-01T13:30:00-00:00
4
4
  description: "Frequently Asked Questions"
5
+ metadata:
6
+ - path: "en/faq"
7
+ type: "ld+json"
5
8
  ---
6
9
 
7
10
  {{< faq >}}
@@ -81,3 +81,19 @@
81
81
  {{- end }}
82
82
  {{- partial "google_tag_manager.html" . }}
83
83
  {{- partial "head_variables.html" . }}
84
+
85
+ {{ $metadata := .Page.Params.metadata | default slice }}
86
+ {{ range $metadata }}
87
+ {{ $path_parts := split .path "/" }}
88
+ {{ $data := $.Site.Data }}
89
+ {{ range $path_parts }}
90
+ {{ $data = index $data . }}
91
+ {{ end }}
92
+ {{ if eq .type "ld+json" }}
93
+ <script type="application/ld+json">
94
+ {{ with $data }}
95
+ {{ . }}
96
+ {{ end }}
97
+ </script>
98
+ {{ end }}
99
+ {{ end }}
@@ -1,4 +1,4 @@
1
- <!--
1
+ {{/*
2
2
  Copyright (c) 2018 Eclipse Foundation, Inc.
3
3
 
4
4
  This program and the accompanying materials are made available under the
@@ -9,4 +9,4 @@
9
9
  Christopher Guindon <chris.guindon@eclipse-foundation.org>
10
10
 
11
11
  SPDX-License-Identifier: EPL-2.0
12
- -->
12
+ */}}
@@ -1,5 +1,5 @@
1
1
  <!--
2
- Copyright (c) 2019 Eclipse Foundation, Inc.
2
+ Copyright (c) 2019, 2024 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
@@ -11,6 +11,8 @@
11
11
  SPDX-License-Identifier: EPL-2.0
12
12
  -->
13
13
 
14
+ {{ partial "related_links.html" .}}
15
+
14
16
  {{ if ne .Page.Params.hide_sidebar true }}
15
17
  {{ $sidebarLayout := .Page.Params.sidebar_layout | default .Site.Params.sidebar_layout | default "default" }}
16
18
  </div>
@@ -0,0 +1,27 @@
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
+ SPDX-License-Identifier: EPL-2.0
9
+ -->
10
+ {{ with $related := .Page.Params.related }}
11
+ <aside class="sideitem margin-top-30" role="complementary" aria-labelledby="related-links">
12
+ {{ with $related.links }}
13
+ <p class="h4" id="related-links">Related Links</p>
14
+ <hr>
15
+ <nav>
16
+ <ul>
17
+ {{ range . }}
18
+ <li><a href="{{ .url }}">{{ .text | markdownify }}</a></li>
19
+ {{ end }}
20
+ </ul>
21
+ </nav>
22
+ {{ end }}
23
+ {{ with $related.content }}
24
+ {{ . | safeHTML }}
25
+ {{ end }}
26
+ </aside>
27
+ {{ end }}
@@ -1,13 +1,23 @@
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
+ SPDX-License-Identifier: EPL-2.0
9
+ */}}
10
+
1
11
  {{ $data := index .Site.Data .Site.Language.Lang }}
2
- <h2>{{ i18n "faq-list-heading" }}</h2>
3
- <ul>
4
- {{ range $data.faq.mainEntity }}
5
- <li><a href="#{{ replace .name " " "_" }}">{{ .name | safeHTML }}</a></li>
6
- {{ end }}
7
- </ul>
8
- <hr>
12
+ <h2>{{ i18n "faq-list-heading" }}</h2>
13
+ <ul>
9
14
  {{ range $data.faq.mainEntity }}
10
- <h2 class="h4" id="{{ replace .name " " "_" }}">{{ .name | safeHTML }}</h2>
11
- {{ .acceptedAnswer.text | safeHTML }}
12
- <hr>
13
- {{ end }}
15
+ <li><a href="#{{ replace .name " " "-" }}">{{ .name | safeHTML }}</a></li>
16
+ {{ end }}
17
+ </ul>
18
+ <hr>
19
+ {{ range $data.faq.mainEntity }}
20
+ <h2 class="h4" id="{{ replace .name " " "-" }}">{{ .name | safeHTML }}</h2>
21
+ {{ .acceptedAnswer.text | safeHTML }}
22
+ <hr>
23
+ {{ end }}
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.211",
7
+ "version": "0.0.213",
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.261",
26
+ "eclipsefdn-solstice-assets": "0.0.264",
27
27
  "json2yaml": "^1.1.0",
28
28
  "toml": "^3.0.0"
29
29
  },
@@ -1,8 +0,0 @@
1
- {{ define "head-suffix" }}
2
- {{ $data := index .Site.Data .Site.Language.Lang }}
3
- {{ with $data.faq }}
4
- <script type="application/ld+json">
5
- {{ . }}
6
- </script>
7
- {{ end }}
8
- {{ end }}