jekyll-theme-conference 5.3.0 → 5.4.1
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.
- checksums.yaml +4 -4
- data/README.md +96 -49
- data/UPGRADE_GUIDE.md +16 -1
- data/_data/conference_assets.yml +3 -3
- data/_data/lang.yml +71 -39
- data/_includes/checks.html +9 -1
- data/_includes/conference_config.json +15 -10
- data/_includes/embed_consent.html +1 -1
- data/_includes/footer.html +2 -1
- data/_includes/get_edition.html +15 -0
- data/_includes/get_link.html +1 -1
- data/_includes/get_link_active.html +3 -1
- data/_includes/get_link_tag_streaming.html +24 -6
- data/_includes/get_live_timestamps.html +19 -6
- data/_includes/get_menu.html +2 -2
- data/_includes/get_page_title.html +2 -2
- data/_includes/get_pwa_icon.html +10 -0
- data/_includes/get_talk_timestamp.html +11 -6
- data/_includes/header.html +10 -9
- data/_includes/infobox.html +6 -6
- data/_includes/list_header_meta.html +1 -1
- data/_includes/list_header_pwa.html +11 -12
- data/_includes/modal_link.html +4 -3
- data/_includes/modal_live.html +5 -52
- data/_includes/navbar.html +10 -9
- data/_includes/navbar_pwa.html +9 -8
- data/_includes/pwa_install.html +4 -4
- data/_includes/pwa_toasts.html +40 -0
- data/_includes/show_link_buttons.html +5 -5
- data/_includes/show_menu_items.html +1 -1
- data/_includes/show_stream.html +63 -0
- data/_layouts/home.html +3 -3
- data/_layouts/htaccess.html +20 -7
- data/_layouts/json-site.html +22 -2
- data/_layouts/live.html +26 -0
- data/_layouts/location.html +2 -2
- data/_layouts/manifest.html +31 -11
- data/_layouts/not-found.html +33 -0
- data/_layouts/page.html +1 -1
- data/_layouts/program.html +1 -1
- data/_layouts/speaker-overview.html +1 -1
- data/_layouts/speaker.html +1 -1
- data/_layouts/sw.js +200 -52
- data/_sass/bootstrap.scss +1 -0
- data/_sass/theme.scss +183 -124
- data/assets/css/conference-only.bundle.css +1 -1
- data/assets/css/conference.bundle.css +1 -1
- data/assets/js/conference.bundle.js +2 -2
- metadata +6 -3
- data/_includes/pwa_banner.html +0 -29
- data/_layouts/stream-overview.html +0 -45
|
@@ -10,10 +10,15 @@
|
|
|
10
10
|
|
|
11
11
|
{%- include get_location_config.html -%}
|
|
12
12
|
{%- if location_map %}
|
|
13
|
+
{%- comment -%}
|
|
14
|
+
Numbers as numbers, also from a YAML list (e.g. [47.37, 8.54]) or a
|
|
15
|
+
quoted value: a malformed value must not break the JSON (all modules)
|
|
16
|
+
{%- endcomment -%}
|
|
17
|
+
{%- assign home_coord = location_map.home_coord | default: '47.3744489, 8.5410422' | join: "," | split: "," -%}
|
|
13
18
|
"map": {
|
|
14
19
|
"map_provider": {{ location_map.map_provider | default: 'OpenStreetMap.Mapnik' | jsonify }},
|
|
15
|
-
"home_coord": [{{
|
|
16
|
-
"default_zoom": {{ location_map.default_zoom | default: 17 }}
|
|
20
|
+
"home_coord": [{{ home_coord[0] | strip | plus: 0 | jsonify }}, {{ home_coord[1] | strip | plus: 0 | jsonify }}],
|
|
21
|
+
"default_zoom": {{ location_map.default_zoom | default: 17 | plus: 0 | jsonify }}
|
|
17
22
|
{%- if location_map.script %},
|
|
18
23
|
"script": {{ location_map.script | prepend: '/assets/js/' | prepend: site.baseurl | jsonify }}
|
|
19
24
|
{%- endif %}
|
|
@@ -41,15 +46,15 @@
|
|
|
41
46
|
|
|
42
47
|
{% if edition_live.streaming.enable -%}
|
|
43
48
|
"stream": {
|
|
44
|
-
"pause": {{ edition_live.streaming.pause | default: 60 }},
|
|
45
|
-
"prepend": {{ edition_live.streaming.prepend | default: 5 }},
|
|
46
|
-
"extend": {{ edition_live.streaming.extend | default: 5 }}
|
|
49
|
+
"pause": {{ edition_live.streaming.pause | default: 60 | plus: 0 | jsonify }},
|
|
50
|
+
"prepend": {{ edition_live.streaming.prepend | default: 5 | plus: 0 | jsonify }},
|
|
51
|
+
"extend": {{ edition_live.streaming.extend | default: 5 | plus: 0 | jsonify }}
|
|
47
52
|
},
|
|
48
53
|
{%- endif %}
|
|
49
54
|
|
|
50
55
|
{% if site.conference.pwa -%}
|
|
51
56
|
"pwa": {
|
|
52
|
-
"enable": {{ site.conference.pwa.enable | default: false }}
|
|
57
|
+
"enable": {{ site.conference.pwa.enable | default: false | jsonify }}
|
|
53
58
|
},
|
|
54
59
|
{%- endif %}
|
|
55
60
|
|
|
@@ -63,7 +68,7 @@
|
|
|
63
68
|
"soon": {{ lang.live.time.soon | default: "soon" | jsonify }},
|
|
64
69
|
"now": {{ lang.live.time.now | default: "now" | jsonify }},
|
|
65
70
|
"in": {{ lang.live.time.in | default: "in" | append: " " | jsonify }},
|
|
66
|
-
"since": {{ lang.live.time.since | default: "
|
|
71
|
+
"since": {{ lang.live.time.since | default: "for" | append: " " | jsonify }},
|
|
67
72
|
"weeks": {{ lang.live.time.weeks | default: "weeks" | jsonify }},
|
|
68
73
|
"week": {{ lang.live.time.week | default: "week" | jsonify }},
|
|
69
74
|
"days": {{ lang.live.time.days | default: "days" | jsonify }},
|
|
@@ -75,9 +80,9 @@
|
|
|
75
80
|
}
|
|
76
81
|
},
|
|
77
82
|
"stream": {
|
|
78
|
-
"pre_stream": {{ lang.live.pre_stream | default: "
|
|
79
|
-
"post_stream": {{ lang.live.post_stream | default: "
|
|
80
|
-
"pause_stream": {{ lang.live.pause_stream | default: "
|
|
83
|
+
"pre_stream": {{ lang.live.pre_stream | default: "The live stream hasn't started yet." | jsonify }},
|
|
84
|
+
"post_stream": {{ lang.live.post_stream | default: "The live stream has ended." | jsonify }},
|
|
85
|
+
"pause_stream": {{ lang.live.pause_stream | default: "The live stream is paused." | jsonify }}
|
|
81
86
|
}
|
|
82
87
|
}
|
|
83
88
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<div class="embed-consent d-flex flex-column justify-content-center align-items-center text-center p-4 bg-body-tertiary{% if include.hidden %} d-none{% endif %}" data-embed-consent>
|
|
12
12
|
<p class="mb-3">
|
|
13
13
|
{{ embed_lang.privacy | default: "This content is loaded from an external provider, which receives your IP address:" }}
|
|
14
|
-
<a href="{{ include.href | escape }}" rel="noopener" data-embed-host>{{ embed_host[2] | escape }}</a>
|
|
14
|
+
<a href="{{ include.href | escape }}" class="link-body-emphasis" rel="noopener" data-embed-host>{{ embed_host[2] | escape }}</a>
|
|
15
15
|
</p>
|
|
16
16
|
<button type="button" class="consent-button btn btn-primary" data-embed-load>
|
|
17
17
|
{% include icon.html name="play-fill" %}
|
data/_includes/footer.html
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
</main>
|
|
3
3
|
|
|
4
4
|
<footer class="footer-pwa">
|
|
5
|
+
{%- include pwa_toasts.html -%}
|
|
5
6
|
{%- include navbar_pwa.html -%}
|
|
6
7
|
</footer>
|
|
7
8
|
{{- pwa_sheets }}
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
{%- include modal_link.html -%}
|
|
10
11
|
{%- include pwa_install.html -%}
|
|
11
12
|
|
|
12
|
-
{%- if edition_live.streaming.enable -%}
|
|
13
|
+
{%- if edition_live.streaming.enable and page.layout != "live" -%}
|
|
13
14
|
{%- include modal_live.html -%}
|
|
14
15
|
{%- endif -%}
|
|
15
16
|
|
data/_includes/get_edition.html
CHANGED
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
edition_info_bars, edition_info_modals, edition_tracks, edition_tags:
|
|
18
18
|
the edition's setting, else the site's
|
|
19
19
|
- edition_live: `conference.live` on the current edition, else nil
|
|
20
|
+
- edition_live_page: with streaming, the edition's page with `layout:
|
|
21
|
+
live`, else nil
|
|
20
22
|
{%- endcomment -%}
|
|
21
23
|
{%- assign edition = nil -%}
|
|
22
24
|
{%- assign edition_config = nil -%}
|
|
@@ -83,3 +85,16 @@
|
|
|
83
85
|
{%- if edition_current -%}
|
|
84
86
|
{%- assign edition_live = site.conference.live -%}
|
|
85
87
|
{%- endif -%}
|
|
88
|
+
|
|
89
|
+
{%- assign edition_live_page = nil -%}
|
|
90
|
+
{%- if edition_live.streaming.enable -%}
|
|
91
|
+
{%- assign edition_key = edition | append: "" -%}
|
|
92
|
+
{%- assign live_pages = site.pages | where: "layout", "live" -%}
|
|
93
|
+
{%- for live_page in live_pages -%}
|
|
94
|
+
{%- assign live_page_edition = live_page.edition | append: "" -%}
|
|
95
|
+
{%- if live_page_edition == edition_key -%}
|
|
96
|
+
{%- assign edition_live_page = live_page -%}
|
|
97
|
+
{%- break -%}
|
|
98
|
+
{%- endif -%}
|
|
99
|
+
{%- endfor -%}
|
|
100
|
+
{%- endif -%}
|
data/_includes/get_link.html
CHANGED
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
|
|
142
142
|
{%- elsif link.live -%}
|
|
143
143
|
{%- if edition_live and edition_live.streaming.enable -%}
|
|
144
|
-
{% include get_link_tag_streaming.html class=link_class %}
|
|
144
|
+
{% include get_link_tag_streaming.html class=link_class is_active=include.is_active %}
|
|
145
145
|
{%- else-%}
|
|
146
146
|
<a
|
|
147
147
|
class="{{ link_class }}"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{%- comment -%}
|
|
2
2
|
Whether the navigation link `link` leads to the current page or its
|
|
3
3
|
section, e.g. /talks/ on /talks/x/; room pages belong to the location
|
|
4
|
-
page. Sets is_active.
|
|
4
|
+
page, live links to the live page. Sets is_active.
|
|
5
5
|
{%- endcomment -%}
|
|
6
6
|
{%- assign link_url = nil -%}
|
|
7
7
|
{%- if link.relative_url -%}
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
{%- assign is_active = true -%}
|
|
13
13
|
{%- elsif page.layout == "room" and location_url and link_url == location_url -%}
|
|
14
14
|
{%- assign is_active = true -%}
|
|
15
|
+
{%- elsif link.live and page.layout == "live" -%}
|
|
16
|
+
{%- assign is_active = true -%}
|
|
15
17
|
{%- else -%}
|
|
16
18
|
{%- assign is_active = false -%}
|
|
17
19
|
{%- endif -%}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{%- assign stream_label = site.data.lang[site.conference.lang].live.stream | default: "Live
|
|
1
|
+
{%- assign stream_label = site.data.lang[site.conference.lang].live.stream | default: "Live stream" -%}
|
|
2
2
|
|
|
3
3
|
{%- if edition_live.streaming.external -%}
|
|
4
4
|
<a
|
|
5
5
|
class="{{ include.class }}"
|
|
6
6
|
href="{{ edition_live.streaming.external }}"
|
|
7
|
-
title="{{ stream_label }}"
|
|
7
|
+
title="{{ stream_label | escape }}"
|
|
8
8
|
>
|
|
9
9
|
{%- else -%}
|
|
10
10
|
{%- if r -%}
|
|
@@ -12,13 +12,31 @@
|
|
|
12
12
|
{%- else -%}
|
|
13
13
|
{% assign data_room = edition_rooms | first %}
|
|
14
14
|
{%- endif -%}
|
|
15
|
+
|
|
16
|
+
{%- comment -%}
|
|
17
|
+
The live page with the room, e.g. /live/?room=Room+A (the app opens it
|
|
18
|
+
instead of the modal, see _js/modules/stream.js); on it, no modal
|
|
19
|
+
{%- endcomment -%}
|
|
20
|
+
{%- assign stream_href = "#" -%}
|
|
21
|
+
{%- if edition_live_page -%}
|
|
22
|
+
{%- assign stream_href = edition_live_page.url | prepend: site.baseurl -%}
|
|
23
|
+
{%- if r -%}
|
|
24
|
+
{%- assign room_param = r.name | url_encode -%}
|
|
25
|
+
{%- assign stream_href = stream_href | append: "?room=" | append: room_param -%}
|
|
26
|
+
{%- endif -%}
|
|
27
|
+
{%- endif -%}
|
|
15
28
|
<a
|
|
16
|
-
class="{{ include.class }}"
|
|
17
|
-
href="
|
|
18
|
-
title="{{ stream_label }}"
|
|
29
|
+
class="{{ include.class }}{% if include.is_active %} active{% endif %}"
|
|
30
|
+
href="{{ stream_href | escape }}"
|
|
31
|
+
title="{{ stream_label | escape }}"
|
|
32
|
+
{%- if include.is_active %}
|
|
33
|
+
aria-current="page"
|
|
34
|
+
{%- endif %}
|
|
35
|
+
{%- unless page.layout == "live" %}
|
|
19
36
|
data-bs-toggle="modal"
|
|
20
37
|
data-bs-target="#stream-modal"
|
|
21
|
-
data-room="{{ data_room.name | escape }}"
|
|
22
38
|
aria-haspopup="dialog"
|
|
39
|
+
{%- endunless %}
|
|
40
|
+
data-room="{{ data_room.name | escape }}"
|
|
23
41
|
>
|
|
24
42
|
{%- endif -%}
|
|
@@ -20,12 +20,16 @@
|
|
|
20
20
|
{%- include get_talk_timestamp.html -%}
|
|
21
21
|
|
|
22
22
|
{%- assign last_pause = timestamp_start | minus: last_end -%}
|
|
23
|
+
{%- assign starts_block = false -%}
|
|
24
|
+
{%- if forloop.index0 == 0 or last_pause >= min_pause -%}
|
|
25
|
+
{%- assign starts_block = true -%}
|
|
26
|
+
{%- endif -%}
|
|
23
27
|
|
|
24
|
-
{%-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
{%- comment -%}
|
|
29
|
+
A long pause ends the previous block, before the talk starts a new
|
|
30
|
+
one (also the room's last talk): one end per start, in order
|
|
31
|
+
{%- endcomment -%}
|
|
32
|
+
{%- if starts_block and forloop.index0 > 0 -%}
|
|
29
33
|
{%- assign live_end = offset_end | times: 60 | plus: last_end %}
|
|
30
34
|
{%- if live_ends == "" -%}
|
|
31
35
|
{%- assign live_ends = live_end -%}
|
|
@@ -34,7 +38,7 @@
|
|
|
34
38
|
{%- endif -%}
|
|
35
39
|
{%- endif -%}
|
|
36
40
|
|
|
37
|
-
{%- if
|
|
41
|
+
{%- if starts_block -%}
|
|
38
42
|
{%- assign live_start = offset_start | times: -60 | plus: timestamp_start -%}
|
|
39
43
|
{%- if live_starts == "" -%}
|
|
40
44
|
{%- assign live_starts = live_start -%}
|
|
@@ -43,6 +47,15 @@
|
|
|
43
47
|
{%- endif -%}
|
|
44
48
|
{%- endif -%}
|
|
45
49
|
|
|
50
|
+
{%- if forloop.last -%}
|
|
51
|
+
{%- assign live_end = offset_end | times: 60 | plus: timestamp_end %}
|
|
52
|
+
{%- if live_ends == "" -%}
|
|
53
|
+
{%- assign live_ends = live_end -%}
|
|
54
|
+
{%- else -%}
|
|
55
|
+
{%- assign live_ends = live_ends | append: "," | append: live_end -%}
|
|
56
|
+
{%- endif -%}
|
|
57
|
+
{%- endif -%}
|
|
58
|
+
|
|
46
59
|
{%- assign last_end = timestamp_end -%}
|
|
47
60
|
{%- endfor -%}
|
|
48
61
|
{%- endfor -%}
|
data/_includes/get_menu.html
CHANGED
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
{%- assign menu_empty = false -%}
|
|
20
20
|
|
|
21
21
|
{%- if menu_links == "editions" -%}
|
|
22
|
-
{%-
|
|
22
|
+
{%- unless site.conference.editions.size > 1 -%}
|
|
23
23
|
{%- assign menu_empty = true -%}
|
|
24
|
-
{%-
|
|
24
|
+
{%- endunless -%}
|
|
25
25
|
{%- assign menu_name = menu_name | default: edition_nav_editions.name -%}
|
|
26
26
|
{%- unless menu_name -%}
|
|
27
27
|
{%- assign menu_name = edition -%}
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
{{- site.data.lang[site.conference.lang].program.title | default: "Program" -}}
|
|
17
17
|
{%- elsif page.layout == 'speaker-overview' -%}
|
|
18
18
|
{{- site.data.lang[site.conference.lang].speaker.overview | default: "Speakers" -}}
|
|
19
|
-
{%- elsif page.layout == '
|
|
20
|
-
{{ site.data.lang[site.conference.lang].live.stream | default: "Live
|
|
19
|
+
{%- elsif page.layout == 'live' -%}
|
|
20
|
+
{{- site.data.lang[site.conference.lang].live.stream | default: "Live stream" -}}
|
|
21
21
|
{%- elsif page.layout == 'talk-overview' -%}
|
|
22
22
|
{{- site.data.lang[site.conference.lang].talk.overview | default: "Talks" -}}
|
|
23
23
|
{%- endif -%}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{%- comment -%}
|
|
2
|
+
Address of an icon of the app (`pwa.icons`: a file name or an object with
|
|
3
|
+
`img`, below /assets/images/), else of the first one: pwa_icon_url, e.g.
|
|
4
|
+
"/assets/images/icon.png"; nil without icons. Input: include.icon
|
|
5
|
+
{%- endcomment -%}
|
|
6
|
+
{%- assign pwa_icon = include.icon | default: site.conference.pwa.icons.first -%}
|
|
7
|
+
{%- assign pwa_icon_url = nil -%}
|
|
8
|
+
{%- if pwa_icon -%}
|
|
9
|
+
{%- assign pwa_icon_url = pwa_icon.img | default: pwa_icon | prepend: "/assets/images/" | prepend: site.baseurl -%}
|
|
10
|
+
{%- endif -%}
|
|
@@ -3,10 +3,15 @@
|
|
|
3
3
|
{%- comment -%}
|
|
4
4
|
Parsed in the site's timezone (Jekyll `timezone` sets TZ during the build)
|
|
5
5
|
{%- endcomment -%}
|
|
6
|
-
{%-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
{%- comment -%}
|
|
7
|
+
Talks after midnight (e.g. 25:30, talk_start_day 1) on the following date,
|
|
8
|
+
counted from noon: whole days of 24 hours would be off by one hour across
|
|
9
|
+
a change to or from daylight saving time
|
|
10
|
+
{%- endcomment -%}
|
|
11
|
+
{%- assign add_days_start = talk_start_day | times: 86400 -%}
|
|
12
|
+
{%- assign date_start = d.date | append: "T12:00:00" | date: "%s" | plus: add_days_start | date: "%Y-%m-%d" -%}
|
|
13
|
+
{%- assign timestamp_start = date_start | append: "T" | append: talk_start | append: ":00" | date: "%s" -%}
|
|
9
14
|
|
|
10
|
-
{%- assign
|
|
11
|
-
{%- assign
|
|
12
|
-
{%- assign timestamp_end =
|
|
15
|
+
{%- assign add_days_end = talk_end_day | times: 86400 -%}
|
|
16
|
+
{%- assign date_end = d.date | append: "T12:00:00" | date: "%s" | plus: add_days_end | date: "%Y-%m-%d" -%}
|
|
17
|
+
{%- assign timestamp_end = date_end | append: "T" | append: talk_end | append: ":00" | date: "%s" -%}
|
data/_includes/header.html
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{%- include get_edition.html -%}
|
|
2
2
|
<!DOCTYPE html>
|
|
3
|
-
<html lang="{{ site.conference.lang | default: 'en' }}">
|
|
3
|
+
<html lang="{{ site.conference.lang | default: 'en' }}"{% if site.conference.pwa.enable %} data-pwa-enable{% endif %}>
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
6
|
<meta charset="utf-8" />
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<title>
|
|
11
11
|
{{- page_title | escape -}}
|
|
12
12
|
{%- unless page_title == empty %} - {% endunless -%}
|
|
13
|
-
{{- edition_title -}}
|
|
13
|
+
{{- edition_title | escape -}}
|
|
14
14
|
</title>
|
|
15
15
|
{% include list_header_meta.html %}
|
|
16
16
|
|
|
@@ -34,31 +34,32 @@
|
|
|
34
34
|
|
|
35
35
|
{%- comment -%}
|
|
36
36
|
Before the first paint (no flash): colour mode and installed app (PWA).
|
|
37
|
+
Also keeps Chrome's install prompt, which may come before the deferred
|
|
38
|
+
scripts run (_js/modules/pwa.js shows it from its install toast).
|
|
37
39
|
Static content, i.e. one hash for a Content Security Policy (see README).
|
|
38
40
|
{%- endcomment %}
|
|
39
|
-
<script>{ const root = document.documentElement; root.dataset.bsTheme = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; root.dataset.pwa =
|
|
41
|
+
<script>{ const root = document.documentElement; root.dataset.bsTheme = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; root.dataset.pwa = "pwaEnable" in root.dataset && (navigator.standalone === true || matchMedia("(display-mode: standalone)").matches); if ("pwaEnable" in root.dataset) addEventListener("beforeinstallprompt", (event) => { event.preventDefault(); window.conferenceInstallPrompt = event; }); }</script>
|
|
40
42
|
</head>
|
|
41
43
|
|
|
42
44
|
<body class="min-vh-100">
|
|
43
45
|
<a href="#main" class="visually-hidden-focusable position-absolute top-0 start-0">
|
|
44
46
|
{{ site.data.lang[site.conference.lang].navigation.skip_to_content | default: "Skip to content" }}
|
|
45
47
|
</a>
|
|
46
|
-
{%- include pwa_banner.html %}
|
|
47
48
|
<header>
|
|
48
49
|
<!-- navigation bar (web only): -->
|
|
49
50
|
{%- include navbar.html -%}
|
|
50
51
|
|
|
51
52
|
{%- assign home_url = edition_base | append: "/" -%}
|
|
52
53
|
{%- unless page.url == home_url -%}
|
|
53
|
-
<!-- site title (print only): -->
|
|
54
|
+
<!-- site title (print only, not a heading: the page has its own h1): -->
|
|
54
55
|
<div class="container d-none d-print-block mt-4 mb-4">
|
|
55
|
-
<
|
|
56
|
-
{{ edition_title }}
|
|
57
|
-
</
|
|
56
|
+
<p class="display-4">
|
|
57
|
+
{{ edition_title | escape }}
|
|
58
|
+
</p>
|
|
58
59
|
</div>
|
|
59
60
|
{%- endunless -%}
|
|
60
61
|
|
|
61
62
|
</header>
|
|
62
|
-
<main id="main" class="container my-3"
|
|
63
|
+
<main id="main" class="container my-3" tabindex="-1">
|
|
63
64
|
|
|
64
65
|
{%- include infobox.html -%}
|
data/_includes/infobox.html
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
{%- include checks.html -%}
|
|
3
3
|
{%- if errors.size > 0 -%}
|
|
4
4
|
{%- for error in errors %}
|
|
5
|
-
<div class="alert alert-danger fade show"
|
|
6
|
-
<
|
|
5
|
+
<div class="alert alert-danger fade show">
|
|
6
|
+
<p class="alert-heading h5">There was an error when generating the site!</p>
|
|
7
7
|
|
|
8
|
-
{{ error | markdownify }}
|
|
8
|
+
{{ error | markdownify | replace: "<a href=", "<a class='alert-link' href=" }}
|
|
9
9
|
</div>
|
|
10
10
|
{%- endfor -%}
|
|
11
11
|
{%- endif -%}
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
{%- assign dismissal_days = infobar.dismissal_days | default: 7 -%}
|
|
31
31
|
{%- if dismissal_days > 0 -%}
|
|
32
32
|
{%- assign infobar_id = infobar.title | default: '' | append: infobar.text | slugify -%}
|
|
33
|
-
<div class="alert alert-{{ infobar.color }} alert-dismissible fade show"
|
|
33
|
+
<div class="alert alert-{{ infobar.color }} alert-dismissible fade show" data-infobar-id="{{ infobar_id }}" data-infobar-dismiss="{{ dismissal_days | times: 86400 }}">
|
|
34
34
|
{%- else -%}
|
|
35
|
-
<div class="alert alert-{{ infobar.color }} fade show"
|
|
35
|
+
<div class="alert alert-{{ infobar.color }} fade show">
|
|
36
36
|
{%- endif -%}
|
|
37
37
|
|
|
38
38
|
{%- if infobar.title %}
|
|
39
|
-
<
|
|
39
|
+
<p class="alert-heading h4">{{ infobar.title }}</p>
|
|
40
40
|
{%- endif %}
|
|
41
41
|
|
|
42
42
|
{{ infobar.text | markdownify | replace: "<a href=", "<a class='alert-link' href=" }}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<meta name="twitter:description" content="{{ page_description | escape }}" />
|
|
19
19
|
|
|
20
20
|
{%- comment -%} Open Graph tags {%- endcomment -%}
|
|
21
|
-
<meta property="og:site_name" content="{{ edition_title }}" />
|
|
21
|
+
<meta property="og:site_name" content="{{ edition_title | escape }}" />
|
|
22
22
|
{%- if edition_link_preview.img and edition_link_preview.img.open_graph %}
|
|
23
23
|
{%- assign og_image_url = edition_link_preview.img.open_graph | prepend: '/assets/images/' | prepend: site.baseurl | prepend: site.url -%}
|
|
24
24
|
<meta property="og:image" content="{{ og_image_url }}" />
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
{%- if site.conference.pwa and site.conference.pwa.enable -%}
|
|
2
2
|
{%- assign pwa_theme_color = site.conference.pwa.theme_color | default: "#0d6efd" -%}
|
|
3
|
-
{%- assign pwa_icon = site.conference.pwa.icons | first -%}
|
|
4
3
|
|
|
5
|
-
<link rel="manifest" href="{{ site.baseurl }}/manifest.json" />
|
|
6
|
-
<meta name="mobile-web-app-capable" content="yes" />
|
|
7
4
|
{%- if site.conference.pwa.theme_color_dark %}
|
|
8
5
|
<meta name="theme-color" content="{{ pwa_theme_color }}" media="(prefers-color-scheme: light)" />
|
|
9
6
|
<meta name="theme-color" content="{{ site.conference.pwa.theme_color_dark }}" media="(prefers-color-scheme: dark)" />
|
|
10
7
|
{%- else %}
|
|
11
8
|
<meta name="theme-color" content="{{ pwa_theme_color }}" />
|
|
12
9
|
{%- endif %}
|
|
10
|
+
|
|
11
|
+
{%- comment -%}
|
|
12
|
+
On every edition, as iOS adds any page to the home screen: the app then
|
|
13
|
+
starts at the current edition, not the archive (see _layouts/manifest.html)
|
|
14
|
+
{%- endcomment %}
|
|
15
|
+
<link rel="manifest" href="{{ site.baseurl }}/manifest.json" />
|
|
16
|
+
<meta name="mobile-web-app-capable" content="yes" />
|
|
13
17
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
14
18
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
15
|
-
<meta name="apple-mobile-web-app-title" content="{{
|
|
19
|
+
<meta name="apple-mobile-web-app-title" content="{{ site.title | escape }}" />
|
|
16
20
|
|
|
17
|
-
{%
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
{%- assign icon_src = icon -%}
|
|
21
|
-
{%- else -%}
|
|
22
|
-
{%- assign icon_src = icon.img -%}
|
|
23
|
-
{%- endif -%}
|
|
24
|
-
<link rel="apple-touch-icon" href="{{ icon_src | prepend: '/assets/images/' | prepend: site.baseurl }}" />
|
|
21
|
+
{% include get_pwa_icon.html -%}
|
|
22
|
+
{%- if pwa_icon_url -%}
|
|
23
|
+
<link rel="apple-touch-icon" href="{{ pwa_icon_url }}" />
|
|
25
24
|
{%- endif -%}
|
|
26
25
|
{%- endif -%}
|
data/_includes/modal_link.html
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
<div class="modal fade" id="link-modal" tabindex="-1" aria-labelledby="link-modal-label" aria-describedby="link-modal-description" aria-hidden="true" role="dialog">
|
|
2
|
-
<div class="modal-dialog modal-dialog-centered modal-lg">
|
|
2
|
+
<div class="modal-dialog modal-dialog-centered modal-lg modal-fullscreen-sm-down">
|
|
3
3
|
<div class="modal-content">
|
|
4
4
|
<div class="modal-header">
|
|
5
5
|
<div class="modal-title">
|
|
6
|
-
<h2 class="talk-title h3 mb-2" id="link-modal-label"></h2>
|
|
6
|
+
<h2 class="talk-title h3 mb-2 text-break" id="link-modal-label"></h2>
|
|
7
7
|
<p class="talk-speakers mb-0 d-none" id="link-modal-description"></p>
|
|
8
8
|
</div>
|
|
9
9
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="{{ site.data.lang[site.conference.lang].close | default: 'Close' }}"></button>
|
|
10
10
|
</div>
|
|
11
11
|
<div class="modal-body ratio ratio-16x9">
|
|
12
|
-
<iframe referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="{{ site.data.lang[site.conference.lang].more_information | default: 'More
|
|
12
|
+
<iframe referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="{{ site.data.lang[site.conference.lang].more_information | default: 'More information' }}"></iframe>
|
|
13
13
|
{%- include embed_consent.html hidden=true %}
|
|
14
14
|
</div>
|
|
15
15
|
<div class="modal-footer justify-content-start">
|
|
16
16
|
<p></p>
|
|
17
|
+
<button type="button" class="btn btn-secondary w-100 d-sm-none" data-bs-dismiss="modal">{{ site.data.lang[site.conference.lang].close | default: 'Close' }}</button>
|
|
17
18
|
</div>
|
|
18
19
|
</div>
|
|
19
20
|
</div>
|
data/_includes/modal_live.html
CHANGED
|
@@ -1,68 +1,21 @@
|
|
|
1
1
|
{%- assign live_lang = site.data.lang[site.conference.lang].live -%}
|
|
2
2
|
<div class="modal fade" id="stream-modal" tabindex="-1" aria-labelledby="stream-modal-title" aria-describedby="stream-modal-desc" aria-hidden="true" role="dialog">
|
|
3
|
-
<div class="modal-dialog modal-lg">
|
|
3
|
+
<div class="modal-dialog modal-lg modal-fullscreen-sm-down">
|
|
4
4
|
<div class="modal-content">
|
|
5
5
|
|
|
6
6
|
<div class="modal-header">
|
|
7
7
|
<h2 class="modal-title h5" id="stream-modal-title">
|
|
8
|
-
{{ live_lang.stream | default: "Live
|
|
8
|
+
{{ live_lang.stream | default: "Live stream" }}
|
|
9
9
|
</h2>
|
|
10
10
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="{{ site.data.lang[site.conference.lang].close | default: 'Close' }}"></button>
|
|
11
11
|
</div>
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
<iframe referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="{{ live_lang.stream | default: 'Live Stream' }}"></iframe>
|
|
15
|
-
{%- include embed_consent.html hidden=true click_to_load=edition_live.streaming.click_to_load %}
|
|
16
|
-
<div id="stream-placeholder" class="d-none justify-content-center align-items-center" role="status" aria-live="polite" aria-atomic="true">
|
|
17
|
-
<div id="stream-modal-desc"></div>
|
|
18
|
-
<div id="stream-offline" class="d-none">
|
|
19
|
-
{% include icon.html name="wifi-off" %} {{ live_lang.offline | default: "offline" }}
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<div class="modal-footer flex-column justify-content-start d-none" id="stream-info">
|
|
25
|
-
<div class="align-self-start live-time my-0 small" id="stream-info-time" data-time=""></div>
|
|
26
|
-
<div class="align-self-start ps-2 border-start border-4" id="stream-info-color">
|
|
27
|
-
<p class="mb-0">
|
|
28
|
-
<a class="talk-title text-reset link-underline-opacity-0 link-underline-opacity-100-hover" href="#" id="stream-info-talk"></a>
|
|
29
|
-
</p>
|
|
30
|
-
<p class="talk-speakers mb-0" id="stream-info-speakers"></p>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="align-self-center m-0 mt-1 d-none" id="stream-info-links"></div>
|
|
33
|
-
</div>
|
|
13
|
+
{%- include show_stream.html class_body="modal-body" class_footer="modal-footer" %}
|
|
34
14
|
|
|
35
|
-
<div class="modal-footer
|
|
36
|
-
{
|
|
37
|
-
<button type="button" id="stream-button{{ forloop.index }}" class="btn btn-outline-primary d-none d-sm-inline" data-room="{{ room.name | escape }}" aria-pressed="false"{% unless room.live %} disabled{% endunless %}>
|
|
38
|
-
{{ room.name | escape }}
|
|
39
|
-
</button>
|
|
40
|
-
{%- endfor %}
|
|
41
|
-
<div class="w-100 d-block d-sm-none">
|
|
42
|
-
<select class="form-select" id="stream-select" aria-label="{{ site.data.lang[site.conference.lang].location.rooms | default: 'Rooms' }}">
|
|
43
|
-
{%- for room in edition_rooms -%}
|
|
44
|
-
<option value="{{ forloop.index }}"{% unless room.live %} disabled{% endunless %}>{{ room.name | escape }}</option>
|
|
45
|
-
{%- endfor %}
|
|
46
|
-
</select>
|
|
47
|
-
</div>
|
|
15
|
+
<div class="modal-footer d-sm-none">
|
|
16
|
+
<button type="button" class="btn btn-secondary w-100" data-bs-dismiss="modal">{{ site.data.lang[site.conference.lang].close | default: 'Close' }}</button>
|
|
48
17
|
</div>
|
|
49
18
|
|
|
50
|
-
{%- comment -%} Icons of the talks' live links, e.g. for a "Q&A" button {%- endcomment -%}
|
|
51
|
-
{%- assign live_icons = "" | split: "" -%}
|
|
52
|
-
{%- for talk in edition_talks -%}
|
|
53
|
-
{%- for link in talk.links -%}
|
|
54
|
-
{%- if link.live and link.icon -%}
|
|
55
|
-
{%- assign live_icons = live_icons | push: link.icon -%}
|
|
56
|
-
{%- endif -%}
|
|
57
|
-
{%- endfor -%}
|
|
58
|
-
{%- endfor -%}
|
|
59
|
-
{%- assign live_icons = live_icons | uniq %}
|
|
60
|
-
<template id="stream-icons">
|
|
61
|
-
{%- for icon in live_icons -%}
|
|
62
|
-
<span data-icon="{{ icon | escape }}">{% include icon.html name=icon %}</span>
|
|
63
|
-
{%- endfor -%}
|
|
64
|
-
</template>
|
|
65
|
-
|
|
66
19
|
</div>
|
|
67
20
|
</div>
|
|
68
21
|
</div>
|
data/_includes/navbar.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<nav class="navbar navbar-expand-{{ breakpoint }} d-pwa-none bg-body-tertiary mb-3" aria-label="{{ site.data.lang[site.conference.lang].navigation.main | default: 'Main navigation' }}">
|
|
3
3
|
<div class="container">
|
|
4
4
|
|
|
5
|
-
<a class="navbar-brand order-0" href="{{ site.baseurl }}{{ edition_base }}/">{{ edition_title }}</a>
|
|
5
|
+
<a class="navbar-brand order-0" href="{{ site.baseurl }}{{ edition_base }}/">{{ edition_title | escape }}</a>
|
|
6
6
|
|
|
7
7
|
<button class="navbar-toggler order-1" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ site.data.lang[site.conference.lang].navigation.toggle | default: 'Toggle navigation menu' }}">
|
|
8
8
|
<span class="navbar-toggler-icon" aria-hidden="true"></span>
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
{%- unless menu_empty %}
|
|
18
18
|
<li class="nav-item dropdown">
|
|
19
19
|
<a class="nav-link dropdown-toggle" href="#" id="navbar-dropdown{{ forloop.index0 }}" role="button" data-bs-toggle="dropdown" aria-expanded="false"{% if menu_label %} aria-label="{{ menu_label }}"{% endif %}>
|
|
20
|
-
{{ menu_name }}
|
|
20
|
+
{{ menu_name | escape }}
|
|
21
21
|
</a>
|
|
22
|
-
<div class="dropdown-menu"
|
|
22
|
+
<div class="dropdown-menu">
|
|
23
23
|
{%- include show_menu_items.html %}
|
|
24
24
|
</div>
|
|
25
25
|
</li>
|
|
@@ -30,10 +30,11 @@
|
|
|
30
30
|
{%- include get_live_timestamps.html -%}
|
|
31
31
|
|
|
32
32
|
<li class="nav-item live-show d-none d-print-none" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
|
|
33
|
-
{%- include
|
|
33
|
+
{%- include get_link_active.html -%}
|
|
34
|
+
{%- include get_link.html class="nav-link" is_active=is_active -%}
|
|
34
35
|
{{ link_tag }}
|
|
35
36
|
{%- if link.name -%}
|
|
36
|
-
{{ link.name }}
|
|
37
|
+
{{ link.name | escape }}
|
|
37
38
|
{%- else -%}
|
|
38
39
|
{% include get_live_icon.html %}
|
|
39
40
|
{%- endif -%}
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
{%- if link.name_inactive -%}
|
|
44
45
|
<li class="nav-item live-hide d-print-inline-block" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
|
|
45
46
|
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">
|
|
46
|
-
{{ link.name_inactive }}
|
|
47
|
+
{{ link.name_inactive | escape }}
|
|
47
48
|
</a>
|
|
48
49
|
</li>
|
|
49
50
|
{%- endif -%}
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
{%- include get_link_active.html -%}
|
|
56
57
|
{%- include get_link.html class="nav-link" is_active=is_active -%}
|
|
57
58
|
{{ link_tag }}
|
|
58
|
-
{{ link.name }}
|
|
59
|
+
{{ link.name | escape }}
|
|
59
60
|
</a>
|
|
60
61
|
</li>
|
|
61
62
|
{%- endif -%}
|
|
@@ -70,9 +71,9 @@
|
|
|
70
71
|
<ul class="navbar-nav">
|
|
71
72
|
<li class="nav-item dropdown">
|
|
72
73
|
<a class="nav-link dropdown-toggle" href="#" id="navbar-editions" role="button" data-bs-toggle="dropdown" aria-expanded="false"{% if menu_label %} aria-label="{{ menu_label }}"{% endif %}>
|
|
73
|
-
{{ menu_name }}
|
|
74
|
+
{{ menu_name | escape }}
|
|
74
75
|
</a>
|
|
75
|
-
<div class="dropdown-menu dropdown-menu-end"
|
|
76
|
+
<div class="dropdown-menu dropdown-menu-end">
|
|
76
77
|
{%- include show_menu_items.html %}
|
|
77
78
|
</div>
|
|
78
79
|
</li>
|