jekyll-theme-conference 5.3.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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +96 -49
  3. data/UPGRADE_GUIDE.md +16 -1
  4. data/_data/conference_assets.yml +3 -3
  5. data/_data/lang.yml +63 -39
  6. data/_includes/checks.html +9 -1
  7. data/_includes/conference_config.json +4 -4
  8. data/_includes/embed_consent.html +1 -1
  9. data/_includes/footer.html +2 -1
  10. data/_includes/get_edition.html +15 -0
  11. data/_includes/get_link.html +1 -1
  12. data/_includes/get_link_active.html +3 -1
  13. data/_includes/get_link_tag_streaming.html +22 -4
  14. data/_includes/get_menu.html +2 -2
  15. data/_includes/get_page_title.html +2 -2
  16. data/_includes/get_pwa_icon.html +10 -0
  17. data/_includes/header.html +3 -4
  18. data/_includes/infobox.html +6 -6
  19. data/_includes/list_header_pwa.html +11 -12
  20. data/_includes/modal_link.html +4 -3
  21. data/_includes/modal_live.html +5 -52
  22. data/_includes/navbar.html +4 -3
  23. data/_includes/navbar_pwa.html +2 -1
  24. data/_includes/pwa_install.html +4 -4
  25. data/_includes/pwa_toasts.html +39 -0
  26. data/_includes/show_link_buttons.html +1 -1
  27. data/_includes/show_stream.html +63 -0
  28. data/_layouts/htaccess.html +20 -7
  29. data/_layouts/json-site.html +15 -1
  30. data/_layouts/live.html +26 -0
  31. data/_layouts/location.html +1 -1
  32. data/_layouts/manifest.html +12 -10
  33. data/_layouts/not-found.html +23 -0
  34. data/_layouts/program.html +1 -1
  35. data/_layouts/speaker.html +1 -1
  36. data/_layouts/sw.js +141 -29
  37. data/_sass/bootstrap.scss +1 -0
  38. data/_sass/theme.scss +183 -124
  39. data/assets/css/conference-only.bundle.css +1 -1
  40. data/assets/css/conference.bundle.css +1 -1
  41. data/assets/js/conference.bundle.js +2 -2
  42. metadata +6 -3
  43. data/_includes/pwa_banner.html +0 -29
  44. data/_layouts/stream-overview.html +0 -45
@@ -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
 
@@ -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 -%}
@@ -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,4 +1,4 @@
1
- {%- assign stream_label = site.data.lang[site.conference.lang].live.stream | default: "Live Stream" -%}
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
@@ -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="#"
29
+ class="{{ include.class }}{% if include.is_active %} active{% endif %}"
30
+ href="{{ stream_href | escape }}"
18
31
  title="{{ stream_label }}"
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 -%}
@@ -19,9 +19,9 @@
19
19
  {%- assign menu_empty = false -%}
20
20
 
21
21
  {%- if menu_links == "editions" -%}
22
- {%- if site.conference.editions.size < 2 -%}
22
+ {%- unless site.conference.editions.size > 1 -%}
23
23
  {%- assign menu_empty = true -%}
24
- {%- endif -%}
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 == 'stream-overview' -%}
20
- {{ site.data.lang[site.conference.lang].live.stream | default: "Live Streams" }}
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 -%}
@@ -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" />
@@ -36,14 +36,13 @@
36
36
  Before the first paint (no flash): colour mode and installed app (PWA).
37
37
  Static content, i.e. one hash for a Content Security Policy (see README).
38
38
  {%- endcomment %}
39
- <script>{ const root = document.documentElement; root.dataset.bsTheme = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; root.dataset.pwa = !!document.querySelector('link[rel="manifest"]') && (navigator.standalone === true || matchMedia("(display-mode: standalone)").matches); }</script>
39
+ <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); }</script>
40
40
  </head>
41
41
 
42
42
  <body class="min-vh-100">
43
43
  <a href="#main" class="visually-hidden-focusable position-absolute top-0 start-0">
44
44
  {{ site.data.lang[site.conference.lang].navigation.skip_to_content | default: "Skip to content" }}
45
45
  </a>
46
- {%- include pwa_banner.html %}
47
46
  <header>
48
47
  <!-- navigation bar (web only): -->
49
48
  {%- include navbar.html -%}
@@ -59,6 +58,6 @@
59
58
  {%- endunless -%}
60
59
 
61
60
  </header>
62
- <main id="main" class="container my-3" role="main" tabindex="-1">
61
+ <main id="main" class="container my-3" tabindex="-1">
63
62
 
64
63
  {%- include infobox.html -%}
@@ -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" role="alert">
6
- <h5 class="alert-heading">There was an error when generating the site!</h5>
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" role="alert" data-infobar-id="{{ infobar_id }}" data-infobar-dismiss="{{ dismissal_days | times: 86400 }}">
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" role="alert">
35
+ <div class="alert alert-{{ infobar.color }} fade show">
36
36
  {%- endif -%}
37
37
 
38
38
  {%- if infobar.title %}
39
- <h4 class="alert-heading">{{ infobar.title }}</h4>
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=" }}
@@ -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="{{ edition_title }}" />
19
+ <meta name="apple-mobile-web-app-title" content="{{ site.title }}" />
16
20
 
17
- {% if site.conference.pwa.icons -%}
18
- {%- assign icon = site.conference.pwa.icons | first -%}
19
- {%- if icon.first == nil -%}
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 -%}
@@ -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 Information' }}"></iframe>
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>
@@ -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 Stream" }}
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
- <div class="modal-body ratio ratio-16x9">
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 justify-content-around">
36
- {%- for room in edition_rooms -%}
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>
@@ -19,7 +19,7 @@
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
20
  {{ menu_name }}
21
21
  </a>
22
- <div class="dropdown-menu" aria-labelledby="navbar-dropdown{{ forloop.index0 }}">
22
+ <div class="dropdown-menu">
23
23
  {%- include show_menu_items.html %}
24
24
  </div>
25
25
  </li>
@@ -30,7 +30,8 @@
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 get_link.html class="nav-link" -%}
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
37
  {{ link.name }}
@@ -72,7 +73,7 @@
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
74
  {{ menu_name }}
74
75
  </a>
75
- <div class="dropdown-menu dropdown-menu-end" aria-labelledby="navbar-editions">
76
+ <div class="dropdown-menu dropdown-menu-end">
76
77
  {%- include show_menu_items.html %}
77
78
  </div>
78
79
  </li>
@@ -127,7 +127,8 @@
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 get_link.html class="nav-link icon-link d-flex flex-column flex-md-row align-items-center text-center" -%}
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
134
  <span>{{ link.name | default: lang.live.live | default: "Live" }}</span>
@@ -1,12 +1,12 @@
1
1
  {%- comment -%}
2
- Steps to install the app (PWA), opened by _includes/pwa_banner.html.
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.install_banner != false and edition_current -%}
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 the app" }}</h2>
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, also offline." }}</p>
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" aria-labelledby="{{ include.id }}-dropdown{{ forloop.index0 }}">
18
+ <div class="dropdown-menu">
19
19
  {% include show_menu_items.html %}
20
20
  </div>
21
21
  </div>
@@ -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>
@@ -1,19 +1,32 @@
1
1
  {%- comment -%}
2
- Apache configuration (.htaccess) of a site with several editions: forwards
3
- addresses outside the editions to the current one, if it has them (e.g.
4
- /program/ -> /2026/program/), followed by the page's own content. Without
5
- editions, only the content.
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. /program/ -> {{ edition_url }}/program/
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 [OR]
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 }}
@@ -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
- {%- if page.output == false or page.url == nil or page.url == "" or page.url == "/sw.js" or page_ext == "map" -%}
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 -%}