jekyll-theme-conference 3.6.5 → 3.6.6
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 +12 -0
- data/_includes/js/program.js +9 -10
- data/_includes/partials/get_talk_time.html +2 -2
- data/_includes/partials/get_talk_timestamp.html +8 -2
- data/_layouts/program.html +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c1ae1f2dbcda31e4ce12d4b75f54f6a312c3655cff07c687f81e51224b7d441
|
4
|
+
data.tar.gz: 596deb64096b9bb97d119e72df6266a41ee850fa02331594bd4a1a8632560715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4e63ef6d5549b73bb3bf19122622e49eab48fcbd748614080ec9f48151c2c2c87ba4270f1db22017e713bca937698c2f947a98bcab5d918a577bab6a6bd5e68
|
7
|
+
data.tar.gz: 738b6b41d1da24784cebc85ffee5e07d2aa8ac2f59df332189b5ccf550e7d10bd74cd67c41df8b4763eda8dda9a4a32ea75086a2f2091134e734795672aea88f
|
data/README.md
CHANGED
@@ -31,6 +31,7 @@ The theme was originally created for the yearly Winterkongress conference of the
|
|
31
31
|
* [Theme Verification](#theme-verification)
|
32
32
|
* [Collection URLs](#collection-urls)
|
33
33
|
* [Language](#language)
|
34
|
+
* [Timezone](#timezone)
|
34
35
|
* [Navigation Bar](#navigation-bar)
|
35
36
|
* [Open Graph Link Preview](#open-graph-link-preview)
|
36
37
|
* [Main Landing Page](#main-landing-page)
|
@@ -251,6 +252,17 @@ conference:
|
|
251
252
|
lang: en
|
252
253
|
```
|
253
254
|
|
255
|
+
### Timezone
|
256
|
+
|
257
|
+
Multiple dynamic features such as showing the current day in the program or live indications require correct timing. Define the timezone in which the conference takes place with the `tz` property set to a valid [UTC timezone offset](https://en.wikipedia.org/wiki/List_of_UTC_offsets) in the format `"+/-HH:MM"`:
|
258
|
+
|
259
|
+
Example:
|
260
|
+
|
261
|
+
```yaml
|
262
|
+
conference:
|
263
|
+
tz: "+02:00"
|
264
|
+
```
|
265
|
+
|
254
266
|
### Navigation Bar
|
255
267
|
|
256
268
|
The navigation bar is located at the top and visible on every site. On the right it show the title of the website (`site.title`) followed by the links listed under the `links` property of the `navigation` property. See the _Content_ > _Links_ section below for the available properties per link.
|
data/_includes/js/program.js
CHANGED
@@ -6,37 +6,36 @@ window.conference.program = (() => {
|
|
6
6
|
};
|
7
7
|
|
8
8
|
const init = () => {
|
9
|
-
if ($(
|
9
|
+
if ($("#day-list")) {
|
10
10
|
// Switch to day if page load with hash
|
11
11
|
const hash = window.location.hash;
|
12
12
|
if (hash) {
|
13
|
-
$('#day-list a[href="' + hash + '"]').tab(
|
13
|
+
$('#day-list a[href="' + hash + '"]').tab("show");
|
14
14
|
}
|
15
15
|
|
16
16
|
// Switch to day if today
|
17
17
|
else {
|
18
|
-
|
19
|
-
|
18
|
+
const now = new Date();
|
19
|
+
const tsNow = Math.floor(now.getTime() / 1000);
|
20
20
|
|
21
21
|
$('a[data-toggle="tab"]').each(function () {
|
22
|
-
|
23
|
-
d.setHours(0,0,0,0);
|
22
|
+
const tsMidnight = new Date($(this).data("ts") * 1000);
|
24
23
|
|
25
|
-
if (
|
26
|
-
$(this).tab(
|
24
|
+
if (tsMidnight <= tsNow < tsMidnight + 24 * 60 * 60) {
|
25
|
+
$(this).tab("show");
|
27
26
|
updateHash(this.hash);
|
28
27
|
}
|
29
28
|
});
|
30
29
|
}
|
31
30
|
|
32
31
|
// Add current selected day as hash to URL while keeping current scrolling position
|
33
|
-
$('a[data-toggle="tab"]').on(
|
32
|
+
$('a[data-toggle="tab"]').on("shown.bs.tab", function () {
|
34
33
|
updateHash(this.hash);
|
35
34
|
});
|
36
35
|
}
|
37
36
|
};
|
38
37
|
|
39
38
|
return {
|
40
|
-
init: init
|
39
|
+
init: init,
|
41
40
|
};
|
42
41
|
})();
|
@@ -1,5 +1,5 @@
|
|
1
|
-
{%- assign talk_start = t.time_start -%}
|
2
|
-
{%- assign talk_end = t.time_end -%}
|
1
|
+
{%- assign talk_start = t.time_start | default: "00:00" -%}
|
2
|
+
{%- assign talk_end = t.time_end | default: "00:00" -%}
|
3
3
|
|
4
4
|
{%- if talk_start contains ' +' -%}
|
5
5
|
{%- assign talk_start_day = talk_start | split: ' +' | last | plus: 0 -%}
|
@@ -1,9 +1,15 @@
|
|
1
1
|
{%- include partials/get_talk_time.html -%}
|
2
2
|
|
3
|
-
{%- assign datetime_start = d.date | append: "
|
3
|
+
{%- assign datetime_start = d.date | append: "T" | append: talk_start | append: ":00" -%}
|
4
|
+
{%- if site.conference.tz -%}
|
5
|
+
{%- assign datetime_start = datetime_start | append: site.conference.tz -%}
|
6
|
+
{%- endif -%}
|
4
7
|
{%- assign add_days_start = talk_start_day | times: 24 | times: 60 | times: 60 -%}
|
5
8
|
{%- assign timestamp_start = datetime_start | date: "%s" | plus: add_days_start | date: "%s" -%}
|
6
9
|
|
7
|
-
{%- assign datetime_end = d.date | append: "
|
10
|
+
{%- assign datetime_end = d.date | append: "T" | append: talk_end | append: ":00" -%}
|
11
|
+
{%- if site.conference.tz -%}
|
12
|
+
{%- assign datetime_end = datetime_end | append: site.conference.tz -%}
|
13
|
+
{%- endif -%}
|
8
14
|
{%- assign add_days_end = talk_end_day | times: 24 | times: 60 | times: 60 -%}
|
9
15
|
{%- assign timestamp_end = datetime_end | date: "%s" | plus: add_days_end | date: "%s" -%}
|
data/_layouts/program.html
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
{%- for d in site.data.program.days -%}
|
17
17
|
{%- include partials/get_day_hash.html %}
|
18
18
|
<li class="nav-item" role="presentation">
|
19
|
-
<a class="nav-link btn btn-outline-secondary {%- if forloop.index == 1 %} active{% endif %}" id="tab-{{ day_hash }}" data-toggle="tab" {%- if d.date %} data-
|
19
|
+
<a class="nav-link btn btn-outline-secondary {%- if forloop.index == 1 %} active{% endif %}" id="tab-{{ day_hash }}" data-toggle="tab" {%- if d.date -%}{%- include partials/get_talk_timestamp.html %} data-ts="{{ timestamp_start }}" {%- endif %} href="#{{ day_hash }}" role="tab" aria-controls="{{ day_hash }}" aria-selected="{% if forloop.index == 1 %}true{% else %}false{% endif %}">{{ day_name }}</a>
|
20
20
|
</li>
|
21
21
|
{%- endfor %}
|
22
22
|
</ul>
|
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.6.
|
4
|
+
version: 3.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lorenz Schmid
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -287,7 +287,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
287
287
|
- !ruby/object:Gem::Version
|
288
288
|
version: '0'
|
289
289
|
requirements: []
|
290
|
-
rubygems_version: 3.
|
290
|
+
rubygems_version: 3.4.19
|
291
291
|
signing_key:
|
292
292
|
specification_version: 4
|
293
293
|
summary: Jekyll template for a conference website containing program, speaker, talks
|