jekyll-theme-conference 5.1.0 → 5.3.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 +87 -15
- data/_data/conference_assets.yml +4 -4
- data/_data/lang.yml +57 -1
- data/_includes/checks.html +1 -1
- data/_includes/embed_consent.html +1 -1
- data/_includes/footer.html +2 -0
- data/_includes/get_day_time.html +11 -2
- data/_includes/get_link.html +1 -1
- data/_includes/get_link_active.html +17 -0
- data/_includes/get_live_icon.html +5 -1
- data/_includes/get_pwa_in.html +26 -0
- data/_includes/get_talk_overview_talk.html +3 -3
- data/_includes/get_track_properties.html +2 -0
- data/_includes/header.html +2 -1
- data/_includes/icon.html +12 -3
- data/_includes/infobox.html +19 -4
- data/_includes/list_header_pwa.html +5 -0
- data/_includes/list_speakers.html +2 -2
- data/_includes/list_tags.html +1 -1
- data/_includes/modal_link.html +2 -2
- data/_includes/modal_live.html +2 -2
- data/_includes/navbar.html +1 -9
- data/_includes/navbar_pwa.html +200 -30
- data/_includes/navbar_rooms.html +3 -3
- data/_includes/pwa_banner.html +29 -0
- data/_includes/pwa_install.html +26 -0
- data/_includes/show_link_buttons.html +53 -0
- data/_includes/show_menu_items.html +5 -3
- data/_includes/show_room.html +2 -2
- data/_includes/show_talk.html +2 -2
- data/_includes/show_talk_duration.html +2 -2
- data/_includes/show_talk_listed.html +2 -2
- data/_includes/show_talk_time.html +2 -2
- data/_layouts/home.html +2 -47
- data/_layouts/location.html +3 -3
- data/_layouts/program.html +21 -5
- data/_layouts/room.html +5 -11
- data/_layouts/speaker-overview.html +1 -1
- data/_layouts/speaker.html +8 -8
- data/_layouts/stream-overview.html +1 -1
- data/_layouts/talk-overview.html +4 -4
- data/_layouts/talk.html +12 -12
- data/_sass/bootstrap.scss +1 -0
- data/_sass/theme.scss +318 -3
- data/assets/css/conference-only.bundle.css +1 -1
- data/assets/css/conference.bundle.css +1 -1
- data/assets/css/map.bundle.css +1 -1
- data/assets/js/conference.bundle.js +2 -2
- metadata +6 -1
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
<link rel="manifest" href="{{ site.baseurl }}/manifest.json" />
|
|
6
6
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
7
|
+
{%- if site.conference.pwa.theme_color_dark %}
|
|
8
|
+
<meta name="theme-color" content="{{ pwa_theme_color }}" media="(prefers-color-scheme: light)" />
|
|
9
|
+
<meta name="theme-color" content="{{ site.conference.pwa.theme_color_dark }}" media="(prefers-color-scheme: dark)" />
|
|
10
|
+
{%- else %}
|
|
7
11
|
<meta name="theme-color" content="{{ pwa_theme_color }}" />
|
|
12
|
+
{%- endif %}
|
|
8
13
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
9
14
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
10
15
|
<meta name="apple-mobile-web-app-title" content="{{ edition_title }}" />
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
{%- if include.text_only -%}
|
|
5
5
|
{{- speaker_name -}}
|
|
6
6
|
{%- elsif speaker.hide -%}
|
|
7
|
-
{{- speaker_name | escape -}}
|
|
7
|
+
<span class="speaker-name">{{- speaker_name | escape -}}</span>
|
|
8
8
|
{%- else -%}
|
|
9
|
-
<a class="text-reset link-underline-{{ track_color }} link-underline-opacity-0 link-underline-opacity-100-hover" href="{{ speaker.url | prepend: site.baseurl }}">
|
|
9
|
+
<a class="speaker-name text-reset link-underline-{{ track_color }} link-underline-opacity-0 link-underline-opacity-100-hover" href="{{ speaker.url | prepend: site.baseurl }}">
|
|
10
10
|
{{- speaker_name | escape -}}
|
|
11
11
|
</a>
|
|
12
12
|
{%- endif -%}
|
data/_includes/list_tags.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{%- for tag in talk.tags -%}
|
|
2
2
|
{%- include get_tag_icon.html -%}
|
|
3
|
-
<span class="badge fw-normal bg-body-secondary text-body-secondary {{ include.class }}">{{ tag_html }}</span>
|
|
3
|
+
<span class="talk-tag badge fw-normal bg-body-secondary text-body-secondary {{ include.class }}">{{ tag_html }}</span>
|
|
4
4
|
{%- endfor -%}
|
data/_includes/modal_link.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<div class="modal-content">
|
|
4
4
|
<div class="modal-header">
|
|
5
5
|
<div class="modal-title">
|
|
6
|
-
<h2 class="h3 mb-2
|
|
7
|
-
<p class="
|
|
6
|
+
<h2 class="talk-title h3 mb-2" id="link-modal-label"></h2>
|
|
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>
|
data/_includes/modal_live.html
CHANGED
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
<div class="align-self-start live-time my-0 small" id="stream-info-time" data-time=""></div>
|
|
26
26
|
<div class="align-self-start ps-2 border-start border-4" id="stream-info-color">
|
|
27
27
|
<p class="mb-0">
|
|
28
|
-
<a class="text-reset link-underline-opacity-0 link-underline-opacity-100-hover" href="#" id="stream-info-talk"></a>
|
|
28
|
+
<a class="talk-title text-reset link-underline-opacity-0 link-underline-opacity-100-hover" href="#" id="stream-info-talk"></a>
|
|
29
29
|
</p>
|
|
30
|
-
<p class="mb-0
|
|
30
|
+
<p class="talk-speakers mb-0" id="stream-info-speakers"></p>
|
|
31
31
|
</div>
|
|
32
32
|
<div class="align-self-center m-0 mt-1 d-none" id="stream-info-links"></div>
|
|
33
33
|
</div>
|
data/_includes/navbar.html
CHANGED
|
@@ -52,15 +52,7 @@
|
|
|
52
52
|
|
|
53
53
|
{%- else %}
|
|
54
54
|
<li class="nav-item">
|
|
55
|
-
{
|
|
56
|
-
{%- if link.relative_url -%}
|
|
57
|
-
{%- assign link_url = link.relative_url | prepend: edition_base -%}
|
|
58
|
-
{%- endif -%}
|
|
59
|
-
{% if page.url == link_url or link.relative_url != "/" and page.url contains link_url %}
|
|
60
|
-
{% assign is_active = true %}
|
|
61
|
-
{% else %}
|
|
62
|
-
{% assign is_active = false %}
|
|
63
|
-
{% endif %}
|
|
55
|
+
{%- include get_link_active.html -%}
|
|
64
56
|
{%- include get_link.html class="nav-link" is_active=is_active -%}
|
|
65
57
|
{{ link_tag }}
|
|
66
58
|
{{ link.name }}
|
data/_includes/navbar_pwa.html
CHANGED
|
@@ -1,47 +1,217 @@
|
|
|
1
|
+
{%- comment -%}
|
|
2
|
+
Tab bar of the installed app (PWA), at most five tabs (four on narrow
|
|
3
|
+
phones, e.g. iPhone mini): beyond, the first four (three) and "More" with
|
|
4
|
+
the others, e.g. "Program · Talks · Speakers · Location · More". A link
|
|
5
|
+
with `live: true` adds a tab before "More" while live, outside live its
|
|
6
|
+
`name_inactive` if given (disabled). Without, the tab takes no slot
|
|
7
|
+
outside live: while live, the last tabs give way to it and move into
|
|
8
|
+
"More". Menus open as sheets from the bottom, captured in
|
|
9
|
+
pwa_sheets: footer.html places them outside the bar, whose stacking
|
|
10
|
+
context would keep them below the backdrop. Entries not a tab in every
|
|
11
|
+
state of the bar (width, live) name the states they are one in
|
|
12
|
+
(data-pwa-in, see theme.scss).
|
|
13
|
+
{%- endcomment -%}
|
|
14
|
+
{%- assign pwa_sheets = "" -%}
|
|
1
15
|
{%- if site.conference.pwa and site.conference.pwa.enable -%}
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
16
|
+
{%- assign lang = site.data.lang[site.conference.lang] -%}
|
|
17
|
+
|
|
18
|
+
{%- comment -%} Entries: links and non-empty menus, except hidden ones and the live one (shown separately) {%- endcomment -%}
|
|
19
|
+
{%- assign pwa_entries = "" | split: "" -%}
|
|
20
|
+
{%- assign pwa_live = nil -%}
|
|
21
|
+
{%- for link in edition_nav_links -%}
|
|
22
|
+
{%- if link.pwa_hide -%}
|
|
23
|
+
{%- continue -%}
|
|
24
|
+
{%- endif -%}
|
|
25
|
+
|
|
26
|
+
{%- if link.live -%}
|
|
27
|
+
{%- if edition_live and pwa_live == nil -%}
|
|
28
|
+
{%- assign pwa_live = link -%}
|
|
29
|
+
{%- endif -%}
|
|
30
|
+
{%- continue -%}
|
|
31
|
+
{%- endif -%}
|
|
32
|
+
|
|
33
|
+
{%- if link.menu -%}
|
|
34
|
+
{%- include get_menu.html -%}
|
|
35
|
+
{%- if menu_empty -%}
|
|
36
|
+
{%- continue -%}
|
|
37
|
+
{%- endif -%}
|
|
38
|
+
{%- endif -%}
|
|
39
|
+
{%- assign pwa_entries = pwa_entries | push: link -%}
|
|
40
|
+
{%- endfor -%}
|
|
8
41
|
|
|
9
|
-
|
|
10
|
-
|
|
42
|
+
{%- comment -%}
|
|
43
|
+
Tabs besides Live and More per state (pwa_states, pwa_counts): four or
|
|
44
|
+
five slots, outside live or during ("-live"), less one where Live shows
|
|
45
|
+
(outside live: name_inactive), less one for More if not all fit. E.g.
|
|
46
|
+
five entries and Live without name_inactive: 3 (4), 2 (4-live), 5 (5)
|
|
47
|
+
and 3 (5-live)
|
|
48
|
+
{%- endcomment -%}
|
|
49
|
+
{%- assign pwa_states = "" | split: "" -%}
|
|
50
|
+
{%- assign pwa_counts = "" | split: "" -%}
|
|
51
|
+
{%- assign pwa_suffixes = "|-live" | split: "|" -%}
|
|
52
|
+
{%- for pwa_max_tabs in (4..5) -%}
|
|
53
|
+
{%- for pwa_suffix in pwa_suffixes -%}
|
|
54
|
+
{%- assign pwa_live_tab = pwa_live.name_inactive -%}
|
|
55
|
+
{%- if pwa_suffix == "-live" -%}
|
|
56
|
+
{%- assign pwa_live_tab = pwa_live -%}
|
|
57
|
+
{%- endif -%}
|
|
11
58
|
|
|
12
|
-
|
|
59
|
+
{%- assign pwa_slots = pwa_max_tabs -%}
|
|
60
|
+
{%- if pwa_live_tab -%}
|
|
61
|
+
{%- assign pwa_slots = pwa_max_tabs | minus: 1 -%}
|
|
62
|
+
{%- endif -%}
|
|
63
|
+
{%- assign pwa_count = pwa_entries.size -%}
|
|
64
|
+
{%- if pwa_count > pwa_slots -%}
|
|
65
|
+
{%- assign pwa_count = pwa_slots | minus: 1 -%}
|
|
66
|
+
{%- endif -%}
|
|
67
|
+
|
|
68
|
+
{%- assign pwa_state = pwa_max_tabs | append: pwa_suffix -%}
|
|
69
|
+
{%- assign pwa_states = pwa_states | push: pwa_state -%}
|
|
70
|
+
{%- assign pwa_counts = pwa_counts | push: pwa_count -%}
|
|
71
|
+
{%- endfor -%}
|
|
72
|
+
{%- endfor -%}
|
|
73
|
+
|
|
74
|
+
{%- comment -%} Entries a tab in any state, and in "More" in any {%- endcomment -%}
|
|
75
|
+
{%- assign pwa_tab_count = pwa_counts | sort | last -%}
|
|
76
|
+
{%- assign pwa_more_from = pwa_counts | sort | first -%}
|
|
77
|
+
|
|
78
|
+
{%- comment -%} Times when live, for .live-show and .live-hide (Live and name_inactive) {%- endcomment -%}
|
|
79
|
+
{%- if pwa_live -%}
|
|
80
|
+
{%- include get_live_timestamps.html -%}
|
|
81
|
+
{%- capture pwa_live_range %}data-start="{{ live_starts }}" data-end="{{ live_ends }}"{% endcapture -%}
|
|
82
|
+
{%- endif %}
|
|
83
|
+
<nav class="navbar navbar-expand-sm navbar-pwa d-pwa-block bg-body-secondary" aria-label="{{ lang.navigation.main | default: 'Main navigation' }}">
|
|
84
|
+
<div class="container">
|
|
85
|
+
<div class="navbar-nav flex-row w-100 align-items-end justify-content-around">
|
|
86
|
+
{%- for link in pwa_entries limit: pwa_tab_count -%}
|
|
87
|
+
{%- assign pwa_index = forloop.index0 -%}
|
|
88
|
+
{%- include get_pwa_in.html -%}
|
|
89
|
+
{%- if link.menu -%}
|
|
13
90
|
{%- include get_menu.html -%}
|
|
14
|
-
{%-
|
|
15
|
-
<div class="
|
|
16
|
-
<
|
|
17
|
-
{{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
{%- include show_menu_items.html %}
|
|
21
|
-
</div>
|
|
91
|
+
{%- assign sheet_id = "navbar-pwa-sheet" | append: forloop.index0 %}
|
|
92
|
+
<div class="px-2"{{ pwa_tab_attr }}>
|
|
93
|
+
<button type="button" class="nav-link icon-link d-flex flex-column flex-md-row align-items-center text-center" data-bs-toggle="offcanvas" data-bs-target="#{{ sheet_id }}" aria-controls="{{ sheet_id }}"{% if menu_label %} aria-label="{{ menu_label }}"{% endif %}>
|
|
94
|
+
{% assign link_icon_name = link.icon | default: 'list' %}{% include icon.html name=link_icon_name %}
|
|
95
|
+
<span>{{ menu_name }}</span>
|
|
96
|
+
</button>
|
|
22
97
|
</div>
|
|
23
|
-
|
|
98
|
+
|
|
99
|
+
{%- capture pwa_sheet %}
|
|
100
|
+
<div class="offcanvas offcanvas-bottom h-auto rounded-top-4 d-print-none navbar-pwa-sheet" tabindex="-1" id="{{ sheet_id }}" aria-labelledby="{{ sheet_id }}-label">
|
|
101
|
+
<div class="offcanvas-header">
|
|
102
|
+
<h2 class="offcanvas-title h5" id="{{ sheet_id }}-label">{{ menu_name }}</h2>
|
|
103
|
+
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="{{ lang.close | default: 'Close' }}"></button>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="offcanvas-body pt-0">
|
|
106
|
+
<div class="list-group list-group-flush">
|
|
107
|
+
{%- include show_menu_items.html item_class="list-group-item list-group-item-action" %}
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
{%- endcapture -%}
|
|
112
|
+
{%- assign pwa_sheets = pwa_sheets | append: pwa_sheet -%}
|
|
24
113
|
|
|
25
114
|
{%- else %}
|
|
26
|
-
<div class="px-2">
|
|
27
|
-
{
|
|
28
|
-
{%-
|
|
29
|
-
{%- assign link_url = link.relative_url | prepend: edition_base -%}
|
|
30
|
-
{%- endif -%}
|
|
31
|
-
{% if page.url == link_url or link.relative_url != "/" and page.url contains link_url %}
|
|
32
|
-
{% assign is_active = true %}
|
|
33
|
-
{% else %}
|
|
34
|
-
{% assign is_active = false %}
|
|
35
|
-
{% endif %}
|
|
36
|
-
{%- include get_link.html class="nav-link icon-link flex-column flex-md-row text-center" is_active=is_active -%}
|
|
115
|
+
<div class="px-2"{{ pwa_tab_attr }}>
|
|
116
|
+
{%- include get_link_active.html -%}
|
|
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 -%}
|
|
37
118
|
{{ link_tag }}
|
|
38
|
-
{% assign link_icon_name = link_icon | default: 'link-45deg' %}{% include icon.html name=link_icon_name %}
|
|
119
|
+
{% assign link_icon_name = link_icon | default: 'link-45deg' %}{% include icon.html name=link_icon_name fill=is_active %}
|
|
39
120
|
<span>{{ link.name }}</span>
|
|
40
121
|
</a>
|
|
41
122
|
</div>
|
|
42
123
|
{%- endif -%}
|
|
43
124
|
{%- endfor %}
|
|
125
|
+
|
|
126
|
+
{%- comment -%} Live while live, otherwise name_inactive if given (as in navbar.html) {%- endcomment -%}
|
|
127
|
+
{%- if pwa_live -%}
|
|
128
|
+
{%- assign link = pwa_live %}
|
|
129
|
+
<div class="px-2 navbar-pwa-live live-show d-none" {{ pwa_live_range }}>
|
|
130
|
+
{%- include get_link.html class="nav-link icon-link d-flex flex-column flex-md-row align-items-center text-center" -%}
|
|
131
|
+
{{ link_tag }}
|
|
132
|
+
{% include get_live_icon.html icon_only=true %}
|
|
133
|
+
<span>{{ link.name | default: lang.live.live | default: "Live" }}</span>
|
|
134
|
+
</a>
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
{%- if link.name_inactive %}
|
|
138
|
+
<div class="px-2 live-hide" {{ pwa_live_range }}>
|
|
139
|
+
<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
|
+
{% include get_live_icon.html icon_only=true %}
|
|
141
|
+
<span>{{ link.name_inactive }}</span>
|
|
142
|
+
</a>
|
|
143
|
+
</div>
|
|
144
|
+
{%- endif -%}
|
|
145
|
+
{%- endif %}
|
|
146
|
+
|
|
147
|
+
{%- comment -%} More, in the states its last entry is in it {%- endcomment -%}
|
|
148
|
+
{%- if pwa_more_from < pwa_entries.size -%}
|
|
149
|
+
{%- assign pwa_index = pwa_entries.size | minus: 1 -%}
|
|
150
|
+
{%- include get_pwa_in.html %}
|
|
151
|
+
<div class="px-2"{{ pwa_more_attr }}>
|
|
152
|
+
<button type="button" class="nav-link icon-link d-flex flex-column flex-md-row align-items-center text-center" data-bs-toggle="offcanvas" data-bs-target="#navbar-pwa-more" aria-controls="navbar-pwa-more">
|
|
153
|
+
{% include icon.html name="three-dots" %}
|
|
154
|
+
<span>{{ lang.navigation.more | default: "More" }}</span>
|
|
155
|
+
</button>
|
|
156
|
+
</div>
|
|
157
|
+
{%- endif %}
|
|
44
158
|
</div>
|
|
45
159
|
</div>
|
|
46
160
|
</nav>
|
|
161
|
+
|
|
162
|
+
{%- comment -%}
|
|
163
|
+
More: the remaining links, then the remaining menus under their name,
|
|
164
|
+
each in the states it is no tab in
|
|
165
|
+
{%- endcomment -%}
|
|
166
|
+
{%- if pwa_more_from < pwa_entries.size -%}
|
|
167
|
+
{%- capture pwa_sheet %}
|
|
168
|
+
<div class="offcanvas offcanvas-bottom h-auto rounded-top-4 d-print-none navbar-pwa-sheet" tabindex="-1" id="navbar-pwa-more" aria-labelledby="navbar-pwa-more-label">
|
|
169
|
+
<div class="offcanvas-header">
|
|
170
|
+
<h2 class="offcanvas-title h5" id="navbar-pwa-more-label">{{ lang.navigation.more | default: "More" }}</h2>
|
|
171
|
+
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="{{ lang.close | default: 'Close' }}"></button>
|
|
172
|
+
</div>
|
|
173
|
+
<div class="offcanvas-body pt-0">
|
|
174
|
+
{%- capture pwa_more_links -%}
|
|
175
|
+
{%- for link in pwa_entries offset: pwa_more_from -%}
|
|
176
|
+
{%- if link.menu -%}
|
|
177
|
+
{%- continue -%}
|
|
178
|
+
{%- endif -%}
|
|
179
|
+
|
|
180
|
+
{%- assign pwa_index = forloop.index0 | plus: pwa_more_from -%}
|
|
181
|
+
{%- include get_pwa_in.html -%}
|
|
182
|
+
{%- assign pwa_link_open = "<a" | append: pwa_more_attr -%}
|
|
183
|
+
{%- include get_link_active.html -%}
|
|
184
|
+
{%- include get_link.html class="list-group-item list-group-item-action icon-link" is_active=is_active %}
|
|
185
|
+
{{ link_tag | replace_first: "<a", pwa_link_open }}
|
|
186
|
+
{% assign link_icon_name = link_icon | default: 'link-45deg' %}{% include icon.html name=link_icon_name %}
|
|
187
|
+
{{ link.name }}
|
|
188
|
+
</a>
|
|
189
|
+
{%- endfor -%}
|
|
190
|
+
{%- endcapture -%}
|
|
191
|
+
{%- unless pwa_more_links == "" %}
|
|
192
|
+
<div class="list-group list-group-flush">
|
|
193
|
+
{{- pwa_more_links }}
|
|
194
|
+
</div>
|
|
195
|
+
{%- endunless -%}
|
|
196
|
+
|
|
197
|
+
{%- for link in pwa_entries offset: pwa_more_from -%}
|
|
198
|
+
{%- unless link.menu -%}
|
|
199
|
+
{%- continue -%}
|
|
200
|
+
{%- endunless -%}
|
|
201
|
+
|
|
202
|
+
{%- assign pwa_index = forloop.index0 | plus: pwa_more_from -%}
|
|
203
|
+
{%- include get_pwa_in.html -%}
|
|
204
|
+
{%- include get_menu.html %}
|
|
205
|
+
<div{{ pwa_more_attr }}>
|
|
206
|
+
<h3 class="h6 mt-3 mb-1 px-3 text-body-secondary">{{ menu_name }}</h3>
|
|
207
|
+
<div class="list-group list-group-flush">
|
|
208
|
+
{%- include show_menu_items.html item_class="list-group-item list-group-item-action" %}
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
{%- endfor %}
|
|
212
|
+
</div>
|
|
213
|
+
</div>
|
|
214
|
+
{%- endcapture -%}
|
|
215
|
+
{%- assign pwa_sheets = pwa_sheets | append: pwa_sheet -%}
|
|
216
|
+
{%- endif -%}
|
|
47
217
|
{%- endif -%}
|
data/_includes/navbar_rooms.html
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
{% unless all_hidden %}
|
|
13
13
|
<nav aria-label="{{ site.data.lang[site.conference.lang].location.navigation | default: 'Room navigation' }}">
|
|
14
|
-
<ul class="nav nav-pills d-print-none mb-
|
|
14
|
+
<ul class="nav nav-pills d-print-none mb-1" role="list">
|
|
15
15
|
<li class="nav-item">
|
|
16
16
|
<a class="nav-link {% if page.name contains 'index' %}active{% endif %}" href="{{ location_url | prepend: site.baseurl }}"{% if page.name contains 'index' %} aria-current="page"{% endif %}>
|
|
17
17
|
{% if location_page.title -%}
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
{% for room in edition_rooms -%}
|
|
25
25
|
<li class="nav-item">
|
|
26
26
|
{% if room.hide or location_hide -%}
|
|
27
|
-
<span class="nav-item nav-link disabled" aria-disabled="true">
|
|
27
|
+
<span class="room-name nav-item nav-link disabled" aria-disabled="true">
|
|
28
28
|
{{ room.name | escape }}
|
|
29
29
|
</span>
|
|
30
30
|
{%- else -%}
|
|
31
|
-
<a class="nav-link {% if this_room.name == room.name %}active{% endif %}" href="{{ room.url | prepend: site.baseurl }}"{% if this_room.name == room.name %} aria-current="page"{% endif %}>
|
|
31
|
+
<a class="room-name nav-link {% if this_room.name == room.name %}active{% endif %}" href="{{ room.url | prepend: site.baseurl }}"{% if this_room.name == room.name %} aria-current="page"{% endif %}>
|
|
32
32
|
{{ room.name | escape }}
|
|
33
33
|
</a>
|
|
34
34
|
{%- endif %}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{%- comment -%}
|
|
2
|
+
Banner asking visitors on phones and tablets to install the app (PWA).
|
|
3
|
+
Hidden until _js/modules/pwa.js detects the platform, styled like the
|
|
4
|
+
platform's own install banners. Its button opens _includes/pwa_install.html.
|
|
5
|
+
{%- endcomment -%}
|
|
6
|
+
{%- if site.conference.pwa.enable and site.conference.pwa.install_banner != false and edition_current -%}
|
|
7
|
+
{%- assign lang = site.data.lang[site.conference.lang] -%}
|
|
8
|
+
{%- assign pwa_icon = site.conference.pwa.icons | first -%}
|
|
9
|
+
{%- if pwa_icon.first == nil -%}
|
|
10
|
+
{%- assign pwa_icon_src = pwa_icon -%}
|
|
11
|
+
{%- else -%}
|
|
12
|
+
{%- assign pwa_icon_src = pwa_icon.img -%}
|
|
13
|
+
{%- endif %}
|
|
14
|
+
<aside class="pwa-banner d-print-none" id="pwa-banner" aria-label="{{ lang.pwa.title | default: 'Install the app' }}" hidden>
|
|
15
|
+
<button type="button" class="pwa-banner-close" aria-label="{{ lang.close | default: 'Close' }}">
|
|
16
|
+
{%- include icon.html name="x-lg" -%}
|
|
17
|
+
</button>
|
|
18
|
+
{%- if pwa_icon_src %}
|
|
19
|
+
<img class="pwa-banner-icon" src="{{ pwa_icon_src | prepend: '/assets/images/' | prepend: site.baseurl }}" alt="" width="48" height="48" />
|
|
20
|
+
{%- endif %}
|
|
21
|
+
<div class="pwa-banner-text">
|
|
22
|
+
<strong>{{ edition_title }}</strong>
|
|
23
|
+
<span>{{ lang.pwa.subtitle | default: "Program offline on your home screen" }}</span>
|
|
24
|
+
</div>
|
|
25
|
+
<button type="button" class="pwa-banner-install" data-bs-toggle="offcanvas" data-bs-target="#pwa-install" aria-controls="pwa-install">
|
|
26
|
+
{{- lang.pwa.install | default: "Install" -}}
|
|
27
|
+
</button>
|
|
28
|
+
</aside>
|
|
29
|
+
{%- endif -%}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{%- comment -%}
|
|
2
|
+
Steps to install the app (PWA), opened by _includes/pwa_banner.html.
|
|
3
|
+
_js/modules/pwa.js shows the steps of the visitor's platform.
|
|
4
|
+
{%- endcomment -%}
|
|
5
|
+
{%- if site.conference.pwa.enable and site.conference.pwa.install_banner != false and edition_current -%}
|
|
6
|
+
{%- assign lang = site.data.lang[site.conference.lang] %}
|
|
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
|
+
<div class="offcanvas-header">
|
|
9
|
+
<h2 class="offcanvas-title h5" id="pwa-install-label">{{ lang.pwa.title | default: "Install the app" }}</h2>
|
|
10
|
+
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="{{ lang.close | default: 'Close' }}"></button>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="offcanvas-body pt-0">
|
|
13
|
+
<ol class="pwa-install-steps list-unstyled" data-pwa-steps="ios">
|
|
14
|
+
<li><span>{{ lang.pwa.ios.share | default: "Tap the Share button in the browser's toolbar (if hidden, behind “⋯”)." }}</span>{% include icon.html name="box-arrow-up" %}</li>
|
|
15
|
+
<li><span>{{ lang.pwa.ios.add | default: "Scroll down and tap “Add to Home Screen”." }}</span>{% include icon.html name="plus-square" %}</li>
|
|
16
|
+
<li><span>{{ lang.pwa.ios.confirm | default: "Tap “Add”." }}</span>{% include icon.html name="check2" %}</li>
|
|
17
|
+
</ol>
|
|
18
|
+
<ol class="pwa-install-steps list-unstyled" data-pwa-steps="android">
|
|
19
|
+
<li><span>{{ lang.pwa.android.menu | default: "Tap the menu button “⋮” in the browser's toolbar." }}</span>{% include icon.html name="three-dots-vertical" %}</li>
|
|
20
|
+
<li><span>{{ lang.pwa.android.add | default: "Tap “Install app” or “Add to Home screen”." }}</span>{% include icon.html name="download" %}</li>
|
|
21
|
+
<li><span>{{ lang.pwa.android.confirm | default: "Tap “Install”." }}</span>{% include icon.html name="check2" %}</li>
|
|
22
|
+
</ol>
|
|
23
|
+
<p class="text-body-secondary mb-0">{{ lang.pwa.done | default: "Then open the app from its icon, also offline." }}</p>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
{%- endif -%}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{%- comment -%}
|
|
2
|
+
Buttons of the links `include.links`, e.g. {% include show_link_buttons.html
|
|
3
|
+
links=page.links class="btn btn-outline-primary" id="main" %}. Menus become
|
|
4
|
+
dropdowns with the ids "<id>-dropdown<n>", unique per page. With
|
|
5
|
+
popper="fixed", they may exceed a container clipping its content (e.g. a
|
|
6
|
+
modal).
|
|
7
|
+
{%- endcomment -%}
|
|
8
|
+
{%- assign btn_default = include.class -%}
|
|
9
|
+
{% for link in include.links %}
|
|
10
|
+
|
|
11
|
+
{% if link.menu %}
|
|
12
|
+
{% include get_menu.html %}
|
|
13
|
+
{% unless menu_empty %}
|
|
14
|
+
<div class="dropdown d-inline">
|
|
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 }}
|
|
17
|
+
</a>
|
|
18
|
+
<div class="dropdown-menu" aria-labelledby="{{ include.id }}-dropdown{{ forloop.index0 }}">
|
|
19
|
+
{% include show_menu_items.html %}
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
{% endunless %}
|
|
23
|
+
|
|
24
|
+
{% elsif link.live %}
|
|
25
|
+
{% if edition_live %}
|
|
26
|
+
{%- include get_live_timestamps.html -%}
|
|
27
|
+
|
|
28
|
+
<span class="live-show d-none d-print-none" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
|
|
29
|
+
{%- include get_link.html class=btn_default -%}
|
|
30
|
+
{{ link_tag }}
|
|
31
|
+
{%- if link.name -%}
|
|
32
|
+
{{ link.name }}
|
|
33
|
+
{%- else -%}
|
|
34
|
+
{% include get_live_icon.html %}
|
|
35
|
+
{%- endif -%}
|
|
36
|
+
</a>
|
|
37
|
+
</span>
|
|
38
|
+
|
|
39
|
+
{%- if link.name_inactive -%}
|
|
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 }}
|
|
42
|
+
</span>
|
|
43
|
+
{%- endif -%}
|
|
44
|
+
|
|
45
|
+
{%- endif -%}
|
|
46
|
+
|
|
47
|
+
{% else %}
|
|
48
|
+
{% include get_link.html class=btn_default %}
|
|
49
|
+
{{ link_tag }}
|
|
50
|
+
{{ link.name }}
|
|
51
|
+
</a>
|
|
52
|
+
{% endif %}
|
|
53
|
+
{% endfor %}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{%- comment -%}
|
|
2
2
|
Items of a dropdown menu (see get_menu.html, sets menu_links): its links,
|
|
3
|
-
or each edition's home page, marking the page's edition
|
|
3
|
+
or each edition's home page, marking the page's edition. The class of an
|
|
4
|
+
item (item_class) defaults to "dropdown-item", e.g. item_class="list-group-item".
|
|
4
5
|
{%- endcomment -%}
|
|
6
|
+
{%- assign menu_item_class = include.item_class | default: "dropdown-item" -%}
|
|
5
7
|
{%- if menu_links == "editions" -%}
|
|
6
8
|
{%- for e in site.conference.editions -%}
|
|
7
9
|
{%- assign e_id = e.id | append: "" %}
|
|
8
|
-
<a class="
|
|
10
|
+
<a class="{{ menu_item_class }}{% if e_id == edition %} active{% endif %}" href="{{ site.baseurl }}/{{ e_id }}/"{% if e_id == edition %} aria-current="true"{% endif %}>
|
|
9
11
|
{{ e.name | default: e_id }}
|
|
10
12
|
</a>
|
|
11
13
|
{%- endfor -%}
|
|
12
14
|
{%- else -%}
|
|
13
15
|
{%- for link in menu_links -%}
|
|
14
|
-
{%- include get_link.html class=
|
|
16
|
+
{%- include get_link.html class=menu_item_class %}
|
|
15
17
|
{{ link_tag }}
|
|
16
18
|
{{ link.name }}
|
|
17
19
|
</a>
|
data/_includes/show_room.html
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{%- include get_location_config.html -%}
|
|
2
2
|
{%- if room.hide or location_hide -%}
|
|
3
|
-
<span class="badge fw-normal bg-body-secondary text-reset">{% include icon.html name="square" %}
|
|
3
|
+
<span class="room-name badge fw-normal bg-body-secondary text-reset">{% include icon.html name="square" class="me-1" %}{{ room.name | escape }}</span>
|
|
4
4
|
{%- else -%}
|
|
5
|
-
<a href="{{ room.url | prepend: site.baseurl }}" class="badge fw-normal bg-body-secondary text-reset link-underline-{{ track_color }} link-underline-opacity-0 link-underline-opacity-100-hover">{% include icon.html name="square" %}
|
|
5
|
+
<a href="{{ room.url | prepend: site.baseurl }}" class="room-name badge fw-normal bg-body-secondary text-reset link-underline-{{ track_color }} link-underline-opacity-0 link-underline-opacity-100-hover">{% include icon.html name="square" class="me-1" %}{{ room.name | escape }}</a>
|
|
6
6
|
{%- endif -%}
|
data/_includes/show_talk.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{%- if talk.hide -%}
|
|
2
|
-
{
|
|
2
|
+
<span {% if talk.lang %}lang="{{ talk.lang | escape }}" {% endif %}class="talk-title">{{ talk.name | escape }}</span>
|
|
3
3
|
{%- else -%}
|
|
4
|
-
<a {% if talk.lang %}lang="{{ talk.lang | escape }}" {% endif %}class="text-reset link-underline-{{ track_color }} link-underline-opacity-0 link-underline-opacity-100-hover" href="{{ talk.url | prepend: site.baseurl }}">{{ talk.name | escape }}</a>
|
|
4
|
+
<a {% if talk.lang %}lang="{{ talk.lang | escape }}" {% endif %}class="talk-title text-reset link-underline-{{ track_color }} link-underline-opacity-0 link-underline-opacity-100-hover" href="{{ talk.url | prepend: site.baseurl }}">{{ talk.name | escape }}</a>
|
|
5
5
|
{%- endif -%}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<span class="badge fw-normal bg-body-secondary text-reset text-start">
|
|
2
|
-
{% include icon.html name="stopwatch" %}
|
|
1
|
+
<span class="talk-duration badge fw-normal bg-body-secondary text-reset text-start">
|
|
2
|
+
{% include icon.html name="stopwatch" class="me-1" %}{{ talk_length_min }}min
|
|
3
3
|
</span>
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
</td>
|
|
10
10
|
<td>
|
|
11
|
-
<div class="
|
|
11
|
+
<div class="talk-item border-{{ track_color }}-subtle">
|
|
12
12
|
<p class="mb-0">
|
|
13
13
|
{%- include show_talk.html -%}
|
|
14
14
|
</p>
|
|
15
15
|
{% unless include.hide_speakers %}
|
|
16
|
-
<p class="
|
|
16
|
+
<p class="talk-speakers mb-0">
|
|
17
17
|
{%- include list_speakers.html -%}
|
|
18
18
|
</p>
|
|
19
19
|
{% endunless %}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
{%- if nbr_days > 1 and day_hash -%}
|
|
12
12
|
#{{ day_hash }}
|
|
13
13
|
{%- endif -%}
|
|
14
|
-
" class="badge fw-normal bg-body-secondary text-reset link-underline-{{ track_color }} link-underline-opacity-0 link-underline-opacity-100-hover {{ include.class }}">
|
|
15
|
-
{% include icon.html name="clock" %}
|
|
14
|
+
" class="talk-time badge fw-normal bg-body-secondary text-reset link-underline-{{ track_color }} link-underline-opacity-0 link-underline-opacity-100-hover {{ include.class }}">
|
|
15
|
+
{% include icon.html name="clock" class="me-1" %}
|
|
16
16
|
{%- if nbr_days > 1 and day_abbr -%}
|
|
17
17
|
{%- unless include.hide_day -%} {{ day_abbr | escape }}, {% endunless -%}
|
|
18
18
|
{% endif -%}
|
data/_layouts/home.html
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{% include header.html %}
|
|
2
2
|
|
|
3
|
-
<div class="bg-body-tertiary
|
|
3
|
+
<div class="home-header bg-body-tertiary rounded p-4 p-md-5 mb-4">
|
|
4
4
|
<h1 class="display-3 text-break">
|
|
5
5
|
{% if page.header.img %}
|
|
6
6
|
{%- comment -%} One image, the dark variant only downloaded in dark mode {%- endcomment %}
|
|
@@ -26,52 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
{% if page.links %}
|
|
28
28
|
<div class="lead d-print-none">
|
|
29
|
-
{%
|
|
30
|
-
{% for link in page.links %}
|
|
31
|
-
|
|
32
|
-
{% if link.menu %}
|
|
33
|
-
{% include get_menu.html %}
|
|
34
|
-
{% unless menu_empty %}
|
|
35
|
-
<div class="dropdown d-inline">
|
|
36
|
-
<a class="{{ btn_default }} dropdown-toggle" href="#" role="button" id="main-dropdown{{ forloop.index0 }}" data-bs-toggle="dropdown" aria-expanded="false"{% if menu_label %} aria-label="{{ menu_label }}"{% endif %}>
|
|
37
|
-
{{ menu_name }}
|
|
38
|
-
</a>
|
|
39
|
-
<div class="dropdown-menu" aria-labelledby="main-dropdown{{ forloop.index0 }}">
|
|
40
|
-
{% include show_menu_items.html %}
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
{% endunless %}
|
|
44
|
-
|
|
45
|
-
{% elsif link.live %}
|
|
46
|
-
{% if edition_live %}
|
|
47
|
-
{%- include get_live_timestamps.html -%}
|
|
48
|
-
|
|
49
|
-
<span class="live-show d-none d-print-none" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
|
|
50
|
-
{%- include get_link.html class=btn_default -%}
|
|
51
|
-
{{ link_tag }}
|
|
52
|
-
{%- if link.name -%}
|
|
53
|
-
{{ link.name }}
|
|
54
|
-
{%- else -%}
|
|
55
|
-
{% include get_live_icon.html %}
|
|
56
|
-
{%- endif -%}
|
|
57
|
-
</a>
|
|
58
|
-
</span>
|
|
59
|
-
|
|
60
|
-
{%- if link.name_inactive -%}
|
|
61
|
-
<span class="live-hide d-print-inline {{ btn_default }} disabled" aria-disabled="true" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
|
|
62
|
-
{{ link.name_inactive }}
|
|
63
|
-
</span>
|
|
64
|
-
{%- endif -%}
|
|
65
|
-
|
|
66
|
-
{%- endif -%}
|
|
67
|
-
|
|
68
|
-
{% else %}
|
|
69
|
-
{% include get_link.html class=btn_default %}
|
|
70
|
-
{{ link_tag }}
|
|
71
|
-
{{ link.name }}
|
|
72
|
-
</a>
|
|
73
|
-
{% endif %}
|
|
74
|
-
{% endfor %}
|
|
29
|
+
{% include show_link_buttons.html links=page.links class="btn btn-outline-primary btn-lg mt-2 ms-1" id="main" %}
|
|
75
30
|
</div>
|
|
76
31
|
{% endif %}
|
|
77
32
|
|
data/_layouts/location.html
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
{% assign this_room = page %}
|
|
5
5
|
|
|
6
|
+
{% include navbar_rooms.html %}
|
|
7
|
+
|
|
6
8
|
<h1 class="display-5 mb-3 text-break">
|
|
7
9
|
{% if page.title %}
|
|
8
10
|
{{ page.title }}
|
|
@@ -11,8 +13,6 @@
|
|
|
11
13
|
{% endif %}
|
|
12
14
|
</h1>
|
|
13
15
|
|
|
14
|
-
{% include navbar_rooms.html %}
|
|
15
|
-
|
|
16
16
|
{% if page.postal_address %}
|
|
17
17
|
<address>
|
|
18
18
|
{%- if page.postal_address.name %}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
{{ map_lang.map_privacy | default: "The map is loaded from an external provider, which receives your IP address:" }}
|
|
48
48
|
{{ page.map.map_provider | default: "OpenStreetMap.Mapnik" | split: "." | first | escape }}
|
|
49
49
|
</p>
|
|
50
|
-
<button type="button" class="btn btn-primary" data-map-load>
|
|
50
|
+
<button type="button" class="consent-button btn btn-primary" data-map-load>
|
|
51
51
|
{% include icon.html name="map" %}
|
|
52
52
|
{{ map_lang.map_load | default: "Load map" }}
|
|
53
53
|
</button>
|