eclipsefdn-hugo-solstice-theme 0.0.140 → 0.0.141
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,7 @@
|
|
|
2
2
|
title: "Translations of the Hugo Solstice theme"
|
|
3
3
|
description: "A guide to translating the Hugo Solstice theme into new languages."
|
|
4
4
|
date: 2020-01-19T00:00:00-04:00
|
|
5
|
+
email: "test@demo.com"
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
So you want to translate your site, eh? Here are a few things you'll need! The first thing isn't a file, but a code, a language code. This should be the ISO 639-1 code that represents the language you wish to translate for the site. An easily read list of these codes can be found on the [Wikipedia page for ISO 639-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). This code will be used a few times, so please note it down.
|
|
@@ -116,4 +116,15 @@ items:
|
|
|
116
116
|
name: custom_jumbotron_class
|
|
117
117
|
description: Optional custom_jumbotron_class that will be used for custom_jumbotron.
|
|
118
118
|
values:
|
|
119
|
-
- Any string value
|
|
119
|
+
- Any string value
|
|
120
|
+
-
|
|
121
|
+
name: author
|
|
122
|
+
description: Author name of the blog. This will be used to set the author of a blog. If not set, site author will be used and if this is not set, "Eclipse Foundation" will be used as the author.
|
|
123
|
+
values:
|
|
124
|
+
- Any string value
|
|
125
|
+
-
|
|
126
|
+
name: email
|
|
127
|
+
description: Email address of the author of the blog. This will be used to set the email of a blog. If not set, site email will be used and if this is not set, "no+reply@eclipse-foundation.org" will be used as the email.
|
|
128
|
+
values:
|
|
129
|
+
- Any valid email address value
|
|
130
|
+
example: example@domain.com
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{{- $pctx := . -}}
|
|
2
|
+
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
|
3
|
+
{{- $pages := slice -}}
|
|
4
|
+
{{- if or $.IsHome $.IsSection -}}
|
|
5
|
+
{{- $pages = $pctx.RegularPages -}}
|
|
6
|
+
{{- else -}}
|
|
7
|
+
{{- $pages = $pctx.Pages -}}
|
|
8
|
+
{{- end -}}
|
|
9
|
+
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
|
10
|
+
{{- if ge $limit 1 -}}
|
|
11
|
+
{{- $pages = $pages | first $limit -}}
|
|
12
|
+
{{- end -}}
|
|
13
|
+
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
|
14
|
+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
15
|
+
<channel>
|
|
16
|
+
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
|
17
|
+
<link>{{ .Permalink }}</link>
|
|
18
|
+
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
|
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 }}
|
|
23
|
+
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
|
24
|
+
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
|
25
|
+
{{- with .OutputFormats.Get "RSS" -}}
|
|
26
|
+
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
|
27
|
+
{{- end -}}
|
|
28
|
+
{{ range $pages }}
|
|
29
|
+
<item>
|
|
30
|
+
<title>{{ .Title }}</title>
|
|
31
|
+
<link>{{ .Permalink }}</link>
|
|
32
|
+
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
|
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>
|
|
35
|
+
{{ else }}
|
|
36
|
+
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
|
37
|
+
{{ end }}
|
|
38
|
+
<guid>{{ .Permalink }}</guid>
|
|
39
|
+
<description>{{ .Summary | html }}</description>
|
|
40
|
+
</item>
|
|
41
|
+
{{ end }}
|
|
42
|
+
</channel>
|
|
43
|
+
</rss>
|
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.141",
|
|
8
8
|
"bugs": {
|
|
9
9
|
"url": "https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/-/issues"
|
|
10
10
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"readmeFilename": "README.md",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"axios": "^0.21.1",
|
|
27
|
-
"eclipsefdn-solstice-assets": "0.0.
|
|
27
|
+
"eclipsefdn-solstice-assets": "0.0.186",
|
|
28
28
|
"json2yaml": "^1.1.0",
|
|
29
29
|
"parse-link-header": "^1.0.1",
|
|
30
30
|
"toml": "^3.0.0"
|