eclipsefdn-hugo-solstice-theme 0.1.8 → 0.1.10

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.110.0-n18.13.0',
7
+ containerImage: 'eclipsefdn/hugo-node:h0.144.2-n22.14.0',
8
8
  script: 'bin/build.sh'
9
9
  ],
10
10
  deployment: [
package/README.md CHANGED
@@ -10,8 +10,7 @@ Dependencies:
10
10
  | Program | Version |
11
11
  |---------|---------|
12
12
  | node.js | 18.13.0 |
13
- | npm | 8.19 |
14
- | Hugo | 0.110 |
13
+ | Hugo | 0.144 |
15
14
  | Git | > 2.31 |
16
15
  | Make | > 4.3 |
17
16
 
package/config.toml CHANGED
@@ -26,6 +26,17 @@
26
26
  icon = "fa-brands fa-linkedin-in"
27
27
  url = "https://www.linkedin.com/company/eclipse-foundation"
28
28
 
29
+ [Params.author]
30
+ name = "Eclipse Foundation"
31
+ website = "https://www.eclipse.org"
32
+ email = "webdev@eclipse-foundation.org"
33
+ facebook = "eclipse.org"
34
+ twitter = "eclipsefdn"
35
+ youtube = "EclipseFdn"
36
+ googleplus = "+Eclipse"
37
+ linkedin = "company/eclipse-foundation/"
38
+ bluesky = "eclipsefdn.bsky.social"
39
+
29
40
  # This is the default menus configuration for all websites consuming the theme.
30
41
  # It will be discarded if menus.main is defined at the site-level.
31
42
 
@@ -178,16 +189,10 @@
178
189
  weight = 1
179
190
  parent = "supporters-sponsorship"
180
191
 
181
- [[menus.astro]]
182
- name = "Corporate Sponsorship"
183
- url = "https://www.eclipse.org/org/corporate-sponsors/"
184
- weight = 2
185
- parent = "supporters-sponsorship"
186
-
187
192
  [[menus.astro]]
188
193
  name = "Sponsor a Collaboration"
189
194
  url = "https://www.eclipse.org/sponsor/collaboration/"
190
- weight = 3
195
+ weight = 2
191
196
  parent = "supporters-sponsorship"
192
197
 
193
198
  [[menus.astro]]
@@ -34,7 +34,7 @@ baseURL = "https://webdev.eclipse.org/docs/hugo"
34
34
  hide_deprecation_warnings = true
35
35
  hide_ad = false
36
36
 
37
- [Author]
37
+ [Params.author]
38
38
  name = "Christopher Guindon"
39
39
  website = "https://www.eclipse.org"
40
40
  email = "webdev@eclipse-foundation.org"
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: "Featured Footer"
3
- date: 2019-06-2T15:50:36-04:00
3
+ date: 2019-06-02T15:50:36-04:00
4
4
  description: ""
5
5
  categories: []
6
6
  keywords: []
@@ -26,6 +26,7 @@ items:
26
26
  -
27
27
  name: facebook_url
28
28
  description: URL to the Facebook page for the site. If there is no value set, will default to Eclispe Foundation page.
29
+ deprecated: "0.1.7"
29
30
  values:
30
31
  - Absolute link to Facebook profile
31
32
  -
@@ -102,11 +103,13 @@ items:
102
103
  -
103
104
  name: linkedin_url
104
105
  description: URL to the linkedin page for the site. If there is no value set, will default to Eclispe Foundation page.
106
+ deprecated: "0.1.7"
105
107
  values:
106
108
  - Absolute link to linkedin profile
107
109
  -
108
110
  name: bluesky_url
109
111
  description: URL to the Bluesky page for the site. If there is no value set, will default to Eclispe Foundation page.
112
+ deprecated: "0.1.7"
110
113
  values:
111
114
  - Absolute link to Bluesky profile
112
115
  -
@@ -137,11 +140,13 @@ items:
137
140
  -
138
141
  name: twitter_url
139
142
  description: URL to the Twitter page for the site. If there is no value set, will default to Eclispe Foundation page.
143
+ deprecated: "0.1.7"
140
144
  values:
141
145
  - Absolute link to Twitter profile
142
146
  -
143
147
  name: youtube_url
144
148
  description: URL to the YouTube page for the site. If there is no value set, will default to Eclispe Foundation page.
149
+ deprecated: "0.1.7"
145
150
  values:
146
151
  - Absolute link to YouTube profile
147
152
  -
@@ -159,3 +164,13 @@ items:
159
164
  description: Optional custom_jumbotron_class that will be used for custom_jumbotron.
160
165
  values:
161
166
  - Any string value
167
+ - name: socials
168
+ values:
169
+ - "Array of objects with the following properties: name (string), icon (string, Font Awesome 6 icon classes), url (string)"
170
+ example: |
171
+ <pre>
172
+ [[Params.socials]]
173
+ name = "Bluesky"
174
+ icon = "fa-brands fa-bluesky"
175
+ url = "https://bsky.app/profile/eclipsefdn.bsky.social"
176
+ </pre>
@@ -26,6 +26,9 @@
26
26
  <td>{{ .name }}</td>
27
27
  <td>
28
28
  <p>{{ .description | safeHTML }}</p>
29
+ {{ if .deprecated }}
30
+ <p class="red">Deprecated in v{{ .deprecated }}</p>
31
+ {{ end }}
29
32
  {{ if isset .values 0 }}
30
33
  <p><em>Accepted values:</em></p>
31
34
  <ul>
@@ -37,7 +40,7 @@
37
40
 
38
41
  {{ if and (trim .example " " | ne "") (isset . "example") }}
39
42
  <p>
40
- <em>Example:</em> {{ .example }}
43
+ <em>Example:</em> {{ .example | safeHTML }}
41
44
  </p>
42
45
  {{ end }}
43
46
 
@@ -51,4 +54,4 @@
51
54
  {{ end }}
52
55
  </tbody>
53
56
  </table>
54
- </div>
57
+ </div>
@@ -17,9 +17,9 @@
17
17
  <link>{{ .Permalink }}</link>
18
18
  <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
19
19
  <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
20
- <language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
21
- <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
22
- <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
20
+ <language>{{.}}</language>{{end}}{{ with .Site.Params.author.email }}
21
+ <managingEditor>{{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.author.email }}
22
+ <webMaster>{{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
23
23
  <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
24
24
  <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
25
25
  {{- with .OutputFormats.Get "RSS" -}}
@@ -31,13 +31,13 @@
31
31
  <link>{{ .Permalink }}</link>
32
32
  <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
33
33
  {{ if or (.Params.author) (.Params.email) }}
34
- <author>{{ .Params.email | default .Site.Author.email | default "no+reply@eclipse-foundation.org" }} ({{ .Params.author | default .Site.Author.name | default "Eclipse Foundation" }})</author>
34
+ <author>{{ .Params.email | default .Site.Params.author.email | default "no+reply@eclipse-foundation.org" }} ({{ .Params.author | default .Site.Params.author.name | default "Eclipse Foundation" }})</author>
35
35
  {{ else }}
36
- {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
36
+ {{ with .Site.Params.author.email }}<author>{{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}</author>{{end}}
37
37
  {{ end }}
38
38
  <guid>{{ .Permalink }}</guid>
39
39
  <description>{{ .Summary | html }}</description>
40
40
  </item>
41
41
  {{ end }}
42
42
  </channel>
43
- </rss>
43
+ </rss>
@@ -7,5 +7,5 @@
7
7
  })(window,document,'script','dataLayer','{{ . }}');</script>
8
8
  <!-- End Google Tag Manager -->
9
9
  {{- else }}
10
- {{ template "_internal/google_analytics_async.html" . }}
11
- {{- end }}
10
+ {{ template "_internal/google_analytics.html" . }}
11
+ {{- end }}
@@ -46,7 +46,7 @@
46
46
  <meta name="twitter:image" content="{{ . | absURL }}" />
47
47
  {{- end }}
48
48
  <meta name="twitter:card" content="summary" />
49
- {{- with .Site.Author.twitter }}
49
+ {{- with .Site.Params.author.twitter }}
50
50
  <meta name="twitter:site" content="@{{ . }}" />
51
51
  <meta name="twitter:creator" content="@{{ . }}" />
52
52
  {{- end }}
@@ -1,6 +1,6 @@
1
1
  {{ $class := .Get "class" | default "" }}
2
2
  {{ $type := .Get "type" }}
3
- {{ $handle := .Get "handle" | default .Site.Author.twitter }}
3
+ {{ $handle := .Get "handle" | default .Site.Params.author.twitter }}
4
4
  {{ $hide_followers := .Get "hide_followers" | default "true" }}
5
5
  {{ $hashtag := .Get "hashtag" }}
6
6
  {{ $preload_text := .Get "preload_text" }}
@@ -41,4 +41,4 @@
41
41
  </a>
42
42
  </div>
43
43
 
44
- {{ .Page.Scratch.Set "is_using_twitter" "true" }}
44
+ {{ .Page.Scratch.Set "is_using_twitter" "true" }}
@@ -1,5 +1,5 @@
1
1
  {{ $class := .Get "class" }}
2
- {{ $handle := .Get "handle" | default .Site.Author.twitter }}
2
+ {{ $handle := .Get "handle" | default .Site.Params.Author.twitter }}
3
3
  {{ $dark := .Get "dark" | default "" }}
4
4
  {{ $tweet_limit := .Get "tweet_limit" | default "20" }}
5
5
 
@@ -17,4 +17,4 @@
17
17
  </a>
18
18
  </div>
19
19
 
20
- {{ .Page.Scratch.Set "is_using_twitter" "true" }}
20
+ {{ .Page.Scratch.Set "is_using_twitter" "true" }}
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.1.8",
7
+ "version": "0.1.10",
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.7.7",
26
- "eclipsefdn-solstice-assets": "0.1.11",
26
+ "eclipsefdn-solstice-assets": "0.1.12",
27
27
  "json2yaml": "^1.1.0",
28
28
  "toml": "^3.0.0"
29
29
  },