eclipsefdn-hugo-solstice-theme 0.0.143 → 0.0.146

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.
@@ -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"
@@ -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
- <td>{{.time | safeHTML }}</td>
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.143",
7
+ "version": "0.0.146",
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.188",
27
+ "eclipsefdn-solstice-assets": "0.0.191",
28
28
  "json2yaml": "^1.1.0",
29
29
  "toml": "^3.0.0"
30
30
  },