jekyll-theme-conference 5.2.0 → 5.4.0
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 +100 -50
- data/UPGRADE_GUIDE.md +16 -1
- data/_data/conference_assets.yml +3 -3
- data/_data/lang.yml +67 -39
- data/_includes/checks.html +9 -1
- data/_includes/conference_config.json +4 -4
- data/_includes/embed_consent.html +1 -1
- data/_includes/footer.html +3 -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 +22 -4
- data/_includes/get_live_icon.html +5 -1
- 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_pwa_in.html +26 -0
- data/_includes/header.html +4 -5
- data/_includes/icon.html +12 -3
- data/_includes/infobox.html +6 -6
- data/_includes/list_header_pwa.html +15 -11
- data/_includes/modal_link.html +4 -3
- data/_includes/modal_live.html +5 -52
- data/_includes/navbar.html +4 -3
- data/_includes/navbar_pwa.html +200 -21
- data/_includes/pwa_install.html +4 -4
- data/_includes/pwa_toasts.html +39 -0
- data/_includes/show_link_buttons.html +1 -1
- data/_includes/show_menu_items.html +5 -3
- data/_includes/show_stream.html +63 -0
- data/_layouts/htaccess.html +20 -7
- data/_layouts/json-site.html +15 -1
- data/_layouts/live.html +26 -0
- data/_layouts/location.html +1 -1
- data/_layouts/manifest.html +12 -10
- data/_layouts/not-found.html +23 -0
- data/_layouts/program.html +1 -1
- data/_layouts/speaker.html +1 -1
- data/_layouts/sw.js +141 -29
- data/_sass/bootstrap.scss +1 -0
- data/_sass/theme.scss +236 -107
- 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 +7 -3
- data/_includes/pwa_banner.html +0 -29
- data/_layouts/stream-overview.html +0 -45
data/_includes/navbar_pwa.html
CHANGED
|
@@ -1,39 +1,218 @@
|
|
|
1
|
+
{%- comment -%}
|
|
2
|
+
Tab bar of the installed app (PWA), at most five tabs (four on narrow
|
|
3
|
+
phones, e.g. iPhone mini): beyond, the first four (three) and "More" with
|
|
4
|
+
the others, e.g. "Program · Talks · Speakers · Location · More". A link
|
|
5
|
+
with `live: true` adds a tab before "More" while live, outside live its
|
|
6
|
+
`name_inactive` if given (disabled). Without, the tab takes no slot
|
|
7
|
+
outside live: while live, the last tabs give way to it and move into
|
|
8
|
+
"More". Menus open as sheets from the bottom, captured in
|
|
9
|
+
pwa_sheets: footer.html places them outside the bar, whose stacking
|
|
10
|
+
context would keep them below the backdrop. Entries not a tab in every
|
|
11
|
+
state of the bar (width, live) name the states they are one in
|
|
12
|
+
(data-pwa-in, see theme.scss).
|
|
13
|
+
{%- endcomment -%}
|
|
14
|
+
{%- assign pwa_sheets = "" -%}
|
|
1
15
|
{%- if site.conference.pwa and site.conference.pwa.enable -%}
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
16
|
+
{%- assign lang = site.data.lang[site.conference.lang] -%}
|
|
17
|
+
|
|
18
|
+
{%- comment -%} Entries: links and non-empty menus, except hidden ones and the live one (shown separately) {%- endcomment -%}
|
|
19
|
+
{%- assign pwa_entries = "" | split: "" -%}
|
|
20
|
+
{%- assign pwa_live = nil -%}
|
|
21
|
+
{%- for link in edition_nav_links -%}
|
|
22
|
+
{%- if link.pwa_hide -%}
|
|
23
|
+
{%- continue -%}
|
|
24
|
+
{%- endif -%}
|
|
25
|
+
|
|
26
|
+
{%- if link.live -%}
|
|
27
|
+
{%- if edition_live and pwa_live == nil -%}
|
|
28
|
+
{%- assign pwa_live = link -%}
|
|
29
|
+
{%- endif -%}
|
|
30
|
+
{%- continue -%}
|
|
31
|
+
{%- endif -%}
|
|
32
|
+
|
|
33
|
+
{%- if link.menu -%}
|
|
34
|
+
{%- include get_menu.html -%}
|
|
35
|
+
{%- if menu_empty -%}
|
|
36
|
+
{%- continue -%}
|
|
37
|
+
{%- endif -%}
|
|
38
|
+
{%- endif -%}
|
|
39
|
+
{%- assign pwa_entries = pwa_entries | push: link -%}
|
|
40
|
+
{%- endfor -%}
|
|
8
41
|
|
|
9
|
-
|
|
10
|
-
|
|
42
|
+
{%- comment -%}
|
|
43
|
+
Tabs besides Live and More per state (pwa_states, pwa_counts): four or
|
|
44
|
+
five slots, outside live or during ("-live"), less one where Live shows
|
|
45
|
+
(outside live: name_inactive), less one for More if not all fit. E.g.
|
|
46
|
+
five entries and Live without name_inactive: 3 (4), 2 (4-live), 5 (5)
|
|
47
|
+
and 3 (5-live)
|
|
48
|
+
{%- endcomment -%}
|
|
49
|
+
{%- assign pwa_states = "" | split: "" -%}
|
|
50
|
+
{%- assign pwa_counts = "" | split: "" -%}
|
|
51
|
+
{%- assign pwa_suffixes = "|-live" | split: "|" -%}
|
|
52
|
+
{%- for pwa_max_tabs in (4..5) -%}
|
|
53
|
+
{%- for pwa_suffix in pwa_suffixes -%}
|
|
54
|
+
{%- assign pwa_live_tab = pwa_live.name_inactive -%}
|
|
55
|
+
{%- if pwa_suffix == "-live" -%}
|
|
56
|
+
{%- assign pwa_live_tab = pwa_live -%}
|
|
57
|
+
{%- endif -%}
|
|
11
58
|
|
|
12
|
-
|
|
59
|
+
{%- assign pwa_slots = pwa_max_tabs -%}
|
|
60
|
+
{%- if pwa_live_tab -%}
|
|
61
|
+
{%- assign pwa_slots = pwa_max_tabs | minus: 1 -%}
|
|
62
|
+
{%- endif -%}
|
|
63
|
+
{%- assign pwa_count = pwa_entries.size -%}
|
|
64
|
+
{%- if pwa_count > pwa_slots -%}
|
|
65
|
+
{%- assign pwa_count = pwa_slots | minus: 1 -%}
|
|
66
|
+
{%- endif -%}
|
|
67
|
+
|
|
68
|
+
{%- assign pwa_state = pwa_max_tabs | append: pwa_suffix -%}
|
|
69
|
+
{%- assign pwa_states = pwa_states | push: pwa_state -%}
|
|
70
|
+
{%- assign pwa_counts = pwa_counts | push: pwa_count -%}
|
|
71
|
+
{%- endfor -%}
|
|
72
|
+
{%- endfor -%}
|
|
73
|
+
|
|
74
|
+
{%- comment -%} Entries a tab in any state, and in "More" in any {%- endcomment -%}
|
|
75
|
+
{%- assign pwa_tab_count = pwa_counts | sort | last -%}
|
|
76
|
+
{%- assign pwa_more_from = pwa_counts | sort | first -%}
|
|
77
|
+
|
|
78
|
+
{%- comment -%} Times when live, for .live-show and .live-hide (Live and name_inactive) {%- endcomment -%}
|
|
79
|
+
{%- if pwa_live -%}
|
|
80
|
+
{%- include get_live_timestamps.html -%}
|
|
81
|
+
{%- capture pwa_live_range %}data-start="{{ live_starts }}" data-end="{{ live_ends }}"{% endcapture -%}
|
|
82
|
+
{%- endif %}
|
|
83
|
+
<nav class="navbar navbar-expand-sm navbar-pwa d-pwa-block bg-body-secondary" aria-label="{{ lang.navigation.main | default: 'Main navigation' }}">
|
|
84
|
+
<div class="container">
|
|
85
|
+
<div class="navbar-nav flex-row w-100 align-items-end justify-content-around">
|
|
86
|
+
{%- for link in pwa_entries limit: pwa_tab_count -%}
|
|
87
|
+
{%- assign pwa_index = forloop.index0 -%}
|
|
88
|
+
{%- include get_pwa_in.html -%}
|
|
89
|
+
{%- if link.menu -%}
|
|
13
90
|
{%- include get_menu.html -%}
|
|
14
|
-
{%-
|
|
15
|
-
<div class="
|
|
16
|
-
<
|
|
17
|
-
{{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
{%- include show_menu_items.html %}
|
|
21
|
-
</div>
|
|
91
|
+
{%- assign sheet_id = "navbar-pwa-sheet" | append: forloop.index0 %}
|
|
92
|
+
<div class="px-2"{{ pwa_tab_attr }}>
|
|
93
|
+
<button type="button" class="nav-link icon-link d-flex flex-column flex-md-row align-items-center text-center" data-bs-toggle="offcanvas" data-bs-target="#{{ sheet_id }}" aria-controls="{{ sheet_id }}"{% if menu_label %} aria-label="{{ menu_label }}"{% endif %}>
|
|
94
|
+
{% assign link_icon_name = link.icon | default: 'list' %}{% include icon.html name=link_icon_name %}
|
|
95
|
+
<span>{{ menu_name }}</span>
|
|
96
|
+
</button>
|
|
22
97
|
</div>
|
|
23
|
-
|
|
98
|
+
|
|
99
|
+
{%- capture pwa_sheet %}
|
|
100
|
+
<div class="offcanvas offcanvas-bottom h-auto rounded-top-4 d-print-none navbar-pwa-sheet" tabindex="-1" id="{{ sheet_id }}" aria-labelledby="{{ sheet_id }}-label">
|
|
101
|
+
<div class="offcanvas-header">
|
|
102
|
+
<h2 class="offcanvas-title h5" id="{{ sheet_id }}-label">{{ menu_name }}</h2>
|
|
103
|
+
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="{{ lang.close | default: 'Close' }}"></button>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="offcanvas-body pt-0">
|
|
106
|
+
<div class="list-group list-group-flush">
|
|
107
|
+
{%- include show_menu_items.html item_class="list-group-item list-group-item-action" %}
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
{%- endcapture -%}
|
|
112
|
+
{%- assign pwa_sheets = pwa_sheets | append: pwa_sheet -%}
|
|
24
113
|
|
|
25
114
|
{%- else %}
|
|
26
|
-
<div class="px-2">
|
|
115
|
+
<div class="px-2"{{ pwa_tab_attr }}>
|
|
27
116
|
{%- include get_link_active.html -%}
|
|
28
|
-
{%- include get_link.html class="nav-link icon-link flex-column flex-md-row text-center" is_active=is_active -%}
|
|
117
|
+
{%- include get_link.html class="nav-link icon-link d-flex flex-column flex-md-row align-items-center text-center" is_active=is_active -%}
|
|
29
118
|
{{ link_tag }}
|
|
30
|
-
{% assign link_icon_name = link_icon | default: 'link-45deg' %}{% include icon.html name=link_icon_name %}
|
|
119
|
+
{% assign link_icon_name = link_icon | default: 'link-45deg' %}{% include icon.html name=link_icon_name fill=is_active %}
|
|
31
120
|
<span>{{ link.name }}</span>
|
|
32
121
|
</a>
|
|
33
122
|
</div>
|
|
34
123
|
{%- endif -%}
|
|
35
124
|
{%- endfor %}
|
|
125
|
+
|
|
126
|
+
{%- comment -%} Live while live, otherwise name_inactive if given (as in navbar.html) {%- endcomment -%}
|
|
127
|
+
{%- if pwa_live -%}
|
|
128
|
+
{%- assign link = pwa_live %}
|
|
129
|
+
<div class="px-2 navbar-pwa-live live-show d-none" {{ pwa_live_range }}>
|
|
130
|
+
{%- include get_link_active.html -%}
|
|
131
|
+
{%- include get_link.html class="nav-link icon-link d-flex flex-column flex-md-row align-items-center text-center" is_active=is_active -%}
|
|
132
|
+
{{ link_tag }}
|
|
133
|
+
{% include get_live_icon.html icon_only=true %}
|
|
134
|
+
<span>{{ link.name | default: lang.live.live | default: "Live" }}</span>
|
|
135
|
+
</a>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
{%- if link.name_inactive %}
|
|
139
|
+
<div class="px-2 live-hide" {{ pwa_live_range }}>
|
|
140
|
+
<a class="nav-link icon-link d-flex flex-column flex-md-row align-items-center text-center disabled" href="#" tabindex="-1" aria-disabled="true">
|
|
141
|
+
{% include get_live_icon.html icon_only=true %}
|
|
142
|
+
<span>{{ link.name_inactive }}</span>
|
|
143
|
+
</a>
|
|
144
|
+
</div>
|
|
145
|
+
{%- endif -%}
|
|
146
|
+
{%- endif %}
|
|
147
|
+
|
|
148
|
+
{%- comment -%} More, in the states its last entry is in it {%- endcomment -%}
|
|
149
|
+
{%- if pwa_more_from < pwa_entries.size -%}
|
|
150
|
+
{%- assign pwa_index = pwa_entries.size | minus: 1 -%}
|
|
151
|
+
{%- include get_pwa_in.html %}
|
|
152
|
+
<div class="px-2"{{ pwa_more_attr }}>
|
|
153
|
+
<button type="button" class="nav-link icon-link d-flex flex-column flex-md-row align-items-center text-center" data-bs-toggle="offcanvas" data-bs-target="#navbar-pwa-more" aria-controls="navbar-pwa-more">
|
|
154
|
+
{% include icon.html name="three-dots" %}
|
|
155
|
+
<span>{{ lang.navigation.more | default: "More" }}</span>
|
|
156
|
+
</button>
|
|
157
|
+
</div>
|
|
158
|
+
{%- endif %}
|
|
36
159
|
</div>
|
|
37
160
|
</div>
|
|
38
161
|
</nav>
|
|
162
|
+
|
|
163
|
+
{%- comment -%}
|
|
164
|
+
More: the remaining links, then the remaining menus under their name,
|
|
165
|
+
each in the states it is no tab in
|
|
166
|
+
{%- endcomment -%}
|
|
167
|
+
{%- if pwa_more_from < pwa_entries.size -%}
|
|
168
|
+
{%- capture pwa_sheet %}
|
|
169
|
+
<div class="offcanvas offcanvas-bottom h-auto rounded-top-4 d-print-none navbar-pwa-sheet" tabindex="-1" id="navbar-pwa-more" aria-labelledby="navbar-pwa-more-label">
|
|
170
|
+
<div class="offcanvas-header">
|
|
171
|
+
<h2 class="offcanvas-title h5" id="navbar-pwa-more-label">{{ lang.navigation.more | default: "More" }}</h2>
|
|
172
|
+
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="{{ lang.close | default: 'Close' }}"></button>
|
|
173
|
+
</div>
|
|
174
|
+
<div class="offcanvas-body pt-0">
|
|
175
|
+
{%- capture pwa_more_links -%}
|
|
176
|
+
{%- for link in pwa_entries offset: pwa_more_from -%}
|
|
177
|
+
{%- if link.menu -%}
|
|
178
|
+
{%- continue -%}
|
|
179
|
+
{%- endif -%}
|
|
180
|
+
|
|
181
|
+
{%- assign pwa_index = forloop.index0 | plus: pwa_more_from -%}
|
|
182
|
+
{%- include get_pwa_in.html -%}
|
|
183
|
+
{%- assign pwa_link_open = "<a" | append: pwa_more_attr -%}
|
|
184
|
+
{%- include get_link_active.html -%}
|
|
185
|
+
{%- include get_link.html class="list-group-item list-group-item-action icon-link" is_active=is_active %}
|
|
186
|
+
{{ link_tag | replace_first: "<a", pwa_link_open }}
|
|
187
|
+
{% assign link_icon_name = link_icon | default: 'link-45deg' %}{% include icon.html name=link_icon_name %}
|
|
188
|
+
{{ link.name }}
|
|
189
|
+
</a>
|
|
190
|
+
{%- endfor -%}
|
|
191
|
+
{%- endcapture -%}
|
|
192
|
+
{%- unless pwa_more_links == "" %}
|
|
193
|
+
<div class="list-group list-group-flush">
|
|
194
|
+
{{- pwa_more_links }}
|
|
195
|
+
</div>
|
|
196
|
+
{%- endunless -%}
|
|
197
|
+
|
|
198
|
+
{%- for link in pwa_entries offset: pwa_more_from -%}
|
|
199
|
+
{%- unless link.menu -%}
|
|
200
|
+
{%- continue -%}
|
|
201
|
+
{%- endunless -%}
|
|
202
|
+
|
|
203
|
+
{%- assign pwa_index = forloop.index0 | plus: pwa_more_from -%}
|
|
204
|
+
{%- include get_pwa_in.html -%}
|
|
205
|
+
{%- include get_menu.html %}
|
|
206
|
+
<div{{ pwa_more_attr }}>
|
|
207
|
+
<h3 class="h6 mt-3 mb-1 px-3 text-body-secondary">{{ menu_name }}</h3>
|
|
208
|
+
<div class="list-group list-group-flush">
|
|
209
|
+
{%- include show_menu_items.html item_class="list-group-item list-group-item-action" %}
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
{%- endfor %}
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
{%- endcapture -%}
|
|
216
|
+
{%- assign pwa_sheets = pwa_sheets | append: pwa_sheet -%}
|
|
217
|
+
{%- endif -%}
|
|
39
218
|
{%- endif -%}
|
data/_includes/pwa_install.html
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{%- comment -%}
|
|
2
|
-
Steps to install the app (PWA), opened by _includes/
|
|
2
|
+
Steps to install the app (PWA), opened by _includes/pwa_toasts.html.
|
|
3
3
|
_js/modules/pwa.js shows the steps of the visitor's platform.
|
|
4
4
|
{%- endcomment -%}
|
|
5
|
-
{%- if site.conference.pwa.enable and site.conference.pwa.
|
|
5
|
+
{%- if site.conference.pwa.enable and site.conference.pwa.install_toast != false and edition_current -%}
|
|
6
6
|
{%- assign lang = site.data.lang[site.conference.lang] %}
|
|
7
7
|
<div class="offcanvas offcanvas-bottom h-auto rounded-top-4 d-print-none" tabindex="-1" id="pwa-install" aria-labelledby="pwa-install-label">
|
|
8
8
|
<div class="offcanvas-header">
|
|
9
|
-
<h2 class="offcanvas-title h5" id="pwa-install-label">{{ lang.pwa.title | default: "Install
|
|
9
|
+
<h2 class="offcanvas-title h5" id="pwa-install-label">{{ lang.pwa.title | default: "Install as an app" }}</h2>
|
|
10
10
|
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="{{ lang.close | default: 'Close' }}"></button>
|
|
11
11
|
</div>
|
|
12
12
|
<div class="offcanvas-body pt-0">
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<li><span>{{ lang.pwa.android.add | default: "Tap “Install app” or “Add to Home screen”." }}</span>{% include icon.html name="download" %}</li>
|
|
21
21
|
<li><span>{{ lang.pwa.android.confirm | default: "Tap “Install”." }}</span>{% include icon.html name="check2" %}</li>
|
|
22
22
|
</ol>
|
|
23
|
-
<p class="text-body-secondary mb-0">{{ lang.pwa.done | default: "Then open the app from its icon
|
|
23
|
+
<p class="text-body-secondary mb-0">{{ lang.pwa.done | default: "Then open the app from its icon. It works offline too." }}</p>
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
26
26
|
{%- endif -%}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{%- comment -%}
|
|
2
|
+
Toasts of the app (PWA) at the bottom, in the app above its tab bar, shown
|
|
3
|
+
one at a time by _js/modules/pwa.js:
|
|
4
|
+
- install: on phones and tablets of the current edition, opens
|
|
5
|
+
_includes/pwa_install.html
|
|
6
|
+
- update: the service worker found a newer version of the page shown
|
|
7
|
+
{%- endcomment -%}
|
|
8
|
+
{%- if site.conference.pwa.enable -%}
|
|
9
|
+
{%- assign lang = site.data.lang[site.conference.lang] %}
|
|
10
|
+
<div class="toast-container pwa-toasts d-print-none" role="status">
|
|
11
|
+
{%- if site.conference.pwa.install_toast != false and edition_current -%}
|
|
12
|
+
{%- include get_pwa_icon.html %}
|
|
13
|
+
<div class="toast pwa-toast" id="pwa-install-toast">
|
|
14
|
+
<div class="d-flex align-items-center gap-2 p-2">
|
|
15
|
+
{%- if pwa_icon_url %}
|
|
16
|
+
<img class="rounded-3 flex-shrink-0" src="{{ pwa_icon_url }}" alt="" width="40" height="40" />
|
|
17
|
+
{%- endif %}
|
|
18
|
+
<div class="flex-grow-1 small">
|
|
19
|
+
<strong class="d-block">{{ site.title | escape }}</strong>
|
|
20
|
+
{{ lang.pwa.subtitle | default: "Works offline, right from your home screen" }}
|
|
21
|
+
</div>
|
|
22
|
+
<button type="button" class="pwa-toast-button btn btn-primary btn-sm flex-shrink-0" data-bs-toggle="offcanvas" data-bs-target="#pwa-install" aria-controls="pwa-install">
|
|
23
|
+
{{- lang.pwa.install | default: "Install" -}}
|
|
24
|
+
</button>
|
|
25
|
+
<button type="button" class="btn-close flex-shrink-0" data-bs-dismiss="toast" aria-label="{{ lang.close | default: 'Close' }}"></button>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
{%- endif %}
|
|
29
|
+
<div class="toast pwa-toast" id="pwa-update-toast">
|
|
30
|
+
<div class="d-flex align-items-center gap-2 p-2">
|
|
31
|
+
<div class="flex-grow-1 small ps-1">{{ lang.pwa.updated | default: "New content is available." }}</div>
|
|
32
|
+
<button type="button" class="pwa-toast-button btn btn-primary btn-sm flex-shrink-0" data-pwa-reload>
|
|
33
|
+
{{- lang.pwa.reload | default: "Update" -}}
|
|
34
|
+
</button>
|
|
35
|
+
<button type="button" class="btn-close flex-shrink-0" data-bs-dismiss="toast" aria-label="{{ lang.close | default: 'Close' }}"></button>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
{%- endif -%}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<a class="{{ btn_default }} dropdown-toggle" href="#" role="button" id="{{ include.id }}-dropdown{{ forloop.index0 }}" data-bs-toggle="dropdown"{% if include.popper %} data-bs-popper-config='{"strategy":"{{ include.popper }}"}'{% endif %} aria-expanded="false"{% if menu_label %} aria-label="{{ menu_label }}"{% endif %}>
|
|
16
16
|
{{ menu_name }}
|
|
17
17
|
</a>
|
|
18
|
-
<div class="dropdown-menu"
|
|
18
|
+
<div class="dropdown-menu">
|
|
19
19
|
{% include show_menu_items.html %}
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{%- comment -%}
|
|
2
2
|
Items of a dropdown menu (see get_menu.html, sets menu_links): its links,
|
|
3
|
-
or each edition's home page, marking the page's edition
|
|
3
|
+
or each edition's home page, marking the page's edition. The class of an
|
|
4
|
+
item (item_class) defaults to "dropdown-item", e.g. item_class="list-group-item".
|
|
4
5
|
{%- endcomment -%}
|
|
6
|
+
{%- assign menu_item_class = include.item_class | default: "dropdown-item" -%}
|
|
5
7
|
{%- if menu_links == "editions" -%}
|
|
6
8
|
{%- for e in site.conference.editions -%}
|
|
7
9
|
{%- assign e_id = e.id | append: "" %}
|
|
8
|
-
<a class="
|
|
10
|
+
<a class="{{ menu_item_class }}{% if e_id == edition %} active{% endif %}" href="{{ site.baseurl }}/{{ e_id }}/"{% if e_id == edition %} aria-current="true"{% endif %}>
|
|
9
11
|
{{ e.name | default: e_id }}
|
|
10
12
|
</a>
|
|
11
13
|
{%- endfor -%}
|
|
12
14
|
{%- else -%}
|
|
13
15
|
{%- for link in menu_links -%}
|
|
14
|
-
{%- include get_link.html class=
|
|
16
|
+
{%- include get_link.html class=menu_item_class %}
|
|
15
17
|
{{ link_tag }}
|
|
16
18
|
{{ link.name }}
|
|
17
19
|
</a>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{%- comment -%}
|
|
2
|
+
Live stream of a room, filled by _js/modules/stream.js: the rooms
|
|
3
|
+
(buttons, on phones a select), the stream, its consent box or why there
|
|
4
|
+
is none (e.g. "The live stream has ended.") and the room's next talk. Shared
|
|
5
|
+
by the stream modal (modal_live.html) and the live page (layout `live`):
|
|
6
|
+
in this order on phones, larger screens move the rooms (see
|
|
7
|
+
_css/theme.scss). Input: include.class_body and include.class_footer,
|
|
8
|
+
classes of the stream and of the other parts, e.g. "modal-body" and
|
|
9
|
+
"modal-footer"
|
|
10
|
+
{%- endcomment -%}
|
|
11
|
+
{%- assign live_lang = site.data.lang[site.conference.lang].live -%}
|
|
12
|
+
<div class="stream-rooms {{ include.class_footer }}">
|
|
13
|
+
{%- for room in edition_rooms -%}
|
|
14
|
+
<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 %}>
|
|
15
|
+
{{ room.name | escape }}
|
|
16
|
+
</button>
|
|
17
|
+
{%- endfor %}
|
|
18
|
+
<div class="w-100 d-block d-sm-none">
|
|
19
|
+
<select class="form-select" id="stream-select" aria-label="{{ site.data.lang[site.conference.lang].location.rooms | default: 'Rooms' }}">
|
|
20
|
+
{%- for room in edition_rooms -%}
|
|
21
|
+
<option value="{{ forloop.index }}"{% unless room.live %} disabled{% endunless %}>{{ room.name | escape }}</option>
|
|
22
|
+
{%- endfor %}
|
|
23
|
+
</select>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div class="stream-player ratio ratio-16x9 {{ include.class_body }}">
|
|
28
|
+
<iframe referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="{{ live_lang.stream | default: 'Live stream' }}"></iframe>
|
|
29
|
+
{%- include embed_consent.html hidden=true click_to_load=edition_live.streaming.click_to_load %}
|
|
30
|
+
<div id="stream-placeholder" class="d-none justify-content-center align-items-center" role="status" aria-live="polite" aria-atomic="true">
|
|
31
|
+
<div id="stream-modal-desc"></div>
|
|
32
|
+
<div id="stream-offline" class="d-none">
|
|
33
|
+
{% include icon.html name="wifi-off" %} {{ live_lang.offline | default: "offline" }}
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<div class="stream-info flex-column justify-content-start d-none {{ include.class_footer }}" id="stream-info">
|
|
39
|
+
<div class="align-self-start live-time my-0 small" id="stream-info-time" data-time=""></div>
|
|
40
|
+
<div class="align-self-start ps-2 border-start border-4" id="stream-info-color">
|
|
41
|
+
<p class="mb-0">
|
|
42
|
+
<a class="talk-title text-reset link-underline-opacity-0 link-underline-opacity-100-hover" href="#" id="stream-info-talk"></a>
|
|
43
|
+
</p>
|
|
44
|
+
<p class="talk-speakers mb-0" id="stream-info-speakers"></p>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="stream-info-links m-0 mt-1 d-none" id="stream-info-links"></div>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
{%- comment -%} Icons of the talks' live links, e.g. for a "Q&A" button {%- endcomment -%}
|
|
50
|
+
{%- assign live_icons = "" | split: "" -%}
|
|
51
|
+
{%- for talk in edition_talks -%}
|
|
52
|
+
{%- for link in talk.links -%}
|
|
53
|
+
{%- if link.live and link.icon -%}
|
|
54
|
+
{%- assign live_icons = live_icons | push: link.icon -%}
|
|
55
|
+
{%- endif -%}
|
|
56
|
+
{%- endfor -%}
|
|
57
|
+
{%- endfor -%}
|
|
58
|
+
{%- assign live_icons = live_icons | uniq %}
|
|
59
|
+
<template id="stream-icons">
|
|
60
|
+
{%- for icon in live_icons -%}
|
|
61
|
+
<span data-icon="{{ icon | escape }}">{% include icon.html name=icon %}</span>
|
|
62
|
+
{%- endfor -%}
|
|
63
|
+
</template>
|
data/_layouts/htaccess.html
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
{%- comment -%}
|
|
2
|
-
Apache configuration (.htaccess) of
|
|
3
|
-
addresses outside the editions to the current one, if it has them
|
|
4
|
-
/program/ -> /2026/program/)
|
|
5
|
-
|
|
2
|
+
Apache configuration (.htaccess) of the site: with several editions,
|
|
3
|
+
forwards addresses outside the editions to the current one, if it has them
|
|
4
|
+
(e.g. /program/ -> /2026/program/). Shows the page for missing addresses
|
|
5
|
+
(layout: not-found, e.g. 404.md), if any. Followed by the page's own
|
|
6
|
+
content, which can override both.
|
|
6
7
|
{%- endcomment -%}
|
|
7
8
|
{%- include get_edition.html -%}
|
|
8
9
|
{%- if edition_current_id -%}
|
|
9
10
|
{%- assign edition_url = site.baseurl | append: "/" | append: edition_current_id -%}
|
|
10
|
-
# Forward to the current edition, e.g. /
|
|
11
|
+
# Forward to the current edition: files, e.g. /documents/slides/x.pdf ->
|
|
12
|
+
# {{ edition_url }}/documents/slides/x.pdf, and pages with their trailing slash, e.g.
|
|
13
|
+
# /program -> {{ edition_url }}/program/ (folders without a page are not forwarded)
|
|
11
14
|
RewriteEngine On
|
|
12
15
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
13
16
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
14
|
-
RewriteCond %{DOCUMENT_ROOT}{{ edition_url }}/$1 -f
|
|
15
|
-
RewriteCond %{DOCUMENT_ROOT}{{ edition_url }}/$1 -d
|
|
17
|
+
RewriteCond %{DOCUMENT_ROOT}{{ edition_url }}/$1 -f
|
|
16
18
|
RewriteRule ^(.*)$ {{ edition_url }}/$1 [R=302,L]
|
|
17
19
|
|
|
20
|
+
RewriteCond %{REQUEST_FILENAME} !-f
|
|
21
|
+
RewriteCond %{REQUEST_FILENAME} !-d
|
|
22
|
+
RewriteCond %{DOCUMENT_ROOT}{{ edition_url }}/$1/index.html -f
|
|
23
|
+
RewriteRule ^(.*?)/?$ {{ edition_url }}/$1/ [R=302,L]
|
|
24
|
+
|
|
25
|
+
{% endif -%}
|
|
26
|
+
{%- assign not_found_page = site.pages | where: "layout", "not-found" | where_exp: "p", "p.edition == nil" | first -%}
|
|
27
|
+
{%- if not_found_page -%}
|
|
28
|
+
# Page for missing addresses
|
|
29
|
+
ErrorDocument 404 {{ not_found_page.url | prepend: site.baseurl }}
|
|
30
|
+
|
|
18
31
|
{% endif -%}
|
|
19
32
|
{{ content }}
|
data/_layouts/json-site.html
CHANGED
|
@@ -11,6 +11,13 @@
|
|
|
11
11
|
{%- assign assets = "" | split: "" -%}
|
|
12
12
|
{%- assign asset_versions = site.data.conference_assets -%}
|
|
13
13
|
|
|
14
|
+
{%- comment -%}
|
|
15
|
+
The site's own stylesheet and script carry the build time, as linked by
|
|
16
|
+
_includes/header.html and footer.html, so the service worker finds them
|
|
17
|
+
{%- endcomment -%}
|
|
18
|
+
{%- assign site_version = site.time | date: '%s' -%}
|
|
19
|
+
{%- assign build_versioned = "/assets/css/main.css,/assets/js/main.js" | split: "," -%}
|
|
20
|
+
|
|
14
21
|
{%- comment -%} Skip unused stylesheet bundles and the map, which needs the network anyway {%- endcomment -%}
|
|
15
22
|
{%- assign skip_assets = "/assets/css/map.bundle.css" | split: "," -%}
|
|
16
23
|
{%- unless site.conference.custom_style == "bootstrap" -%}
|
|
@@ -22,7 +29,9 @@
|
|
|
22
29
|
|
|
23
30
|
{%- for page in site.pages -%}
|
|
24
31
|
{%- assign page_ext = page.url | split: "." | last -%}
|
|
25
|
-
{%-
|
|
32
|
+
{%- comment -%} Skip hidden files, e.g. .htaccess: web servers refuse them {%- endcomment -%}
|
|
33
|
+
{%- assign page_initial = page.name | slice: 0 -%}
|
|
34
|
+
{%- if page.output == false or page.url == nil or page.url == "" or page.url == "/sw.js" or page_ext == "map" or page_initial == "." -%}
|
|
26
35
|
{%- continue -%}
|
|
27
36
|
{%- endif -%}
|
|
28
37
|
{%- assign page_edition = page.edition | append: "" -%}
|
|
@@ -31,6 +40,9 @@
|
|
|
31
40
|
{%- endif -%}
|
|
32
41
|
{%- assign url = page.url | prepend: site.baseurl -%}
|
|
33
42
|
{%- if page.url contains "/assets/" -%}
|
|
43
|
+
{%- if build_versioned contains page.url -%}
|
|
44
|
+
{%- assign url = url | append: "?t=" | append: site_version -%}
|
|
45
|
+
{%- endif -%}
|
|
34
46
|
{%- assign assets = assets | push: url -%}
|
|
35
47
|
{%- else -%}
|
|
36
48
|
{%- assign pages = pages | push: url -%}
|
|
@@ -70,6 +82,8 @@
|
|
|
70
82
|
{%- assign asset_key = file.path | remove_first: "/assets/" -%}
|
|
71
83
|
{%- if asset_versions[asset_key] -%}
|
|
72
84
|
{%- assign url = url | append: "?v=" | append: asset_versions[asset_key] -%}
|
|
85
|
+
{%- elsif build_versioned contains file.path -%}
|
|
86
|
+
{%- assign url = url | append: "?t=" | append: site_version -%}
|
|
73
87
|
{%- endif -%}
|
|
74
88
|
{%- assign assets = assets | push: url -%}
|
|
75
89
|
{%- endfor -%}
|
data/_layouts/live.html
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{% include header.html %}
|
|
2
|
+
{%- assign live_lang = site.data.lang[site.conference.lang].live %}
|
|
3
|
+
|
|
4
|
+
<h1 class="display-5 mb-4 text-break">
|
|
5
|
+
{% if page.title %}
|
|
6
|
+
{{ page.title }}
|
|
7
|
+
{% else %}
|
|
8
|
+
{{ live_lang.stream | default: "Live stream" }}
|
|
9
|
+
{% endif %}
|
|
10
|
+
</h1>
|
|
11
|
+
|
|
12
|
+
{{ content }}
|
|
13
|
+
|
|
14
|
+
{%- comment -%}
|
|
15
|
+
The stream modal as a page, e.g. for the app's Live tab: the room of
|
|
16
|
+
the address (?room=Room+A, else the first), arranged in _css/theme.scss
|
|
17
|
+
{%- endcomment -%}
|
|
18
|
+
{%- if edition_live.streaming.enable %}
|
|
19
|
+
<div class="stream-page" id="stream">
|
|
20
|
+
{%- include show_stream.html %}
|
|
21
|
+
</div>
|
|
22
|
+
{%- else %}
|
|
23
|
+
<p>{{ live_lang.post_stream | default: "The live stream has ended." }}</p>
|
|
24
|
+
{%- endif %}
|
|
25
|
+
|
|
26
|
+
{% include footer.html %}
|
data/_layouts/location.html
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
{% if page.map %}
|
|
39
39
|
{%- assign map_lang = site.data.lang[site.conference.lang].location -%}
|
|
40
40
|
{%- assign map_css_version = site.data.conference_assets['css/map.bundle.css'] | default: site_version %}
|
|
41
|
-
<div id="map" class="w-100 rounded shadow-sm" aria-label="{{ map_lang.map_label | default: 'Interactive conference location map' }}" data-map-css="{{ site.baseurl }}/assets/css/map.bundle.css?v={{ map_css_version }}">
|
|
41
|
+
<div id="map" role="region" class="w-100 rounded shadow-sm" aria-label="{{ map_lang.map_label | default: 'Interactive conference location map' }}" data-map-css="{{ site.baseurl }}/assets/css/map.bundle.css?v={{ map_css_version }}">
|
|
42
42
|
<template data-map-icon>{% include icon.html name="star" %}</template>
|
|
43
43
|
{%- unless page.map.click_to_load == false %}
|
|
44
44
|
{%- comment -%} Privacy: tiles are only requested from the provider after consent {%- endcomment %}
|
data/_layouts/manifest.html
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{%- include get_edition.html -%}
|
|
2
2
|
{%- if site.conference.pwa and site.conference.pwa.enable -%}
|
|
3
|
+
{%- comment -%}
|
|
4
|
+
One app for all editions: name, identity and start do not depend on the
|
|
5
|
+
edition, so installed apps keep following the current one (the root
|
|
6
|
+
forwards to it, see _layouts/editions.html)
|
|
7
|
+
{%- endcomment -%}
|
|
3
8
|
{
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
9
|
+
"id": {{ site.baseurl | append: '/' | jsonify }},
|
|
10
|
+
"name": {{ site.title | jsonify }},
|
|
11
|
+
"short_name": {{ site.title | jsonify }},
|
|
12
|
+
"description": {{ site.description | jsonify }},
|
|
7
13
|
"lang": {{ site.conference.lang | default: 'en' | jsonify }},
|
|
8
|
-
"start_url": {{ site.baseurl | append:
|
|
14
|
+
"start_url": {{ site.baseurl | append: '/' | jsonify }},
|
|
9
15
|
"scope": {{ site.baseurl | append: '/' | jsonify }},
|
|
10
16
|
"display": "standalone",
|
|
11
17
|
"background_color": {{ site.conference.pwa.background_color | default: '#ffffff' | jsonify }},
|
|
@@ -14,12 +20,8 @@
|
|
|
14
20
|
"icons": [
|
|
15
21
|
{%- for icon in site.conference.pwa.icons %}
|
|
16
22
|
{
|
|
17
|
-
{%-
|
|
18
|
-
|
|
19
|
-
{%- else -%}
|
|
20
|
-
{%- assign icon_src = icon.img -%}
|
|
21
|
-
{%- endif %}
|
|
22
|
-
"src": {{ icon_src | prepend: '/assets/images/' | prepend: site.baseurl | jsonify }},
|
|
23
|
+
{%- include get_pwa_icon.html icon=icon %}
|
|
24
|
+
"src": {{ pwa_icon_url | jsonify }},
|
|
23
25
|
{%- if icon.sizes %}
|
|
24
26
|
"sizes": {{ icon.sizes | jsonify }},
|
|
25
27
|
{%- endif -%}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{% include header.html %}
|
|
2
|
+
{%- comment -%}
|
|
3
|
+
Page for missing addresses (e.g. 404.md), also shown by the app's
|
|
4
|
+
service worker in place of the server's or when offline: links are
|
|
5
|
+
absolute, as it shows at any address
|
|
6
|
+
{%- endcomment -%}
|
|
7
|
+
{%- assign not_found_lang = site.data.lang[site.conference.lang].not_found %}
|
|
8
|
+
|
|
9
|
+
<h1 class="display-5 mb-3 text-break">
|
|
10
|
+
{{ page.title | default: not_found_lang.title | default: "Page not found" }}
|
|
11
|
+
</h1>
|
|
12
|
+
|
|
13
|
+
{%- comment -%} An empty Markdown page still holds a line break {%- endcomment -%}
|
|
14
|
+
{%- assign not_found_content = content | strip %}
|
|
15
|
+
{% if not_found_content != "" -%}
|
|
16
|
+
{{ content }}
|
|
17
|
+
{%- else -%}
|
|
18
|
+
<p class="lead">{{ not_found_lang.text | default: "This page does not exist (anymore)." }}</p>
|
|
19
|
+
{%- endif %}
|
|
20
|
+
|
|
21
|
+
<a class="btn btn-primary" href="{{ site.baseurl }}{{ edition_base }}/">{{ not_found_lang.home | default: "Go to the home page" }}</a>
|
|
22
|
+
|
|
23
|
+
{% include footer.html %}
|
data/_layouts/program.html
CHANGED
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
|
|
280
280
|
{%- if edition_tracks %}
|
|
281
281
|
{%- unless page.hide_legend -%}
|
|
282
|
-
<h2 class="h5 mt-4">{{ site.data.lang[site.conference.lang].program.legend | default: "
|
|
282
|
+
<h2 class="h5 mt-4">{{ site.data.lang[site.conference.lang].program.legend | default: "Legend" }}</h2>
|
|
283
283
|
{%- for track_prop in edition_tracks %}
|
|
284
284
|
<div class="track-name d-sm-inline-block m-1 bg-{{ track_prop.color | default: 'light' }}-subtle text-{{ track_prop.color | default: 'light' }}-emphasis border-{{ track_prop.color | default: 'light' }}-subtle">
|
|
285
285
|
{%- if track_prop.icon -%}
|
data/_layouts/speaker.html
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
{% endif %}
|
|
28
28
|
|
|
29
29
|
{% if has_regular_links > 0 %}
|
|
30
|
-
<h2 class="h5 mt-4 mb-1">{{ site.data.lang[site.conference.lang].more_information | default: "More
|
|
30
|
+
<h2 class="h5 mt-4 mb-1">{{ site.data.lang[site.conference.lang].more_information | default: "More information" }}:</h2>
|
|
31
31
|
|
|
32
32
|
<ul class="links-more list-unstyled">
|
|
33
33
|
{% for link in speaker.links %}
|