@@ -17,7 +17,7 @@ <h2>Program</h2>
17
17
{{ if eq $p nil }}
18
18
{{ $p = $e }}
19
19
{{ end }}
20
-
20
+
21
21
{{- if $e.startdate -}}
22
22
{{/* {{- range where $.Site.Pages "Type" "talk" -}} */}}
23
23
{{ if (where (readDir (printf "content/events/%s/" $e.name)) "Name" "program") }}
@@ -106,6 +106,7 @@ <h2>Program</h2>
106
106
{{- end -}}
107
107
{{- if $e.timezone -}}
108
108
< script >
109
+ var eventTimezone = "{{ $e.timezone }}" ;
109
110
var eventTimeOffset = ( Intl . DateTimeFormat ( userLang , { timeZone : "{{ $e.timezone }}" , timeZoneName : 'longOffset' } ) . formatToParts ( ) . find ( part => part . type === 'timeZoneName' ) . value ) . slice ( 3 , 99 ) ;
110
111
var eventTimeAbbreviation = Intl . DateTimeFormat ( userLang , { timeZone : "{{ $e.timezone }}" , timeZoneName : 'short' } ) . formatToParts ( ) . find ( part => part . type === 'timeZoneName' ) . value ;
111
112
</ script >
@@ -159,13 +160,15 @@ <h5 class="mb-0">
159
160
</ script >
160
161
{{- end -}}
161
162
< script >
162
- document . write ( "<strong>" ) ;
163
- document . write ( String ( localstarttime . getHours ( ) ) . padStart ( 2 , "0" ) + ":" + String ( localstarttime . getMinutes ( ) ) . padStart ( 2 , "0" ) ) ;
164
- document . write ( " - " ) ;
165
- document . write ( String ( localendtime . getHours ( ) ) . padStart ( 2 , "0" ) + ":" + String ( localendtime . getMinutes ( ) ) . padStart ( 2 , "0" ) ) ;
166
- document . write ( " " ) ;
167
- document . write ( userTimeAbbreviation ) ;
168
- document . write ( "</strong>" ) ;
163
+ if ( userTimeZone != eventTimezone ) {
164
+ document . write ( "<abbr title='" + userTimeZone + "'>" ) ;
165
+ document . write ( String ( localstarttime . getHours ( ) ) . padStart ( 2 , "0" ) + ":" + String ( localstarttime . getMinutes ( ) ) . padStart ( 2 , "0" ) ) ;
166
+ document . write ( " - " ) ;
167
+ document . write ( String ( localendtime . getHours ( ) ) . padStart ( 2 , "0" ) + ":" + String ( localendtime . getMinutes ( ) ) . padStart ( 2 , "0" ) ) ;
168
+ document . write ( " " ) ;
169
+ document . write ( userTimeAbbreviation ) ;
170
+ document . write ( "</abbr>" ) ;
171
+ }
169
172
</ script >
170
173
{{- end -}}
171
174
</ div >
@@ -179,7 +182,7 @@ <h5 class="mb-0">
179
182
{{- if .comments -}}
180
183
< span class ="program-page-desc "> {{ .comments | markdownify }}< br /> </ span >
181
184
{{- end -}}
182
- {{- else if or (eq .type "talk") (eq .type "workshop") -}}
185
+ {{- else if or (eq .type "talk") (eq .type "workshop") -}}
183
186
{{- if .custom_url -}}
184
187
< a href ="{{ .custom_url | safeURL }} "> {{ $.Scratch.Get (printf "%s-speaker" .title) }} - {{ $.Scratch.Get .title }}</ a > < br />
185
188
{{- else -}}
@@ -188,12 +191,12 @@ <h5 class="mb-0">
188
191
{{- if eq ($.Scratch.Get "icons") "TRUE" -}}
189
192
{{- with ($.Scratch.Get (printf "%s-video_link" .title)) -}} < a href ="{{ . }} "> < i class ="fa-solid fa-video " aria-hidden ="true "> </ i > Video</ a > {{- end -}}
190
193
{{- with ($.Scratch.Get (printf "%s-slides_link" .title)) -}} < a href ="{{ . }} "> < i class ="fa-regular fa-file-lines " aria-hidden ="true "> </ i > Slides</ a > </ a > {{- end -}}
191
- {{- end -}}
192
- {{- if .comments -}}
193
- < span class ="program-page-desc "> {{ .comments | markdownify }}< br /> </ span >
194
- {{- end -}}
194
+ {{- end -}}
195
+ {{- if .comments -}}
196
+ < span class ="program-page-desc "> {{ .comments | markdownify }}< br /> </ span >
197
+ {{- end -}}
195
198
196
- {{- else if eq .type "ignite" -}}
199
+ {{- else if eq .type "ignite" -}}
197
200
{{ .title }}
198
201
<!-- new ignite code start -->
199
202
< ul class = "list-unstyled ">
@@ -205,10 +208,10 @@ <h5 class="mb-0">
205
208
< a href ="/events/{{ $e.name }}/program/{{ .title }} "> {{ $.Scratch.Get (printf "%s-speaker" .title) }} - {{ $.Scratch.Get .title }}</ a >
206
209
{{- if eq ($.Scratch.Get "icons") "TRUE" -}}
207
210
{{- with ($.Scratch.Get (printf "%s-video_link" .title)) -}} < a href ="{{ . }} "> < i class ="fa-solid fa-video " aria-hidden ="true "> </ i > Video</ a > {{- end -}}
208
- {{- with ($.Scratch.Get (printf "%s-slides_link" .title)) -}} < a href ="{{ . }} "> < i class ="fa-regular fa-file-lines " aria-hidden ="true "> </ i > Slides</ a > </ a > {{- end -}}
209
-
211
+ {{- with ($.Scratch.Get (printf "%s-slides_link" .title)) -}} < a href ="{{ . }} "> < i class ="fa-regular fa-file-lines " aria-hidden ="true "> </ i > Slides</ a > </ a > {{- end -}}
212
+
210
213
{{- end -}}
211
-
214
+
212
215
</ li >
213
216
{{- end -}}
214
217
{{- end -}}
@@ -219,9 +222,9 @@ <h5 class="mb-0">
219
222
< a href ="/events/{{ $e.name }}/program/{{ .title }} "> {{ $.Scratch.Get (printf "%s-speaker" .title) }} - {{ $.Scratch.Get .title }}</ a >
220
223
{{- if eq ($.Scratch.Get "icons") "TRUE" -}}
221
224
{{- with ($.Scratch.Get (printf "%s-video_link" .title)) -}} < a href ="{{ . }} "> < i class ="fa-solid fa-video " aria-hidden ="true "> </ i > Video</ a > {{- end -}}
222
- {{- with ($.Scratch.Get (printf "%s-slides_link" .title)) -}} < a href ="{{ . }} "> < i class ="fa-regular fa-file-lines " aria-hidden ="true "> </ i > Slides</ a > </ a > {{- end -}}
225
+ {{- with ($.Scratch.Get (printf "%s-slides_link" .title)) -}} < a href ="{{ . }} "> < i class ="fa-regular fa-file-lines " aria-hidden ="true "> </ i > Slides</ a > </ a > {{- end -}}
223
226
{{- end -}}
224
-
227
+
225
228
</ li >
226
229
{{- end -}}
227
230
{{- end -}}
0 commit comments