eclipsefdn-hugo-solstice-theme 0.0.141 → 0.0.144
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/_index.es.md +1 -1
- package/exampleSite/content/_index.fr.md +2 -1
- package/exampleSite/content/components/agenda.md +14 -0
- package/exampleSite/data/en/active/agenda_dynamic_time.yml +20 -0
- package/layouts/partials/head.html +1 -1
- package/layouts/shortcodes/events/agenda.html +4 -2
- package/package.json +2 -3
|
@@ -4,7 +4,7 @@ seo_title: "hugo-solstice-theme"
|
|
|
4
4
|
#headline: "hugo-solstice-theme"
|
|
5
5
|
#subtitle: "Subtitle"
|
|
6
6
|
#seo_title: "Home"
|
|
7
|
-
description: "This is an example of the Eclipse Foundation Solstice theme for Hugo."
|
|
7
|
+
# description: "This is an example of the Eclipse Foundation Solstice theme for Hugo."
|
|
8
8
|
#tagline: "Tagline"
|
|
9
9
|
#links: [[href: "about/", text: "About"], [href: "news/", text: "News"]]
|
|
10
10
|
date: 2018-04-05T15:50:25-04:00
|
|
@@ -4,7 +4,8 @@ seo_title: "hugo-solstice-theme"
|
|
|
4
4
|
#headline: "hugo-solstice-theme"
|
|
5
5
|
#subtitle: "Subtitle"
|
|
6
6
|
#seo_title: "Home"
|
|
7
|
-
description: "This is an example of the Eclipse Foundation Solstice theme for Hugo."
|
|
7
|
+
# description: "This is an example of the Eclipse Foundation Solstice theme for Hugo."
|
|
8
|
+
summary: "<p>This is only to show Hugo plainify functionality. We should NOT include any HTML tags here.</p>"
|
|
8
9
|
#tagline: "Tagline"
|
|
9
10
|
#links: [[href: "about/", text: "About"], [href: "news/", text: "News"]]
|
|
10
11
|
date: 2018-04-05T15:50:25-04:00
|
|
@@ -111,6 +111,20 @@ Adding a "times" list into the items in agenda.yaml above will show multiple tim
|
|
|
111
111
|
|
|
112
112
|
---
|
|
113
113
|
|
|
114
|
+
## Dynamic time based on user's timezone
|
|
115
|
+
|
|
116
|
+
Targets ./data/en/active/agenda_dynamic_time.yaml:
|
|
117
|
+
|
|
118
|
+
Set "dynamicTime" property to true to enable dynamic time.
|
|
119
|
+
|
|
120
|
+
If "timezone" is not set, it will take "GMT-04" as the default value. If the timezone for input time is different, please add it and set the value in this format: GMT-[xx] or GMT+[xx].
|
|
121
|
+
|
|
122
|
+
The output timezone will always be the user's timezone.
|
|
123
|
+
|
|
124
|
+
{{< events/agenda event="active" src="agenda_dynamic_time">}}
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
114
128
|
## Agenda w/ slides
|
|
115
129
|
|
|
116
130
|
Targets ./data/en/slides/agenda.yaml:
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
dynamicTime: true
|
|
2
|
+
timezone: GMT+01
|
|
3
|
+
types:
|
|
4
|
+
- name: Demo
|
|
5
|
+
id: demo
|
|
6
|
+
color: "#66c"
|
|
7
|
+
- name: Keynote
|
|
8
|
+
id: keynote
|
|
9
|
+
color: "#e44"
|
|
10
|
+
items:
|
|
11
|
+
- name: How best to apologize, a workshop
|
|
12
|
+
presenter: Ken Canadian
|
|
13
|
+
time: 15:00-18:00
|
|
14
|
+
type: demo
|
|
15
|
+
vod: "#1"
|
|
16
|
+
- name: How to 'how to'
|
|
17
|
+
presenter: Jim Bob
|
|
18
|
+
time: 18:00-19:00
|
|
19
|
+
type: keynote
|
|
20
|
+
vod: "#2"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<meta name="robots" content="noindex">
|
|
25
25
|
<meta http-equiv="refresh" content="0; url={{ .Page.Params.redirect_url }}" />
|
|
26
26
|
{{ end }}
|
|
27
|
-
{{- with .Description | default .
|
|
27
|
+
{{- with .Description | default .Page.Params.summary | default .Site.Params.description | plainify }}
|
|
28
28
|
{{- with . | replaceRE "{{[\\s\\S]*?}}" " " | truncate 160 }}
|
|
29
29
|
<meta name="description" content="{{ . }}">
|
|
30
30
|
<meta property="og:description" content="{{ . }}">
|
|
@@ -175,8 +175,10 @@ span.eclipsefdn-agenda-legend-icon-{{ urlize .id }}::after {
|
|
|
175
175
|
{{end}}
|
|
176
176
|
</ul>
|
|
177
177
|
</td>
|
|
178
|
+
{{else if $agendabase.dynamicTime}}
|
|
179
|
+
<td class="dynamic-time" data-tz="{{ $agendabase.timezone | default "GMT-04" }}">{{.time | safeHTML }}</td>
|
|
178
180
|
{{else}}
|
|
179
|
-
|
|
181
|
+
<td class="static-time">{{.time | safeHTML }}</td>
|
|
180
182
|
{{end}}
|
|
181
183
|
{{ end }}
|
|
182
184
|
<!-- Write the slide column if it has been set -->
|
|
@@ -206,4 +208,4 @@ span.eclipsefdn-agenda-legend-icon-{{ urlize .id }}::after {
|
|
|
206
208
|
<!-- Close tab content section -->
|
|
207
209
|
</div>
|
|
208
210
|
{{ end }}
|
|
209
|
-
</div>
|
|
211
|
+
</div>
|
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.144",
|
|
8
8
|
"bugs": {
|
|
9
9
|
"url": "https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/-/issues"
|
|
10
10
|
},
|
|
@@ -24,9 +24,8 @@
|
|
|
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.188",
|
|
28
28
|
"json2yaml": "^1.1.0",
|
|
29
|
-
"parse-link-header": "^1.0.1",
|
|
30
29
|
"toml": "^3.0.0"
|
|
31
30
|
},
|
|
32
31
|
"browserslist": "last 5 version, > 0.2%, not dead, IE 11"
|