jekyll-theme-conference 2.3.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  <ul class="nav nav-pills d-print-none mb-3">
2
2
  <li class="nav-item">
3
3
  <a class="nav-link {% if page.name contains 'index' %}active{% endif %}" href="{{ site.conference.location.url | prepend: site.baseurl }}">
4
- {{ site.data.lang[site.conference.lang].location.directions }}
4
+ {{ site.data.lang[site.conference.lang].location.directions | default: "Directions" }}
5
5
  </a>
6
6
  </li>
7
7
  {% for r in site.data.program %}
@@ -1,5 +1,5 @@
1
1
  {% if room.hide or site.conference.location.hide %}
2
- <span class="badge badge-light font-weight-normal"><i class="far fa-square"></i> {{ room.name }}</span><!--
2
+ <span class="badge badge-light font-weight-normal text-left"><i class="far fa-square"></i> {{ room.name }}</span><!--
3
3
  {% else %}
4
4
  <a href="{{ room.url | prepend: site.baseurl }}" class="badge badge-light font-weight-normal"><i class="far fa-square"></i> {{ room.name }}</a><!--
5
5
  {% endif %}-->
@@ -1,3 +1,3 @@
1
- <span class="badge badge-light font-weight-normal">
1
+ <span class="badge badge-light font-weight-normal text-left">
2
2
  <i class="fas fa-stopwatch"></i> {{ talk_duration_min }}min
3
3
  </span>
@@ -1,3 +1,3 @@
1
- <a href="{{ site.conference.program.url | prepend: site.baseurl }}" class="badge badge-light font-weight-normal">
1
+ <a href="{{ site.conference.program.url | prepend: site.baseurl }}" class="badge badge-light font-weight-normal text-left">
2
2
  <i class="far fa-clock"></i> {{ talk_start_hour }}:{% if talk_start_min == 0 %}0{%endif %}{{ talk_start_min }}
3
3
  </a>
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env bash
2
+
3
+ {% if site.conference.location.hide -%}
4
+ rm -r rooms
5
+ rm -r {{ site.conference.location.url | default: "location" }}
6
+ {% else -%}
7
+ {%- for room in site.rooms -%}
8
+ {%- if room.hide -%}
9
+ rm -r {{ room.url | slice: 1, room.url.size }}
10
+ {% endif -%}
11
+ {%- endfor -%}
12
+ {%- endif -%}
13
+
14
+ {%- for speaker in site.speakers -%}
15
+ {%- if speaker.hide -%}
16
+ rm -r {{ speaker.url | slice: 1, speaker.url.size }}
17
+ {% endif -%}
18
+ {%- endfor -%}
19
+
20
+ {%- for talk in site.talks -%}
21
+ {%- if talk.hide -%}
22
+ rm -r {{ talk.url | slice: 1, talk.url.size }}
23
+ {% endif -%}
24
+ {%- endfor %}
25
+ rm delete_hidden.sh
@@ -6,7 +6,7 @@
6
6
  {% if page.title %}
7
7
  {{ page.title }}
8
8
  {% else %}
9
- {{ site.data.lang[site.conference.lang].location.title }}
9
+ {{ site.data.lang[site.conference.lang].location.title | default: "Location" }}
10
10
  {% endif %}
11
11
  </h1>
12
12
 
@@ -1,63 +1,20 @@
1
1
  {% include partials/header.html %}
2
2
 
3
- {% for room in site.data.program %}
4
- {% assign t = room.talks | first %}
5
- {% include partials/get_talk_time.html %}
6
-
7
- {% assign update_var = false %}
8
-
9
- {% unless start_hour %}
10
- {% assign update_var = true %}
11
- {% else %}
12
- {% if talk_start_hour < start_hour %}
13
- {% assign update_var = true %}
14
- {% elsif talk_start_hour == start_hour and talk_start_min < start_min %}
15
- {% assign update_var = true %}
16
- {% endif %}
17
- {% endunless %}
18
-
19
- {% if update_var %}
20
- {% assign start_hour = talk_start_hour %}
21
- {% assign start_min = talk_start_min %}
22
- {% endif %}
23
-
24
- {% assign t = room.talks | last %}
25
- {% include partials/get_talk_time.html %}
26
-
27
- {% assign update_var = false %}
28
-
29
- {% unless end_hour %}
30
- {% assign update_var = true %}
31
- {% else %}
32
- {% if talk_end_hour > end_hour %}
33
- {% assign update_var = true %}
34
- {% elsif talk_end_hour == end_hour and talk_end_min > end_min %}
35
- {% assign update_var = true %}
36
- {% endif %}
37
- {% endunless %}
38
-
39
- {% if update_var %}
40
- {% assign end_hour = talk_end_hour %}
41
- {% assign end_min = talk_end_min %}
42
- {% endif %}
43
- {% endfor %}
44
-
45
- {% assign total_duration_min = end_hour | minus: start_hour | times: 60 | minus: start_min | plus: end_min %}
46
- {% assign nbr_steps = total_duration_min | divided_by: site.conference.program.time_steps %}
47
-
3
+ {% include partials/get_conf_time.html %}
4
+ {% assign nbr_steps = conf_duration_min | divided_by: site.conference.program.time_steps %}
48
5
 
49
6
  <h1 class="display-5 mb-4">
50
7
  {% if page.title %}
51
8
  {{ page.title }}
52
9
  {% else %}
53
- {{ site.data.lang[site.conference.lang].program.title }}
10
+ {{ site.data.lang[site.conference.lang].program.title | default: "Program" }}
54
11
  {% endif %}
55
12
  </h1>
56
13
 
57
14
  {{ content }}
58
15
 
59
16
  <div class="sticky-top syncscroll overflow-hidden" name="sync-table">
60
- <table class="table">
17
+ <table class="table mb-0">
61
18
  <thead>
62
19
  <tr>
63
20
  <th scope="col" class="text-center">#</th>
@@ -94,8 +51,8 @@
94
51
  {% assign z-index-max = 999 %}
95
52
 
96
53
  {% for i in (1..nbr_steps) %}
97
- {% assign current_hour = i | minus: 1 | times: site.conference.program.time_steps | plus: start_min | divided_by: 60 | floor | plus: start_hour | modulo: 24 %}
98
- {% assign current_min = i | minus: 1 | times: site.conference.program.time_steps | plus: start_min | modulo: 60 %}
54
+ {% assign current_hour = i | minus: 1 | times: site.conference.program.time_steps | plus: conf_start_min | divided_by: 60 | floor | plus: conf_start_hour | modulo: 24 %}
55
+ {% assign current_min = i | minus: 1 | times: site.conference.program.time_steps | plus: conf_start_min | modulo: 60 %}
99
56
  {% if current_min < 10 %}
100
57
  {% assign current_time = current_hour | append: ':0' | append: current_min %}
101
58
  {% else %}
@@ -157,6 +114,9 @@
157
114
  {% include partials/get_main_category.html %}
158
115
  <td rowspan="{{ talk_nbr_steps }}" class="alert alert-{{ main_cat_color }} shadow-sm" style="z-index: {{ z-index-max | minus: i }}">
159
116
 
117
+ {% assign live_button_styleclass = "mb-2" %}
118
+ {% include partials/live_button.html %}
119
+
160
120
  <p class="mb-2">
161
121
  {% include partials/show_talk.html %}
162
122
  </p>
@@ -190,7 +150,7 @@
190
150
  </div>
191
151
 
192
152
  {% if site.conference.talks.main_categories %}
193
- <h5 class="mt-4">{{ site.data.lang[site.conference.lang].talks.legend }}</h5>
153
+ <h5 class="mt-4">{{ site.data.lang[site.conference.lang].program.legend | default: "Caption" }}</h5>
194
154
  {% for main_cat in site.conference.talks.main_categories %}
195
155
  <div class="d-block d-sm-inline-block m-1 p-1 pl-2 pr-2 border-soft-{{ main_cat.color }} bg-soft-{{ main_cat.color }} font-weight-normal">
196
156
  {{ main_cat.name }}
@@ -1,4 +1,7 @@
1
- {% include partials/header.html %}
1
+ {%- assign this_room = page -%}
2
+
3
+ {%- unless this_room.hide or site.conference.location.hide -%}
4
+ {%- include partials/header.html -%}
2
5
 
3
6
  <!-- title for print: -->
4
7
  <h1 class="display-5 mb-3 d-none d-print-inline">
@@ -7,16 +10,15 @@
7
10
 
8
11
  <!-- title shown in browser: -->
9
12
  <h1 class="display-5 mb-3 d-print-none">
10
- {{ site.data.lang[site.conference.lang].location.title }}
13
+ {{ site.data.lang[site.conference.lang].location.title | default: "Location" }}
11
14
  </h1>
12
15
 
13
- {% assign this_room = page %}
14
16
  {% include partials/navbar_rooms.html %}
15
17
 
16
18
  {{ content }}
17
19
 
18
20
  <h5 class="mt-4 mb-2">
19
- {{ site.data.lang[site.conference.lang].location.talks }}:
21
+ {{ site.data.lang[site.conference.lang].location.talks | default: "Talks in this room" }}:
20
22
  </h5>
21
23
  <ul class="list-program list-unstyled">
22
24
  {% for r in site.data.program %}
@@ -31,6 +33,9 @@
31
33
  <div class="flex-column">
32
34
  {% include partials/get_talk_time.html %}
33
35
  {% include partials/show_talk_time.html %}
36
+
37
+ {% assign live_button_styleclass = "mb-1" %}
38
+ {% include partials/live_button.html %}
34
39
  </div>
35
40
  <div class="flex-column ml-2 pl-2 mb-2 border-soft-{{ main_cat_color }}">
36
41
  <p class="mb-0">
@@ -51,10 +56,11 @@
51
56
  {% endfor %}
52
57
  {% unless room_talks %}
53
58
  <li>
54
- <em>{{ site.data.lang[site.conference.lang].location.no_talks }}</em>
59
+ <em>{{ site.data.lang[site.conference.lang].location.no_talks | default: "no talks planned" }}</em>
55
60
  </li>
56
61
  {% endunless %}
57
62
 
58
63
  </ul>
59
64
 
60
- {% include partials/footer.html %}
65
+ {%- include partials/footer.html -%}
66
+ {%- endunless -%}
@@ -4,7 +4,7 @@
4
4
  {% if page.title %}
5
5
  {{ page.title }}
6
6
  {% else %}
7
- {{ site.data.lang[site.conference.lang].speaker.overview }}
7
+ {{ site.data.lang[site.conference.lang].speaker.overview | default: "Speakers" }}
8
8
  {% endif %}
9
9
  </h1>
10
10
 
@@ -1,9 +1,10 @@
1
- {% include partials/header.html %}
1
+ {%- assign speaker = page -%}
2
2
 
3
- {% assign speaker = page %}
3
+ {%- unless speaker.hide -%}
4
+ {%- include partials/header.html -%}
4
5
 
5
6
  <p class="h6">
6
- {{ site.data.lang[site.conference.lang].speaker.title }}
7
+ {{ site.data.lang[site.conference.lang].speaker.title | default: "Speaker" }}
7
8
  </p>
8
9
 
9
10
  <h1 class="font-weight-light mb-3">
@@ -17,7 +18,6 @@
17
18
  {% if has_icon_links %}
18
19
  <ul class="list-unstyled">
19
20
  {% for link in speaker.links %}
20
- {% assign link_styleclass = "" %}
21
21
  {% include partials/get_link.html %}
22
22
 
23
23
  {% if link_icon %}
@@ -33,7 +33,7 @@
33
33
  {% endif %}
34
34
 
35
35
  {% if has_regular_links %}
36
- <h5 class="mt-4 mb-1">{{ site.data.lang[site.conference.lang].more_information }}:</h5>
36
+ <h5 class="mt-4 mb-1">{{ site.data.lang[site.conference.lang].more_information | default: "More Information" }}:</h5>
37
37
 
38
38
  <ul class="list-unstyled">
39
39
  {% for link in speaker.links %}
@@ -62,7 +62,7 @@
62
62
  {% endfor %}
63
63
 
64
64
  {% if active_speaker %}
65
- <h5 class="mt-4 mb-1">{{ site.data.lang[site.conference.lang].speaker.talks }}:</h5>
65
+ <h5 class="mt-4 mb-1">{{ site.data.lang[site.conference.lang].speaker.talks | default: "Talks at this conference" }}:</h5>
66
66
 
67
67
  <ul class="list-program list-unstyled">
68
68
  {% for r in site.data.program %}
@@ -83,6 +83,9 @@
83
83
  <div class="flex-column ml-2 pl-2 mb-2 border-soft-{{ main_cat_color }}">
84
84
  <p class="mb-0">
85
85
  {% include partials/show_talk.html %}
86
+
87
+ {% assign live_button_styleclass = "ml-2" %}
88
+ {% include partials/live_button.html %}
86
89
  </p>
87
90
  </div>
88
91
  </li>
@@ -98,8 +101,9 @@
98
101
  <p class="d-print-none mt-5">
99
102
  <a href="{{ page.collection | prepend: '/' | prepend: site.baseurl }}" class="btn btn-light">
100
103
  <i class="fas fa-users"></i>
101
- {{ site.data.lang[site.conference.lang].overview }}
104
+ {{ site.data.lang[site.conference.lang].overview | default: "Overview" }}
102
105
  </a>
103
106
  </p>
104
107
 
105
- {% include partials/footer.html %}
108
+ {%- include partials/footer.html -%}
109
+ {%- endunless -%}
@@ -4,7 +4,7 @@
4
4
  {% if page.title %}
5
5
  {{ page.title }}
6
6
  {% else %}
7
- {{ site.data.lang[site.conference.lang].talk.overview }}
7
+ {{ site.data.lang[site.conference.lang].talk.overview | default: "Talks" }}
8
8
  {% endif %}
9
9
  </h1>
10
10
 
@@ -29,17 +29,24 @@
29
29
  {% include partials/list_speakers.html %}
30
30
  </p>
31
31
  <p class="mb-0">
32
+ {% for r in site.data.program %}
33
+ {% for t in r.talks %}
34
+ {% if talk.name == t.name %}
35
+ {% include partials/live_button.html %}
36
+ {% endif %}
37
+ {% endfor %}
38
+ {% endfor %}
32
39
  {% include partials/list_sub_categories.html %}
33
40
 
34
41
  {% include partials/get_link_types.html %}
35
42
  {% if has_icon_links and site.conference.talks.hide_icons != true %}
36
- <span class="{% if has_sub_categories %}ml-1{% endif %}">
43
+ <span class="ml-1">
37
44
  {% for link in talk.links %}
38
- {% assign link_styleclass = "" %}
45
+ {% assign link_styleclass = "text-secondary" %}
39
46
  {% include partials/get_link.html %}
40
47
  {% if link_icon %}
41
48
  {{ link_tag -}}
42
- <i class="fas fa-{{ link_icon }} pr-1"></i></a>
49
+ <i class="fas fa-{{ link_icon }} p-1"></i></a>
43
50
  {% endif %}
44
51
  {% endfor %}
45
52
  </span>
@@ -58,9 +65,9 @@
58
65
  {% endfor %}
59
66
  {% endfor %}
60
67
 
61
- {{ site.data.lang[site.conference.lang].pronoun.at }} {% include partials/show_talk_time.html %}
68
+ {{ site.data.lang[site.conference.lang].pronoun.at | default: "at" }} {% include partials/show_talk_time.html %}
62
69
 
63
- {{ site.data.lang[site.conference.lang].pronoun.in }} {% include partials/show_room.html %}
70
+ {{ site.data.lang[site.conference.lang].pronoun.in | default: "in" }} {% include partials/show_room.html %}
64
71
  </p>
65
72
  {% endif %}
66
73
 
@@ -1,6 +1,7 @@
1
- {% include partials/header.html %}
1
+ {%- assign talk = page -%}
2
2
 
3
- {% assign talk = page %}
3
+ {%- unless talk.hide -%}
4
+ {%- include partials/header.html -%}
4
5
 
5
6
  <div class="d-flex flex-lg-row flex-column container-fluid mb-2 p-0">
6
7
  <div class="h6 mt-2 mb-0 mr-1 pr-1 pb-1">
@@ -32,20 +33,32 @@
32
33
  {% for t in r.talks %}
33
34
  {% if talk.name == t.name %}
34
35
 
36
+ {% if site.conference.live %}
37
+ {% assign time_start = t.time_start %}
38
+ {% assign time_end = t.time_end %}
39
+ {% include partials/get_timestamp.html %}
40
+ <span class="live-hide" data-start="{{ timestamp_start }}" data-end="{{ timestamp_end }}">
41
+ {% endif %}
42
+
35
43
  {% include partials/get_talk_time.html %}
36
44
  <span class="d-none d-sm-inline">
37
- {{ site.data.lang[site.conference.lang].pronoun.at }}
45
+ {{ site.data.lang[site.conference.lang].pronoun.at | default: "at" }}
38
46
  </span>
39
47
  {% include partials/show_talk_time.html %}
40
48
 
49
+ {% if site.conference.live %}
50
+ </span>
51
+ {% include partials/live_button.html %}
52
+ {% endif %}
53
+
41
54
  {% assign room = site.rooms | where: 'name', r.room | first %}
42
55
  <span class="d-none d-sm-inline ml-1">
43
- {{ site.data.lang[site.conference.lang].pronoun.in }}
56
+ {{ site.data.lang[site.conference.lang].pronoun.in | default: "in" }}
44
57
  </span>
45
58
  {% include partials/show_room.html %}
46
59
 
47
60
  <span class="d-none d-sm-inline ml-1">
48
- {{ site.data.lang[site.conference.lang].pronoun.for }}
61
+ {{ site.data.lang[site.conference.lang].pronoun.for | default: "for" }}
49
62
  </span>
50
63
  {% include partials/show_talk_duration.html %}
51
64
 
@@ -61,13 +74,13 @@
61
74
  {% if has_icon_links %}
62
75
  <ul class="list-unstyled">
63
76
  {% for link in talk.links %}
64
- {% assign link_styleclass = "" %}
77
+ {% assign link_styleclass = "text-reset" %}
65
78
  {% include partials/get_link.html %}
66
79
 
67
80
  {% if link_icon %}
68
81
  <li class="mb-1 ml-2">
69
82
  {{ link_tag }}
70
- <i class="fas fa-{{ link_icon }} pr-1"></i>
83
+ <i class="fas fa-{{ link_icon }} pr-1 text-{{ main_cat_color }}"></i>
71
84
  {{ link.name }}
72
85
  </a>
73
86
  </li>
@@ -77,7 +90,7 @@
77
90
  {% endif %}
78
91
 
79
92
  {% if has_regular_links %}
80
- <h5 class="mt-4 mb-1">{{ site.data.lang[site.conference.lang].more_information }}:</h5>
93
+ <h5 class="mt-4 mb-1">{{ site.data.lang[site.conference.lang].more_information | default: "More information" }}:</h5>
81
94
 
82
95
  <ul class="list-unstyled">
83
96
  {% for link in talk.links %}
@@ -85,7 +98,7 @@
85
98
  {% include partials/get_link.html %}
86
99
 
87
100
  {% unless link_icon %}
88
- <li class="mb-1 ml-2 pl-2 border-soft-primary">
101
+ <li class="mb-1 ml-2 pl-2 border-soft-{{ main_cat_color }}">
89
102
  {{ link_tag }}
90
103
  {{ link.name }}
91
104
  </a>
@@ -98,13 +111,14 @@
98
111
  <p class="d-print-none mt-5">
99
112
  <a href="{{ page.collection | prepend: '/' | prepend: site.baseurl }}" class="btn btn-light">
100
113
  <i class="fas fa-bullhorn"></i>
101
- {{ site.data.lang[site.conference.lang].overview }}
114
+ {{ site.data.lang[site.conference.lang].overview | default: "Overview" }}
102
115
  </a>
103
116
 
104
117
  <a href="{{ site.conference.program.url | prepend: site.baseurl }}" class="btn btn-light">
105
118
  <i class="far fa-calendar-alt"></i>
106
- {{ site.data.lang[site.conference.lang].program.title }}
119
+ {{ site.data.lang[site.conference.lang].program.title | default: "Program" }}
107
120
  </a>
108
121
  </p>
109
122
 
110
- {% include partials/footer.html %}
123
+ {%- include partials/footer.html -%}
124
+ {%- endunless -%}
@@ -72,6 +72,17 @@ $fa-font-path: '/assets/webfonts' !default;
72
72
  margin-bottom: 0;
73
73
  }
74
74
 
75
+ // Live button icon
76
+ .live-button > object {
77
+ width: 0.85em;
78
+ height: 0.85em;
79
+ color: white;
80
+ }
81
+ // Live button font size in navigation bar
82
+ .nav-link .live-button {
83
+ font-size: 1em;
84
+ }
85
+
75
86
  // Program
76
87
 
77
88
  // Sticky header and first column
@@ -140,6 +151,10 @@ $fa-font-path: '/assets/webfonts' !default;
140
151
  // Program per Room
141
152
  .list-program li > div.flex-column:first-of-type {
142
153
  width: 4em;
154
+
155
+ & > * {
156
+ width: 4.6em;
157
+ }
143
158
  }
144
159
 
145
160
  // Speaker
@@ -163,28 +178,6 @@ $fa-font-path: '/assets/webfonts' !default;
163
178
  }
164
179
  }
165
180
 
166
- // Modal Iframe
167
- // Adapt iframe size to window while preserving video ratio
168
- .modal-body {
169
- position: relative;
170
- width: 100%;
171
- height: 0;
172
- padding-bottom: 56.25%;
173
-
174
- iframe {
175
- position: absolute;
176
- width: 100%;
177
- height: 100%;
178
- left: 0;
179
- top: 0;
180
- }
181
- }
182
-
183
- // Add pointer cursor to links opening modals
184
- .cursor-pointer {
185
- cursor: pointer;
186
- }
187
-
188
181
 
189
182
  // Print
190
183
  @media print {
@@ -214,4 +207,12 @@ $fa-font-path: '/assets/webfonts' !default;
214
207
  .table th {
215
208
  position: inherit;
216
209
  }
210
+
211
+ // Remove live buttons
212
+ .live-show {
213
+ display: none;
214
+ }
215
+ .live-hide {
216
+ display: inline-block !important;
217
+ }
217
218
  }