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
data/_includes/navbar_pwa.html
CHANGED
|
@@ -92,14 +92,14 @@
|
|
|
92
92
|
<div class="px-2"{{ pwa_tab_attr }}>
|
|
93
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
94
|
{% assign link_icon_name = link.icon | default: 'list' %}{% include icon.html name=link_icon_name %}
|
|
95
|
-
<span>{{ menu_name }}</span>
|
|
95
|
+
<span>{{ menu_name | escape }}</span>
|
|
96
96
|
</button>
|
|
97
97
|
</div>
|
|
98
98
|
|
|
99
99
|
{%- capture pwa_sheet %}
|
|
100
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
101
|
<div class="offcanvas-header">
|
|
102
|
-
<h2 class="offcanvas-title h5" id="{{ sheet_id }}-label">{{ menu_name }}</h2>
|
|
102
|
+
<h2 class="offcanvas-title h5" id="{{ sheet_id }}-label">{{ menu_name | escape }}</h2>
|
|
103
103
|
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="{{ lang.close | default: 'Close' }}"></button>
|
|
104
104
|
</div>
|
|
105
105
|
<div class="offcanvas-body pt-0">
|
|
@@ -117,7 +117,7 @@
|
|
|
117
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 -%}
|
|
118
118
|
{{ link_tag }}
|
|
119
119
|
{% assign link_icon_name = link_icon | default: 'link-45deg' %}{% include icon.html name=link_icon_name fill=is_active %}
|
|
120
|
-
<span>{{ link.name }}</span>
|
|
120
|
+
<span>{{ link.name | escape }}</span>
|
|
121
121
|
</a>
|
|
122
122
|
</div>
|
|
123
123
|
{%- endif -%}
|
|
@@ -127,10 +127,11 @@
|
|
|
127
127
|
{%- if pwa_live -%}
|
|
128
128
|
{%- assign link = pwa_live %}
|
|
129
129
|
<div class="px-2 navbar-pwa-live live-show d-none" {{ pwa_live_range }}>
|
|
130
|
-
{%- include
|
|
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 -%}
|
|
131
132
|
{{ link_tag }}
|
|
132
133
|
{% include get_live_icon.html icon_only=true %}
|
|
133
|
-
<span>{{ link.name | default: lang.live.live | default: "Live" }}</span>
|
|
134
|
+
<span>{{ link.name | default: lang.live.live | default: "Live" | escape }}</span>
|
|
134
135
|
</a>
|
|
135
136
|
</div>
|
|
136
137
|
|
|
@@ -138,7 +139,7 @@
|
|
|
138
139
|
<div class="px-2 live-hide" {{ pwa_live_range }}>
|
|
139
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">
|
|
140
141
|
{% include get_live_icon.html icon_only=true %}
|
|
141
|
-
<span>{{ link.name_inactive }}</span>
|
|
142
|
+
<span>{{ link.name_inactive | escape }}</span>
|
|
142
143
|
</a>
|
|
143
144
|
</div>
|
|
144
145
|
{%- endif -%}
|
|
@@ -184,7 +185,7 @@
|
|
|
184
185
|
{%- include get_link.html class="list-group-item list-group-item-action icon-link" is_active=is_active %}
|
|
185
186
|
{{ link_tag | replace_first: "<a", pwa_link_open }}
|
|
186
187
|
{% assign link_icon_name = link_icon | default: 'link-45deg' %}{% include icon.html name=link_icon_name %}
|
|
187
|
-
{{ link.name }}
|
|
188
|
+
{{ link.name | escape }}
|
|
188
189
|
</a>
|
|
189
190
|
{%- endfor -%}
|
|
190
191
|
{%- endcapture -%}
|
|
@@ -203,7 +204,7 @@
|
|
|
203
204
|
{%- include get_pwa_in.html -%}
|
|
204
205
|
{%- include get_menu.html %}
|
|
205
206
|
<div{{ pwa_more_attr }}>
|
|
206
|
-
<h3 class="h6 mt-3 mb-1 px-3 text-body-secondary">{{ menu_name }}</h3>
|
|
207
|
+
<h3 class="h6 mt-3 mb-1 px-3 text-body-secondary">{{ menu_name | escape }}</h3>
|
|
207
208
|
<div class="list-group list-group-flush">
|
|
208
209
|
{%- include show_menu_items.html item_class="list-group-item list-group-item-action" %}
|
|
209
210
|
</div>
|
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 and site.conference.pwa.icons -%}
|
|
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,40 @@
|
|
|
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
|
+
{%- comment -%} Not without icons: browsers do not install the app then {%- endcomment -%}
|
|
12
|
+
{%- if site.conference.pwa.install_toast != false and edition_current and site.conference.pwa.icons -%}
|
|
13
|
+
{%- include get_pwa_icon.html %}
|
|
14
|
+
<div class="toast pwa-toast" id="pwa-install-toast">
|
|
15
|
+
<div class="d-flex align-items-center gap-2 p-2">
|
|
16
|
+
{%- if pwa_icon_url %}
|
|
17
|
+
<img class="rounded-3 flex-shrink-0" src="{{ pwa_icon_url }}" alt="" width="40" height="40" />
|
|
18
|
+
{%- endif %}
|
|
19
|
+
<div class="flex-grow-1 small">
|
|
20
|
+
<strong class="d-block">{{ site.title | escape }}</strong>
|
|
21
|
+
{{ lang.pwa.subtitle | default: "Works offline, right from your home screen" }}
|
|
22
|
+
</div>
|
|
23
|
+
<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">
|
|
24
|
+
{{- lang.pwa.install | default: "Install" -}}
|
|
25
|
+
</button>
|
|
26
|
+
<button type="button" class="btn-close flex-shrink-0" data-bs-dismiss="toast" aria-label="{{ lang.close | default: 'Close' }}"></button>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
{%- endif %}
|
|
30
|
+
<div class="toast pwa-toast" id="pwa-update-toast">
|
|
31
|
+
<div class="d-flex align-items-center gap-2 p-2">
|
|
32
|
+
<div class="flex-grow-1 small ps-1">{{ lang.pwa.updated | default: "New content is available." }}</div>
|
|
33
|
+
<button type="button" class="pwa-toast-button btn btn-primary btn-sm flex-shrink-0" data-pwa-reload>
|
|
34
|
+
{{- lang.pwa.reload | default: "Update" -}}
|
|
35
|
+
</button>
|
|
36
|
+
<button type="button" class="btn-close flex-shrink-0" data-bs-dismiss="toast" aria-label="{{ lang.close | default: 'Close' }}"></button>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
{%- endif -%}
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
{% unless menu_empty %}
|
|
14
14
|
<div class="dropdown d-inline">
|
|
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
|
-
{{ menu_name }}
|
|
16
|
+
{{ menu_name | escape }}
|
|
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>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
{%- include get_link.html class=btn_default -%}
|
|
30
30
|
{{ link_tag }}
|
|
31
31
|
{%- if link.name -%}
|
|
32
|
-
{{ link.name }}
|
|
32
|
+
{{ link.name | escape }}
|
|
33
33
|
{%- else -%}
|
|
34
34
|
{% include get_live_icon.html %}
|
|
35
35
|
{%- endif -%}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
{%- if link.name_inactive -%}
|
|
40
40
|
<span class="live-hide d-print-inline {{ btn_default }} disabled" aria-disabled="true" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
|
|
41
|
-
{{ link.name_inactive }}
|
|
41
|
+
{{ link.name_inactive | escape }}
|
|
42
42
|
</span>
|
|
43
43
|
{%- endif -%}
|
|
44
44
|
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
{% else %}
|
|
48
48
|
{% include get_link.html class=btn_default %}
|
|
49
49
|
{{ link_tag }}
|
|
50
|
-
{{ link.name }}
|
|
50
|
+
{{ link.name | escape }}
|
|
51
51
|
</a>
|
|
52
52
|
{% endif %}
|
|
53
53
|
{% endfor %}
|
|
@@ -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/home.html
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
{%- if page.header.img_dark %}
|
|
9
9
|
<source srcset="{{ page.header.img_dark | prepend: '/assets/images/' | prepend: site.baseurl }}" media="(prefers-color-scheme: dark)" />
|
|
10
10
|
{%- endif %}
|
|
11
|
-
<img src="{{ page.header.img | prepend: '/assets/images/' | prepend: site.baseurl }}" class="home-header-img" alt="{{ edition_title }}" />
|
|
11
|
+
<img src="{{ page.header.img | prepend: '/assets/images/' | prepend: site.baseurl }}" class="home-header-img" alt="{{ edition_title | escape }}" />
|
|
12
12
|
</picture>
|
|
13
13
|
{% elsif page.title %}
|
|
14
|
-
{{ page.title }}
|
|
14
|
+
{{ page.title | escape }}
|
|
15
15
|
{% else %}
|
|
16
|
-
{{ edition_title }}
|
|
16
|
+
{{ edition_title | escape }}
|
|
17
17
|
{% endif %}
|
|
18
18
|
</h1>
|
|
19
19
|
{% if edition_description != none %}
|
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 -%}
|
|
@@ -54,6 +66,12 @@
|
|
|
54
66
|
{%- endfor -%}
|
|
55
67
|
|
|
56
68
|
{%- assign static_paths = site.static_files | map: "path" -%}
|
|
69
|
+
|
|
70
|
+
{%- comment -%}
|
|
71
|
+
Not media and archives below /assets/ (e.g. a video): too large to store on
|
|
72
|
+
every visitor's device, loaded from the network when opened
|
|
73
|
+
{%- endcomment -%}
|
|
74
|
+
{%- assign large_exts = ".mp4,.m4v,.webm,.mov,.avi,.mkv,.mp3,.m4a,.ogg,.oga,.wav,.flac,.pdf,.zip,.gz,.tgz,.7z,.rar,.psd,.ai" | split: "," -%}
|
|
57
75
|
{%- for file in site.static_files -%}
|
|
58
76
|
{%- assign ext = file.extname | downcase -%}
|
|
59
77
|
{%- assign woff2_path = file.path | append: "2" -%}
|
|
@@ -63,13 +81,15 @@
|
|
|
63
81
|
{%- if ext == ".woff" and static_paths contains woff2_path -%}
|
|
64
82
|
{%- continue -%}
|
|
65
83
|
{%- endif -%}
|
|
66
|
-
{%- if ext == ".map" or skip_assets contains file.path or file.path contains "/assets/js/leaflet-" or file.path contains "/assets/webfonts/bootstrap-icons." -%}
|
|
84
|
+
{%- if ext == ".map" or large_exts contains ext or skip_assets contains file.path or file.path contains "/assets/js/leaflet-" or file.path contains "/assets/webfonts/bootstrap-icons." -%}
|
|
67
85
|
{%- continue -%}
|
|
68
86
|
{%- endif -%}
|
|
69
87
|
{%- assign url = file.path | prepend: site.baseurl -%}
|
|
70
88
|
{%- assign asset_key = file.path | remove_first: "/assets/" -%}
|
|
71
89
|
{%- if asset_versions[asset_key] -%}
|
|
72
90
|
{%- assign url = url | append: "?v=" | append: asset_versions[asset_key] -%}
|
|
91
|
+
{%- elsif build_versioned contains file.path -%}
|
|
92
|
+
{%- assign url = url | append: "?t=" | append: site_version -%}
|
|
73
93
|
{%- endif -%}
|
|
74
94
|
{%- assign assets = assets | push: url -%}
|
|
75
95
|
{%- 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 | escape }}
|
|
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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<h1 class="display-5 mb-3 text-break">
|
|
9
9
|
{% if page.title %}
|
|
10
|
-
{{ page.title }}
|
|
10
|
+
{{ page.title | escape }}
|
|
11
11
|
{% else %}
|
|
12
12
|
{{ site.data.lang[site.conference.lang].location.name | default: "Location" }}
|
|
13
13
|
{% endif %}
|
|
@@ -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 -%}
|
|
@@ -35,14 +37,32 @@
|
|
|
35
37
|
"shortcuts": [
|
|
36
38
|
{%- assign first_shortcut = true -%}
|
|
37
39
|
{%- for link in edition_nav_links -%}
|
|
38
|
-
{%- unless link.pwa_hide or link.live or link.menu -%}
|
|
40
|
+
{%- unless link.pwa_hide or link.live or link.menu or link.video -%}
|
|
39
41
|
{%- include get_link.html %}
|
|
42
|
+
{%- comment -%}
|
|
43
|
+
Only pages of the site: a shortcut needs a URL within the app's scope
|
|
44
|
+
(not another site's, e.g. tickets, nor a link without URL)
|
|
45
|
+
{%- endcomment -%}
|
|
46
|
+
{%- assign link_first = link_href | slice: 0, 1 -%}
|
|
47
|
+
{%- assign link_start = link_href | slice: 0, 2 -%}
|
|
48
|
+
{%- assign site_prefix = site.url | append: site.baseurl | append: "/" -%}
|
|
49
|
+
{%- assign link_own = false -%}
|
|
50
|
+
{%- if link_first == "/" and link_start != "//" -%}
|
|
51
|
+
{%- assign link_own = true -%}
|
|
52
|
+
{%- elsif site.url and link_href and link_href contains site_prefix -%}
|
|
53
|
+
{%- assign link_prefix = link_href | slice: 0, site_prefix.size -%}
|
|
54
|
+
{%- if link_prefix == site_prefix -%}
|
|
55
|
+
{%- assign link_own = true -%}
|
|
56
|
+
{%- endif -%}
|
|
57
|
+
{%- endif -%}
|
|
58
|
+
{%- if link_own -%}
|
|
40
59
|
{%- unless first_shortcut -%},{%- endunless -%}
|
|
41
60
|
{%- assign first_shortcut = false %}
|
|
42
61
|
{
|
|
43
62
|
"name": {{ link.name | jsonify }},
|
|
44
63
|
"url": {{ link_href | jsonify }}
|
|
45
64
|
}
|
|
65
|
+
{%- endif -%}
|
|
46
66
|
{%- endunless -%}
|
|
47
67
|
{%- endfor %}
|
|
48
68
|
]
|
|
@@ -0,0 +1,33 @@
|
|
|
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" id="not-found-title">
|
|
10
|
+
{{ page.title | default: not_found_lang.title | default: "Page not found" | escape }}
|
|
11
|
+
</h1>
|
|
12
|
+
|
|
13
|
+
<div id="not-found-text">
|
|
14
|
+
{%- comment -%} An empty Markdown page still holds a line break {%- endcomment -%}
|
|
15
|
+
{%- assign not_found_content = content | strip %}
|
|
16
|
+
{% if not_found_content != "" -%}
|
|
17
|
+
{{ content }}
|
|
18
|
+
{%- else -%}
|
|
19
|
+
<p class="lead">{{ not_found_lang.text | default: "This page does not exist (anymore)." }}</p>
|
|
20
|
+
{%- endif %}
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
{%- comment -%}
|
|
24
|
+
Shown offline by the service worker for pages not stored (data-offline,
|
|
25
|
+
_layouts/sw.js): the page may well exist, it is only not on the device
|
|
26
|
+
{%- endcomment -%}
|
|
27
|
+
{%- assign offline_title = not_found_lang.offline_title | default: "Not available offline" -%}
|
|
28
|
+
{%- assign offline_text = not_found_lang.offline_text | default: "This page has not been stored on this device. Open it again once you are online." %}
|
|
29
|
+
<script>{ if (document.documentElement.hasAttribute("data-offline")) { const title = {{ offline_title | jsonify | replace: "<", "\u003c" }}; const text = document.createElement("p"); text.className = "lead"; text.textContent = {{ offline_text | jsonify | replace: "<", "\u003c" }}; document.getElementById("not-found-title").textContent = title; document.getElementById("not-found-text").replaceChildren(text); document.title = `${title} - ${ {{ edition_title | jsonify | replace: "<", "\u003c" }} }`; } }</script>
|
|
30
|
+
|
|
31
|
+
<a class="btn btn-primary" href="{{ site.baseurl }}{{ edition_base }}/">{{ not_found_lang.home | default: "Go to the home page" }}</a>
|
|
32
|
+
|
|
33
|
+
{% include footer.html %}
|
data/_layouts/page.html
CHANGED
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 %}
|