jekyll-theme-conference 3.1.5 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/_includes/partials/get_day_time.html +4 -2
- data/_includes/partials/get_talk_time.html +18 -3
- data/_includes/partials/get_talk_timestamp.html +9 -4
- data/_layouts/program.html +14 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4f5a6058ed0096854e4b7d4714298ea9bc253a394b8170d3ae2d280bec3913e
|
4
|
+
data.tar.gz: 5ed07180716fc59636f3b5a9634fd7d430166796285566751a927ce9f15be913
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08f8a0a6c90e0c23ee563b18200cbbd902385d388373c5b77ad05c6fda440914825b685771907947f7f2165378e2edd13ef7421d75133bf3e6d38f3ea6c75d8b'
|
7
|
+
data.tar.gz: 7095bab0d1cd826c3f1921d203ff67ae51f69c0d218196a0e45530cc227d2c3bab3e3b10529ffa27e840980fef9f9e6ed7cc5c6c3aa111a43ba2d7363bd54ddc
|
data/README.md
CHANGED
@@ -514,7 +514,7 @@ The order of the rooms in the list defines the order of the rooms as shown in th
|
|
514
514
|
Each talk consists of
|
515
515
|
|
516
516
|
- a `name` (must correspond to one of the talk identifier),
|
517
|
-
- a starting time `time_start` given as `H:M` ([`strftime`](http://www.strfti.me) formated), and
|
517
|
+
- a starting time `time_start` given as `H:M` ([`strftime`](http://www.strfti.me) formated) or `H:M +∆` whereby ∆ is the day offset in relation to the date given for the given day, and
|
518
518
|
- an end time `time_end`.
|
519
519
|
|
520
520
|
The list of talks should (manually) be ordered by time, i.e. the first occurring talk should be listed first.
|
@@ -563,6 +563,8 @@ Each speaker is represented by a file in the `_speakers/` directory. It must beg
|
|
563
563
|
- optionally a list of `links` (see the _Links_ subsection below for the available properties per link; links with icons are treated separately), and
|
564
564
|
- optionally `hide: true` if the speaker's page should not be linked to.
|
565
565
|
|
566
|
+
If the speaker's name consists only out of one word, populate the `last_name` property and leave the `first_name` property empty. The last name is generally used for sorting the speakers.
|
567
|
+
|
566
568
|
### Rooms
|
567
569
|
|
568
570
|
Each room is represented by a file in the `_rooms/` directory. It must begin with valid [YAML Front Matter](https://jekyllrb.com/docs/frontmatter/) containing
|
@@ -2,8 +2,9 @@
|
|
2
2
|
{%- assign t = r.talks | first -%}
|
3
3
|
{%- include partials/get_talk_time.html -%}
|
4
4
|
|
5
|
-
{%- if forloop.index == 1 or talk_start_hour < day_start_hour or talk_start_hour == day_start_hour and talk_start_min < day_start_min-%}
|
5
|
+
{%- if forloop.index == 1 or talk_start_day < day_start_day or talk_start_day == day_start_day and talk_start_hour < day_start_hour or talk_start_hour == day_start_hour and talk_start_min < day_start_min-%}
|
6
6
|
{%- assign day_start_talk = t -%}
|
7
|
+
{%- assign day_start_day = talk_start_day -%}
|
7
8
|
{%- assign day_start_hour = talk_start_hour -%}
|
8
9
|
{%- assign day_start_min = talk_start_min -%}
|
9
10
|
{%- endif -%}
|
@@ -11,8 +12,9 @@
|
|
11
12
|
{%- assign t = r.talks | last -%}
|
12
13
|
{%- include partials/get_talk_time.html -%}
|
13
14
|
|
14
|
-
{%- if forloop.index == 1 or talk_end_hour > day_end_hour or talk_end_hour == day_end_hour and talk_end_min > day_end_min-%}
|
15
|
+
{%- if forloop.index == 1 or talk_end_day > day_end_day or talk_end_day == day_end_day and talk_end_hour > day_end_hour or talk_end_hour == day_end_hour and talk_end_min > day_end_min-%}
|
15
16
|
{%- assign day_end_talk = t -%}
|
17
|
+
{%- assign day_end_day = talk_end_day -%}
|
16
18
|
{%- assign day_end_hour = talk_end_hour -%}
|
17
19
|
{%- assign day_end_min = talk_end_min -%}
|
18
20
|
{%- endif -%}
|
@@ -1,9 +1,24 @@
|
|
1
1
|
{%- assign talk_start = t.time_start -%}
|
2
2
|
{%- assign talk_end = t.time_end -%}
|
3
3
|
|
4
|
-
{%-
|
4
|
+
{%- if talk_start contains ' +' -%}
|
5
|
+
{%- assign talk_start_day = talk_start | split: ' +' | last | plus: 0 -%}
|
6
|
+
{%- assign talk_start = talk_start | split: ' +' | first -%}
|
7
|
+
{%- else -%}
|
8
|
+
{%- assign talk_start_day = 0 -%}
|
9
|
+
{%- endif -%}
|
10
|
+
{%- if talk_end contains ' +' -%}
|
11
|
+
{%- assign talk_end_day = talk_end | split: ' +' | last | plus: 0 -%}
|
12
|
+
{%- assign talk_end = talk_end | split: ' +' | first -%}
|
13
|
+
{%- else -%}
|
14
|
+
{%- assign talk_end_day = 0 -%}
|
15
|
+
{%- endif -%}
|
16
|
+
|
17
|
+
{%- assign talk_start_hour = talk_start | split: ':' | first | plus: 0 -%}
|
5
18
|
{%- assign talk_start_min = talk_start | split: ':' | last | divided_by: site.conference.program.time_steps | floor | times: site.conference.program.time_steps -%}
|
6
|
-
{%- assign talk_end_hour = talk_end | split: ':' | first -%}
|
19
|
+
{%- assign talk_end_hour = talk_end | split: ':' | first | plus: 0 -%}
|
7
20
|
{%- assign talk_end_min = talk_end | split: ':' | last | divided_by: site.conference.program.time_steps | ceil | times: site.conference.program.time_steps -%}
|
8
21
|
|
9
|
-
{%- assign
|
22
|
+
{%- assign talk_start_hour_24h = talk_start_day | times: 24 | plus: talk_start_hour -%}
|
23
|
+
{%- assign talk_end_hour_24h = talk_end_day | times: 24 | plus: talk_end_hour -%}
|
24
|
+
{%- assign talk_duration_min = talk_end_hour_24h | minus: talk_start_hour_24h | times: 60 | minus: talk_start_min | plus: talk_end_min -%}
|
@@ -1,4 +1,9 @@
|
|
1
|
-
{%-
|
2
|
-
|
3
|
-
{%- assign
|
4
|
-
{%- assign
|
1
|
+
{%- include partials/get_talk_time.html -%}
|
2
|
+
|
3
|
+
{%- assign datetime_start = d.date | append: " " | append: time_start -%}
|
4
|
+
{%- assign add_days_start = talk_start_day | times: 24 | times: 60 | times: 60 -%}
|
5
|
+
{%- assign timestamp_start = datetime_start | date: "%s" | plus: add_days_start | date: "%s" -%}
|
6
|
+
|
7
|
+
{%- assign datetime_end = d.date | append: " " | append: time_end -%}
|
8
|
+
{%- assign add_days_end = talk_end_day | times: 24 | times: 60 | times: 60 -%}
|
9
|
+
{%- assign timestamp_end = datetime_end | date: "%s" | plus: add_days_end | date: "%s" -%}
|
data/_layouts/program.html
CHANGED
@@ -61,6 +61,10 @@
|
|
61
61
|
<tbody>
|
62
62
|
{%- include partials/get_day_time.html -%}
|
63
63
|
|
64
|
+
{%- if day_end_day > day_start_day -%}
|
65
|
+
{%- assign day_end_hour = day_end_day | minus: day_start_day | times: 24 | plus: day_end_hour -%}
|
66
|
+
{%- endif -%}
|
67
|
+
|
64
68
|
{%- assign day_duration_min = day_end_hour | minus: day_start_hour | times: 60 | minus: day_start_min | plus: day_end_min -%}
|
65
69
|
{%- assign nbr_steps = day_duration_min | divided_by: site.conference.program.time_steps -%}
|
66
70
|
|
@@ -74,7 +78,12 @@
|
|
74
78
|
{%- assign z-index-max = 999 -%}
|
75
79
|
|
76
80
|
{%- for i in (1..nbr_steps) -%}
|
77
|
-
{%- assign
|
81
|
+
{%- assign current_day = 0 -%}
|
82
|
+
{%- assign current_hour = i | minus: 1 | times: site.conference.program.time_steps | plus: day_start_min | divided_by: 60 | floor | plus: day_start_hour -%}
|
83
|
+
{%- if current_hour >= 24 -%}
|
84
|
+
{%- assign current_day = current_hour | divided_by: 24 | floor -%}
|
85
|
+
{%- assign current_hour = current_hour | modulo: 24 -%}
|
86
|
+
{%- endif -%}
|
78
87
|
{%- assign current_min = i | minus: 1 | times: site.conference.program.time_steps | plus: day_start_min | modulo: 60 -%}
|
79
88
|
{%- if current_min < 10 -%}
|
80
89
|
{%- assign current_time = current_hour | append: ':0' | append: current_min -%}
|
@@ -106,9 +115,9 @@
|
|
106
115
|
|
107
116
|
{%- include partials/get_talk_time.html -%}
|
108
117
|
|
109
|
-
{%- assign d_start_hour = current_hour | minus: talk_start_hour -%}
|
118
|
+
{%- assign d_start_hour = current_day | minus: talk_start_day | times: 24 | plus: current_hour | minus: talk_start_hour -%}
|
110
119
|
{%- assign d_start_min = current_min | minus: talk_start_min -%}
|
111
|
-
{%- assign d_end_hour = current_hour | minus: talk_end_hour -%}
|
120
|
+
{%- assign d_end_hour = current_day | minus: talk_end_day | times: 24 | plus: current_hour | minus: talk_end_hour -%}
|
112
121
|
{%- assign d_end_min = current_min | minus: talk_end_min -%}
|
113
122
|
|
114
123
|
{%- assign has_started = false -%}
|
@@ -127,7 +136,7 @@
|
|
127
136
|
{%- assign has_ended = true -%}
|
128
137
|
{%- endif -%}
|
129
138
|
|
130
|
-
{%- if has_started and has_ended == false -%}
|
139
|
+
{%- if has_started == true and has_ended == false -%}
|
131
140
|
{%- assign active_talk = true -%}
|
132
141
|
{%- endif -%}
|
133
142
|
|
@@ -156,7 +165,7 @@
|
|
156
165
|
|
157
166
|
{%- endfor %}
|
158
167
|
|
159
|
-
{%- unless active_talk %}
|
168
|
+
{%- unless active_talk == true %}
|
160
169
|
<td class="p-0"></td>
|
161
170
|
{%- endunless -%}
|
162
171
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-conference
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lorenz Schmid
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|