jekyll-theme-conference 5.4.0 → 5.5.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 +80 -19
- data/UPGRADE_GUIDE.md +10 -1
- data/_data/conference_assets.yml +3 -3
- data/_data/lang.yml +8 -0
- data/_includes/checks.html +70 -6
- data/_includes/conference_config.json +11 -6
- data/_includes/get_day_rooms.html +23 -0
- data/_includes/get_edition.html +43 -17
- data/_includes/get_link_tag_streaming.html +2 -2
- data/_includes/get_live_timestamps.html +19 -6
- data/_includes/get_talk_timestamp.html +11 -6
- data/_includes/get_visibility.html +13 -0
- data/_includes/header.html +8 -6
- data/_includes/infobox.html +26 -20
- data/_includes/list_header_meta.html +1 -1
- data/_includes/list_header_pwa.html +1 -1
- data/_includes/navbar.html +10 -6
- data/_includes/navbar_pwa.html +8 -8
- data/_includes/pwa_install.html +1 -1
- data/_includes/pwa_toasts.html +2 -1
- data/_includes/show_link_buttons.html +13 -9
- data/_includes/show_menu_items.html +1 -1
- data/_layouts/home.html +3 -3
- data/_layouts/htaccess.html +10 -5
- data/_layouts/json-site.html +7 -1
- data/_layouts/live.html +1 -1
- data/_layouts/location.html +15 -2
- data/_layouts/manifest.html +19 -1
- data/_layouts/not-found.html +12 -2
- data/_layouts/page.html +1 -1
- data/_layouts/program.html +3 -2
- data/_layouts/speaker-overview.html +1 -1
- data/_layouts/sw.js +79 -43
- data/_sass/theme.scss +7 -1
- 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 +3 -1
|
@@ -3,10 +3,15 @@
|
|
|
3
3
|
{%- comment -%}
|
|
4
4
|
Parsed in the site's timezone (Jekyll `timezone` sets TZ during the build)
|
|
5
5
|
{%- endcomment -%}
|
|
6
|
-
{%-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
{%- comment -%}
|
|
7
|
+
Talks after midnight (e.g. 25:30, talk_start_day 1) on the following date,
|
|
8
|
+
counted from noon: whole days of 24 hours would be off by one hour across
|
|
9
|
+
a change to or from daylight saving time
|
|
10
|
+
{%- endcomment -%}
|
|
11
|
+
{%- assign add_days_start = talk_start_day | times: 86400 -%}
|
|
12
|
+
{%- assign date_start = d.date | append: "T12:00:00" | date: "%s" | plus: add_days_start | date: "%Y-%m-%d" -%}
|
|
13
|
+
{%- assign timestamp_start = date_start | append: "T" | append: talk_start | append: ":00" | date: "%s" -%}
|
|
9
14
|
|
|
10
|
-
{%- assign
|
|
11
|
-
{%- assign
|
|
12
|
-
{%- assign timestamp_end =
|
|
15
|
+
{%- assign add_days_end = talk_end_day | times: 86400 -%}
|
|
16
|
+
{%- assign date_end = d.date | append: "T12:00:00" | date: "%s" | plus: add_days_end | date: "%Y-%m-%d" -%}
|
|
17
|
+
{%- assign timestamp_end = date_end | append: "T" | append: talk_end | append: ":00" | date: "%s" -%}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{%- comment -%}
|
|
2
|
+
Class hiding `v` (a link, info bar or modal) where its `visibility` says
|
|
3
|
+
so, e.g. `visibility: {pwa: false}` -> "d-pwa-none" (hidden in the app),
|
|
4
|
+
`{web: false}` -> "d-web-none" (hidden outside the app), both -> both.
|
|
5
|
+
Sets visibility_class ("" if shown everywhere).
|
|
6
|
+
{%- endcomment -%}
|
|
7
|
+
{%- assign visibility_class = "" -%}
|
|
8
|
+
{%- if v.visibility.pwa == false -%}
|
|
9
|
+
{%- assign visibility_class = "d-pwa-none" -%}
|
|
10
|
+
{%- endif -%}
|
|
11
|
+
{%- if v.visibility.web == false -%}
|
|
12
|
+
{%- assign visibility_class = visibility_class | append: " d-web-none" | strip -%}
|
|
13
|
+
{%- endif -%}
|
data/_includes/header.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<title>
|
|
11
11
|
{{- page_title | escape -}}
|
|
12
12
|
{%- unless page_title == empty %} - {% endunless -%}
|
|
13
|
-
{{- edition_title -}}
|
|
13
|
+
{{- edition_title | escape -}}
|
|
14
14
|
</title>
|
|
15
15
|
{% include list_header_meta.html %}
|
|
16
16
|
|
|
@@ -34,9 +34,11 @@
|
|
|
34
34
|
|
|
35
35
|
{%- comment -%}
|
|
36
36
|
Before the first paint (no flash): colour mode and installed app (PWA).
|
|
37
|
+
Also keeps Chrome's install prompt, which may come before the deferred
|
|
38
|
+
scripts run (_js/modules/pwa.js shows it from its install toast).
|
|
37
39
|
Static content, i.e. one hash for a Content Security Policy (see README).
|
|
38
40
|
{%- endcomment %}
|
|
39
|
-
<script>{ const root = document.documentElement; root.dataset.bsTheme = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; root.dataset.pwa = "pwaEnable" in root.dataset && (navigator.standalone === true || matchMedia("(display-mode: standalone)").matches); }</script>
|
|
41
|
+
<script>{ const root = document.documentElement; root.dataset.bsTheme = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; root.dataset.pwa = "pwaEnable" in root.dataset && (navigator.standalone === true || matchMedia("(display-mode: standalone)").matches); if ("pwaEnable" in root.dataset) addEventListener("beforeinstallprompt", (event) => { event.preventDefault(); window.conferenceInstallPrompt = event; }); }</script>
|
|
40
42
|
</head>
|
|
41
43
|
|
|
42
44
|
<body class="min-vh-100">
|
|
@@ -49,11 +51,11 @@
|
|
|
49
51
|
|
|
50
52
|
{%- assign home_url = edition_base | append: "/" -%}
|
|
51
53
|
{%- unless page.url == home_url -%}
|
|
52
|
-
<!-- site title (print only): -->
|
|
54
|
+
<!-- site title (print only, not a heading: the page has its own h1): -->
|
|
53
55
|
<div class="container d-none d-print-block mt-4 mb-4">
|
|
54
|
-
<
|
|
55
|
-
{{ edition_title }}
|
|
56
|
-
</
|
|
56
|
+
<p class="display-4">
|
|
57
|
+
{{ edition_title | escape }}
|
|
58
|
+
</p>
|
|
57
59
|
</div>
|
|
58
60
|
{%- endunless -%}
|
|
59
61
|
|
data/_includes/infobox.html
CHANGED
|
@@ -14,25 +14,32 @@
|
|
|
14
14
|
{%- comment -%} Main page of the edition, e.g. /2025/ {%- endcomment -%}
|
|
15
15
|
{%- assign home_url = edition_base | append: "/" -%}
|
|
16
16
|
|
|
17
|
-
{%-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
{%- comment -%} Bars and modals of the config, then those of the page's Front Matter (only on it) {%- endcomment -%}
|
|
18
|
+
{%- assign no_info = "" | split: "" -%}
|
|
19
|
+
{%- assign page_bars = page.info.bars | default: no_info -%}
|
|
20
|
+
{%- assign page_modals = page.info.modals | default: no_info -%}
|
|
21
|
+
{%- assign info_bars = edition_info_bars | default: no_info | concat: page_bars -%}
|
|
22
|
+
{%- assign info_modals = edition_info_modals | default: no_info | concat: page_modals -%}
|
|
23
|
+
|
|
24
|
+
{%- if info_bars.size > 0 -%}
|
|
25
|
+
{%- for infobar in info_bars -%}
|
|
26
|
+
|
|
27
|
+
{%- comment -%} Hidden on the main page with `visibility: {main: false}` {%- endcomment -%}
|
|
28
|
+
{%- assign show_infobar = true -%}
|
|
29
|
+
{%- if page.url == home_url and infobar.visibility.main == false -%}
|
|
30
|
+
{%- assign show_infobar = false -%}
|
|
26
31
|
{%- endif -%}
|
|
27
32
|
|
|
28
33
|
{%- if show_infobar %}
|
|
34
|
+
{%- assign v = infobar -%}
|
|
35
|
+
{%- include get_visibility.html -%}
|
|
29
36
|
{%- assign infobar_dropdown_id = "infobar" | append: forloop.index -%}
|
|
30
37
|
{%- assign dismissal_days = infobar.dismissal_days | default: 7 -%}
|
|
31
38
|
{%- if dismissal_days > 0 -%}
|
|
32
39
|
{%- assign infobar_id = infobar.title | default: '' | append: infobar.text | slugify -%}
|
|
33
|
-
<div class="alert alert-{{ infobar.color }} alert-dismissible fade show" data-infobar-id="{{ infobar_id }}" data-infobar-dismiss="{{ dismissal_days | times: 86400 }}">
|
|
40
|
+
<div class="alert alert-{{ infobar.color }} alert-dismissible fade show {{ visibility_class }}" data-infobar-id="{{ infobar_id }}" data-infobar-dismiss="{{ dismissal_days | times: 86400 }}">
|
|
34
41
|
{%- else -%}
|
|
35
|
-
<div class="alert alert-{{ infobar.color }} fade show">
|
|
42
|
+
<div class="alert alert-{{ infobar.color }} fade show {{ visibility_class }}">
|
|
36
43
|
{%- endif -%}
|
|
37
44
|
|
|
38
45
|
{%- if infobar.title %}
|
|
@@ -57,23 +64,22 @@
|
|
|
57
64
|
{%- endfor -%}
|
|
58
65
|
{%- endif -%}
|
|
59
66
|
|
|
60
|
-
{%- if
|
|
61
|
-
{%- for infomodal in
|
|
67
|
+
{%- if info_modals.size > 0 -%}
|
|
68
|
+
{%- for infomodal in info_modals -%}
|
|
62
69
|
|
|
63
|
-
{%- assign show_infomodal =
|
|
64
|
-
{%- if page.url == home_url and infomodal.
|
|
65
|
-
{%- assign show_infomodal =
|
|
66
|
-
{%- endif -%}
|
|
67
|
-
{%- if page.url != home_url and infomodal.main_only != true -%}
|
|
68
|
-
{%- assign show_infomodal = true -%}
|
|
70
|
+
{%- assign show_infomodal = true -%}
|
|
71
|
+
{%- if page.url == home_url and infomodal.visibility.main == false -%}
|
|
72
|
+
{%- assign show_infomodal = false -%}
|
|
69
73
|
{%- endif -%}
|
|
70
74
|
|
|
71
75
|
{%- if show_infomodal %}
|
|
76
|
+
{%- assign v = infomodal -%}
|
|
77
|
+
{%- include get_visibility.html -%}
|
|
72
78
|
{%- assign infomodal_id = infomodal.title | default: '' | append: infomodal.text | slugify -%}
|
|
73
79
|
{%- assign dismissal_days = infomodal.dismissal_days | default: 7 -%}
|
|
74
80
|
|
|
75
81
|
<div
|
|
76
|
-
class="modal fade infomodal"
|
|
82
|
+
class="modal fade infomodal {{ visibility_class }}"
|
|
77
83
|
tabindex="-1"
|
|
78
84
|
role="dialog"
|
|
79
85
|
aria-labelledby="infomodal-title-{{ forloop.index }}"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<meta name="twitter:description" content="{{ page_description | escape }}" />
|
|
19
19
|
|
|
20
20
|
{%- comment -%} Open Graph tags {%- endcomment -%}
|
|
21
|
-
<meta property="og:site_name" content="{{ edition_title }}" />
|
|
21
|
+
<meta property="og:site_name" content="{{ edition_title | escape }}" />
|
|
22
22
|
{%- if edition_link_preview.img and edition_link_preview.img.open_graph %}
|
|
23
23
|
{%- assign og_image_url = edition_link_preview.img.open_graph | prepend: '/assets/images/' | prepend: site.baseurl | prepend: site.url -%}
|
|
24
24
|
<meta property="og:image" content="{{ og_image_url }}" />
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
17
17
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
18
18
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
19
|
-
<meta name="apple-mobile-web-app-title" content="{{ site.title }}" />
|
|
19
|
+
<meta name="apple-mobile-web-app-title" content="{{ site.title | escape }}" />
|
|
20
20
|
|
|
21
21
|
{% include get_pwa_icon.html -%}
|
|
22
22
|
{%- if pwa_icon_url -%}
|
data/_includes/navbar.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<nav class="navbar navbar-expand-{{ breakpoint }} d-pwa-none bg-body-tertiary mb-3" aria-label="{{ site.data.lang[site.conference.lang].navigation.main | default: 'Main navigation' }}">
|
|
3
3
|
<div class="container">
|
|
4
4
|
|
|
5
|
-
<a class="navbar-brand order-0" href="{{ site.baseurl }}{{ edition_base }}/">{{ edition_title }}</a>
|
|
5
|
+
<a class="navbar-brand order-0" href="{{ site.baseurl }}{{ edition_base }}/">{{ edition_title | escape }}</a>
|
|
6
6
|
|
|
7
7
|
<button class="navbar-toggler order-1" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ site.data.lang[site.conference.lang].navigation.toggle | default: 'Toggle navigation menu' }}">
|
|
8
8
|
<span class="navbar-toggler-icon" aria-hidden="true"></span>
|
|
@@ -11,13 +11,17 @@
|
|
|
11
11
|
<div class="collapse navbar-collapse order-3 order-md-1" id="navbarSupportedContent">
|
|
12
12
|
<ul class="navbar-nav me-auto">
|
|
13
13
|
{%- for link in edition_nav_links -%}
|
|
14
|
+
{%- comment -%} Links hidden outside the app (in it, this bar is hidden) {%- endcomment -%}
|
|
15
|
+
{%- if link.visibility.web == false -%}
|
|
16
|
+
{%- continue -%}
|
|
17
|
+
{%- endif -%}
|
|
14
18
|
|
|
15
19
|
{%- if link.menu -%}
|
|
16
20
|
{%- include get_menu.html -%}
|
|
17
21
|
{%- unless menu_empty %}
|
|
18
22
|
<li class="nav-item dropdown">
|
|
19
23
|
<a class="nav-link dropdown-toggle" href="#" id="navbar-dropdown{{ forloop.index0 }}" role="button" data-bs-toggle="dropdown" aria-expanded="false"{% if menu_label %} aria-label="{{ menu_label }}"{% endif %}>
|
|
20
|
-
{{ menu_name }}
|
|
24
|
+
{{ menu_name | escape }}
|
|
21
25
|
</a>
|
|
22
26
|
<div class="dropdown-menu">
|
|
23
27
|
{%- include show_menu_items.html %}
|
|
@@ -34,7 +38,7 @@
|
|
|
34
38
|
{%- include get_link.html class="nav-link" is_active=is_active -%}
|
|
35
39
|
{{ link_tag }}
|
|
36
40
|
{%- if link.name -%}
|
|
37
|
-
{{ link.name }}
|
|
41
|
+
{{ link.name | escape }}
|
|
38
42
|
{%- else -%}
|
|
39
43
|
{% include get_live_icon.html %}
|
|
40
44
|
{%- endif -%}
|
|
@@ -44,7 +48,7 @@
|
|
|
44
48
|
{%- if link.name_inactive -%}
|
|
45
49
|
<li class="nav-item live-hide d-print-inline-block" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
|
|
46
50
|
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">
|
|
47
|
-
{{ link.name_inactive }}
|
|
51
|
+
{{ link.name_inactive | escape }}
|
|
48
52
|
</a>
|
|
49
53
|
</li>
|
|
50
54
|
{%- endif -%}
|
|
@@ -56,7 +60,7 @@
|
|
|
56
60
|
{%- include get_link_active.html -%}
|
|
57
61
|
{%- include get_link.html class="nav-link" is_active=is_active -%}
|
|
58
62
|
{{ link_tag }}
|
|
59
|
-
{{ link.name }}
|
|
63
|
+
{{ link.name | escape }}
|
|
60
64
|
</a>
|
|
61
65
|
</li>
|
|
62
66
|
{%- endif -%}
|
|
@@ -71,7 +75,7 @@
|
|
|
71
75
|
<ul class="navbar-nav">
|
|
72
76
|
<li class="nav-item dropdown">
|
|
73
77
|
<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 %}>
|
|
74
|
-
{{ menu_name }}
|
|
78
|
+
{{ menu_name | escape }}
|
|
75
79
|
</a>
|
|
76
80
|
<div class="dropdown-menu dropdown-menu-end">
|
|
77
81
|
{%- include show_menu_items.html %}
|
data/_includes/navbar_pwa.html
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
{%- assign pwa_entries = "" | split: "" -%}
|
|
20
20
|
{%- assign pwa_live = nil -%}
|
|
21
21
|
{%- for link in edition_nav_links -%}
|
|
22
|
-
{%- if link.
|
|
22
|
+
{%- if link.visibility.pwa == false -%}
|
|
23
23
|
{%- continue -%}
|
|
24
24
|
{%- endif -%}
|
|
25
25
|
|
|
@@ -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 -%}
|
|
@@ -131,7 +131,7 @@
|
|
|
131
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
132
|
{{ link_tag }}
|
|
133
133
|
{% include get_live_icon.html icon_only=true %}
|
|
134
|
-
<span>{{ link.name | default: lang.live.live | default: "Live" }}</span>
|
|
134
|
+
<span>{{ link.name | default: lang.live.live | default: "Live" | escape }}</span>
|
|
135
135
|
</a>
|
|
136
136
|
</div>
|
|
137
137
|
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
<div class="px-2 live-hide" {{ pwa_live_range }}>
|
|
140
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
141
|
{% include get_live_icon.html icon_only=true %}
|
|
142
|
-
<span>{{ link.name_inactive }}</span>
|
|
142
|
+
<span>{{ link.name_inactive | escape }}</span>
|
|
143
143
|
</a>
|
|
144
144
|
</div>
|
|
145
145
|
{%- endif -%}
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
{%- include get_link.html class="list-group-item list-group-item-action icon-link" is_active=is_active %}
|
|
186
186
|
{{ link_tag | replace_first: "<a", pwa_link_open }}
|
|
187
187
|
{% assign link_icon_name = link_icon | default: 'link-45deg' %}{% include icon.html name=link_icon_name %}
|
|
188
|
-
{{ link.name }}
|
|
188
|
+
{{ link.name | escape }}
|
|
189
189
|
</a>
|
|
190
190
|
{%- endfor -%}
|
|
191
191
|
{%- endcapture -%}
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
{%- include get_pwa_in.html -%}
|
|
205
205
|
{%- include get_menu.html %}
|
|
206
206
|
<div{{ pwa_more_attr }}>
|
|
207
|
-
<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>
|
|
208
208
|
<div class="list-group list-group-flush">
|
|
209
209
|
{%- include show_menu_items.html item_class="list-group-item list-group-item-action" %}
|
|
210
210
|
</div>
|
data/_includes/pwa_install.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
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_toast != false and edition_current -%}
|
|
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">
|
data/_includes/pwa_toasts.html
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
{%- if site.conference.pwa.enable -%}
|
|
9
9
|
{%- assign lang = site.data.lang[site.conference.lang] %}
|
|
10
10
|
<div class="toast-container pwa-toasts d-print-none" role="status">
|
|
11
|
-
{%-
|
|
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 -%}
|
|
12
13
|
{%- include get_pwa_icon.html %}
|
|
13
14
|
<div class="toast pwa-toast" id="pwa-install-toast">
|
|
14
15
|
<div class="d-flex align-items-center gap-2 p-2">
|
|
@@ -3,17 +3,21 @@
|
|
|
3
3
|
links=page.links class="btn btn-outline-primary" id="main" %}. Menus become
|
|
4
4
|
dropdowns with the ids "<id>-dropdown<n>", unique per page. With
|
|
5
5
|
popper="fixed", they may exceed a container clipping its content (e.g. a
|
|
6
|
-
modal).
|
|
6
|
+
modal). A link's `visibility` hides it in the app or outside (see
|
|
7
|
+
get_visibility.html).
|
|
7
8
|
{%- endcomment -%}
|
|
8
9
|
{%- assign btn_default = include.class -%}
|
|
9
10
|
{% for link in include.links %}
|
|
11
|
+
{%- assign v = link -%}
|
|
12
|
+
{%- include get_visibility.html -%}
|
|
13
|
+
{%- assign btn_class = btn_default | append: " " | append: visibility_class | strip -%}
|
|
10
14
|
|
|
11
15
|
{% if link.menu %}
|
|
12
16
|
{% include get_menu.html %}
|
|
13
17
|
{% unless menu_empty %}
|
|
14
|
-
<div class="dropdown d-inline">
|
|
18
|
+
<div class="dropdown d-inline {{ visibility_class }}">
|
|
15
19
|
<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 }}
|
|
20
|
+
{{ menu_name | escape }}
|
|
17
21
|
</a>
|
|
18
22
|
<div class="dropdown-menu">
|
|
19
23
|
{% include show_menu_items.html %}
|
|
@@ -25,11 +29,11 @@
|
|
|
25
29
|
{% if edition_live %}
|
|
26
30
|
{%- include get_live_timestamps.html -%}
|
|
27
31
|
|
|
28
|
-
<span class="live-show d-none d-print-none" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
|
|
32
|
+
<span class="live-show d-none d-print-none {{ visibility_class }}" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
|
|
29
33
|
{%- include get_link.html class=btn_default -%}
|
|
30
34
|
{{ link_tag }}
|
|
31
35
|
{%- if link.name -%}
|
|
32
|
-
{{ link.name }}
|
|
36
|
+
{{ link.name | escape }}
|
|
33
37
|
{%- else -%}
|
|
34
38
|
{% include get_live_icon.html %}
|
|
35
39
|
{%- endif -%}
|
|
@@ -37,17 +41,17 @@
|
|
|
37
41
|
</span>
|
|
38
42
|
|
|
39
43
|
{%- if link.name_inactive -%}
|
|
40
|
-
<span class="live-hide d-print-inline {{
|
|
41
|
-
{{ link.name_inactive }}
|
|
44
|
+
<span class="live-hide d-print-inline {{ btn_class }} disabled" aria-disabled="true" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
|
|
45
|
+
{{ link.name_inactive | escape }}
|
|
42
46
|
</span>
|
|
43
47
|
{%- endif -%}
|
|
44
48
|
|
|
45
49
|
{%- endif -%}
|
|
46
50
|
|
|
47
51
|
{% else %}
|
|
48
|
-
{% include get_link.html class=
|
|
52
|
+
{% include get_link.html class=btn_class %}
|
|
49
53
|
{{ link_tag }}
|
|
50
|
-
{{ link.name }}
|
|
54
|
+
{{ link.name | escape }}
|
|
51
55
|
</a>
|
|
52
56
|
{% endif %}
|
|
53
57
|
{% endfor %}
|
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,17 +1,22 @@
|
|
|
1
1
|
{%- comment -%}
|
|
2
2
|
Apache configuration (.htaccess) of the site: with several editions,
|
|
3
|
-
forwards
|
|
4
|
-
(e.g. /program/ -> /2026/program/). Shows
|
|
5
|
-
(layout: not-found, e.g. 404.md), if any.
|
|
6
|
-
content, which can override both.
|
|
3
|
+
forwards the root (e.g. / -> /2026/) and addresses outside the editions to
|
|
4
|
+
the current one, if it has them (e.g. /program/ -> /2026/program/). Shows
|
|
5
|
+
the page for missing addresses (layout: not-found, e.g. 404.md), if any.
|
|
6
|
+
Followed by the page's own content, which can override both.
|
|
7
7
|
{%- endcomment -%}
|
|
8
8
|
{%- include get_edition.html -%}
|
|
9
9
|
{%- if edition_current_id -%}
|
|
10
10
|
{%- assign edition_url = site.baseurl | append: "/" | append: edition_current_id -%}
|
|
11
|
+
RewriteEngine On
|
|
12
|
+
|
|
13
|
+
# Forward the root page to the current edition, e.g. / and /index.html ->
|
|
14
|
+
# {{ edition_url }}/ (a server redirect instead of the root page's meta refresh)
|
|
15
|
+
RewriteRule ^(index\.html)?$ {{ edition_url }}/ [R=302,L]
|
|
16
|
+
|
|
11
17
|
# Forward to the current edition: files, e.g. /documents/slides/x.pdf ->
|
|
12
18
|
# {{ edition_url }}/documents/slides/x.pdf, and pages with their trailing slash, e.g.
|
|
13
19
|
# /program -> {{ edition_url }}/program/ (folders without a page are not forwarded)
|
|
14
|
-
RewriteEngine On
|
|
15
20
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
16
21
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
17
22
|
RewriteCond %{DOCUMENT_ROOT}{{ edition_url }}/$1 -f
|
data/_layouts/json-site.html
CHANGED
|
@@ -66,6 +66,12 @@
|
|
|
66
66
|
{%- endfor -%}
|
|
67
67
|
|
|
68
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: "," -%}
|
|
69
75
|
{%- for file in site.static_files -%}
|
|
70
76
|
{%- assign ext = file.extname | downcase -%}
|
|
71
77
|
{%- assign woff2_path = file.path | append: "2" -%}
|
|
@@ -75,7 +81,7 @@
|
|
|
75
81
|
{%- if ext == ".woff" and static_paths contains woff2_path -%}
|
|
76
82
|
{%- continue -%}
|
|
77
83
|
{%- endif -%}
|
|
78
|
-
{%- 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." -%}
|
|
79
85
|
{%- continue -%}
|
|
80
86
|
{%- endif -%}
|
|
81
87
|
{%- assign url = file.path | prepend: site.baseurl -%}
|
data/_layouts/live.html
CHANGED
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 %}
|
|
@@ -33,7 +33,14 @@
|
|
|
33
33
|
</address>
|
|
34
34
|
{% endif %}
|
|
35
35
|
|
|
36
|
-
{
|
|
36
|
+
{%- comment -%}
|
|
37
|
+
The map goes where the content has the marker, else after the content,
|
|
38
|
+
e.g. directions above the map and a room plan below it
|
|
39
|
+
{%- endcomment -%}
|
|
40
|
+
{%- assign map_marker = "<!-- map -->" -%}
|
|
41
|
+
{%- assign content_parts = content | split: map_marker %}
|
|
42
|
+
|
|
43
|
+
{{ content_parts[0] }}
|
|
37
44
|
|
|
38
45
|
{% if page.map %}
|
|
39
46
|
{%- assign map_lang = site.data.lang[site.conference.lang].location -%}
|
|
@@ -56,6 +63,12 @@
|
|
|
56
63
|
</div>
|
|
57
64
|
{% endif %}
|
|
58
65
|
|
|
66
|
+
{% if content_parts[1] %}
|
|
67
|
+
<div class="mt-4">
|
|
68
|
+
{{ content_parts[1] }}
|
|
69
|
+
</div>
|
|
70
|
+
{% endif %}
|
|
71
|
+
|
|
59
72
|
{% include footer.html %}
|
|
60
73
|
{%- else -%}
|
|
61
74
|
{%- include hidden_page.html -%}
|
data/_layouts/manifest.html
CHANGED
|
@@ -37,14 +37,32 @@
|
|
|
37
37
|
"shortcuts": [
|
|
38
38
|
{%- assign first_shortcut = true -%}
|
|
39
39
|
{%- for link in edition_nav_links -%}
|
|
40
|
-
{%- unless link.
|
|
40
|
+
{%- unless link.visibility.pwa == false or link.live or link.menu or link.video -%}
|
|
41
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 -%}
|
|
42
59
|
{%- unless first_shortcut -%},{%- endunless -%}
|
|
43
60
|
{%- assign first_shortcut = false %}
|
|
44
61
|
{
|
|
45
62
|
"name": {{ link.name | jsonify }},
|
|
46
63
|
"url": {{ link_href | jsonify }}
|
|
47
64
|
}
|
|
65
|
+
{%- endif -%}
|
|
48
66
|
{%- endunless -%}
|
|
49
67
|
{%- endfor %}
|
|
50
68
|
]
|
data/_layouts/not-found.html
CHANGED
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
{%- endcomment -%}
|
|
7
7
|
{%- assign not_found_lang = site.data.lang[site.conference.lang].not_found %}
|
|
8
8
|
|
|
9
|
-
<h1 class="display-5 mb-3 text-break">
|
|
10
|
-
{{ page.title | default: not_found_lang.title | default: "Page not found" }}
|
|
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
11
|
</h1>
|
|
12
12
|
|
|
13
|
+
<div id="not-found-text">
|
|
13
14
|
{%- comment -%} An empty Markdown page still holds a line break {%- endcomment -%}
|
|
14
15
|
{%- assign not_found_content = content | strip %}
|
|
15
16
|
{% if not_found_content != "" -%}
|
|
@@ -17,6 +18,15 @@
|
|
|
17
18
|
{%- else -%}
|
|
18
19
|
<p class="lead">{{ not_found_lang.text | default: "This page does not exist (anymore)." }}</p>
|
|
19
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>
|
|
20
30
|
|
|
21
31
|
<a class="btn btn-primary" href="{{ site.baseurl }}{{ edition_base }}/">{{ not_found_lang.home | default: "Go to the home page" }}</a>
|
|
22
32
|
|
data/_layouts/page.html
CHANGED
data/_layouts/program.html
CHANGED
|
@@ -41,13 +41,14 @@
|
|
|
41
41
|
<div class="tab-pane {%- if forloop.index == 1 %} active{% endif %}" id="{{ day_hash }}" role="tabpanel" aria-labelledby="tab-{{ day_hash }}">
|
|
42
42
|
{%- endif %}
|
|
43
43
|
|
|
44
|
+
{%- include get_day_rooms.html %}
|
|
44
45
|
<div class="program-table-container w-100 overflow-x-scroll">
|
|
45
46
|
<table class="table program-table w-auto mx-auto align-top mb-0" aria-label="{{ site.data.lang[site.conference.lang].program.schedule | default: 'Conference schedule' }}{% if nbr_days > 1 %} - {{ day_name | escape }}{% endif %}">
|
|
46
47
|
<thead>
|
|
47
48
|
<tr>
|
|
48
49
|
<th scope="col" class="program-time text-center" aria-label="{{ site.data.lang[site.conference.lang].program.time | default: 'Time' }}">#</th>
|
|
49
50
|
{%- assign nbr_rooms = d.rooms | size -%}
|
|
50
|
-
{%- for r in
|
|
51
|
+
{%- for r in day_rooms -%}
|
|
51
52
|
{%- assign room = edition_rooms | where: 'name', r.name | first %}
|
|
52
53
|
<th scope="col" class="program-talk text-center" id="room-{{ day_hash }}-{{ forloop.index }}">
|
|
53
54
|
{%- comment -%} Shown and operated by _js/modules/program.js, a visual aid only {%- endcomment -%}
|
|
@@ -164,7 +165,7 @@
|
|
|
164
165
|
</th>
|
|
165
166
|
{%- endif %}
|
|
166
167
|
|
|
167
|
-
{%- for r in
|
|
168
|
+
{%- for r in day_rooms -%}
|
|
168
169
|
{%- assign room = edition_rooms | where: 'name', r.name | first -%}
|
|
169
170
|
|
|
170
171
|
{%- assign active_talk = false -%}
|