jekyll-theme-conference 3.6.5 → 3.6.7

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.
@@ -6,37 +6,36 @@ window.conference.program = (() => {
6
6
  };
7
7
 
8
8
  const init = () => {
9
- if ($('#day-list')) {
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('show');
13
+ $('#day-list a[href="' + hash + '"]').tab("show");
14
14
  }
15
15
 
16
16
  // Switch to day if today
17
17
  else {
18
- let today = new Date();
19
- today.setHours(0,0,0,0);
18
+ const now = new Date();
19
+ const tsNow = Math.floor(now.getTime() / 1000);
20
20
 
21
21
  $('a[data-toggle="tab"]').each(function () {
22
- let d = new Date($(this).data('date'));
23
- d.setHours(0,0,0,0);
22
+ const tsMidnight = new Date($(this).data("ts") * 1000);
24
23
 
25
- if (today.getTime() === d.getTime()) {
26
- $(this).tab('show');
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('shown.bs.tab', function () {
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,85 +1,99 @@
1
-
2
- {%- assign link_disabled = link.disabled -%}
3
- {%- assign link_icon = link.icon -%}
4
- {%- assign link_iframe = link.iframe -%}
5
-
6
- {%- if link.absolute_url -%}
7
- {%- assign link_href = link.absolute_url -%}
8
-
9
- {%- elsif link.relative_url -%}
10
- {%- assign link_href = link.relative_url | prepend: site.baseurl -%}
11
-
12
- {%- elsif link.file -%}
13
- {%- assign link_icon = "file-alt" -%}
14
-
15
- {%- if talk -%}
16
- {%- assign link_href = link.file | prepend: '/documents/slides/' | prepend: site.baseurl -%}
17
-
18
- {%- elsif speaker -%}
19
- {%- assign link_href = link.file | prepend: '/documents/bio/' | prepend: site.baseurl -%}
20
-
21
- {%- else -%}
22
- {%- assign link_href = link.file | prepend: '/documents/' | prepend: site.baseurl -%}
23
-
24
- {%- endif -%}
25
-
26
- {%- elsif link.video -%}
27
- {%- assign link_href = link.video -%}
28
- {%- assign link_icon = "video" -%}
29
- {%- assign link_iframe = true -%}
30
-
31
- {%- if talk -%}
32
- {%- capture modal_title -%}
33
- {%- if talk.hide -%}
34
- {{ talk.name }}
35
- {%- else -%}
36
- <a class="text-reset" href="{{ talk.url | prepend: site.baseurl }}">
37
- {{ talk.name }}
38
- </a>
39
- {%- endif -%}
40
- {%- endcapture -%}
41
- {%- capture modal_subtitle -%}
42
- {%- include partials/list_speakers.html -%}
43
- {%- endcapture -%}
44
-
45
- {%- elsif speaker -%}
46
- {%- capture modal_title -%}
47
- {%- if speaker.hide -%}
48
- {{ speaker.first_name }} {{ speaker.last_name }}
49
- {%- else -%}
50
- <a class="text-reset" href="{{ speaker.url | prepend: site.baseurl }}">
51
- {{ speaker.first_name }} {{ speaker.last_name }}
52
- </a>
53
- {%- endif -%}
54
- {%- endcapture -%}
55
- {%- assign modal_footer = link.name -%}
56
-
57
- {%- endif -%}
58
-
59
- {%- else -%}
60
- {%- assign link_disabled = true -%}
61
-
62
- {%- endif -%}
63
-
64
- {%- capture link_tag -%}
65
- {%- if link.disabled -%}
66
- <a class="disabled{% if link_styleclass %} {{ link_styleclass }}{% endif %}" href="#">
67
-
68
- {%- elsif link_iframe -%}
69
- <a {% if link_styleclass %}class="{{ link_styleclass }}"{% endif %} title="{{ link.name }}" data-toggle="modal" data-target="#link-modal" data-href="{{ link_href }}" href="#" {% if modal_title -%}
70
- data-format='html' data-title="{{ modal_title | strip_newlines | escape }}" {%- if modal_subtitle %} data-subtitle="{{ modal_subtitle | strip_newlines | escape }}"{%- endif -%}
71
- {%- elsif link.name -%}
72
- data-format='text' data-title="{{ link.name }}"
73
- {%- endif %} {% if modal_footer -%}
74
- data-format='html' data-footer="{{ modal_footer | strip_newlines | escape }}"
75
- {%- elsif link.description -%}
76
- data-format='text' data-footer="{{ link.description }}"
77
- {%- endif %}>
78
-
79
- {%- else -%}
80
- <a{% if link_styleclass %} class="{{ link_styleclass }}"{% endif %} href="{{ link_href }}" title="{{ link.name }}">
81
-
82
- {%- endif -%}
83
- {%- endcapture -%}
84
-
85
- {%- assign link_styleclass = "" -%}
1
+ {%- assign link_valid = false -%}
2
+ {%- if link.live -%}
3
+ {%- if include.link_type == "live" -%}
4
+ {%- assign link_valid = true -%}
5
+ {%- endif -%}
6
+ {%- elsif link.icon or link.file or link.video -%}
7
+ {%- if include.link_type == "icon" -%}
8
+ {%- assign link_valid = true -%}
9
+ {%- endif -%}
10
+ {%- else -%}
11
+ {%- if include.link_type == "regular" -%}
12
+ {%- assign link_valid = true -%}
13
+ {%- endif -%}
14
+ {%- endif -%}
15
+
16
+ {%- assign link_disabled = link.disabled -%}
17
+ {%- assign link_icon = link.icon -%}
18
+ {%- assign link_iframe = link.iframe -%}
19
+
20
+ {%- if link.absolute_url -%}
21
+ {%- assign link_href = link.absolute_url -%}
22
+
23
+ {%- elsif link.relative_url -%}
24
+ {%- assign link_href = link.relative_url | prepend: site.baseurl -%}
25
+
26
+ {%- elsif link.file -%}
27
+ {%- assign link_icon = link.icon | default: "file-alt" -%}
28
+
29
+ {%- if talk -%}
30
+ {%- assign link_href = link.file | prepend: '/documents/slides/' | prepend: site.baseurl -%}
31
+
32
+ {%- elsif speaker -%}
33
+ {%- assign link_href = link.file | prepend: '/documents/bio/' | prepend: site.baseurl -%}
34
+
35
+ {%- else -%}
36
+ {%- assign link_href = link.file | prepend: '/documents/' | prepend: site.baseurl -%}
37
+
38
+ {%- endif -%}
39
+
40
+ {%- elsif link.video -%}
41
+ {%- assign link_href = link.video -%}
42
+ {%- assign link_icon = link.icon | default: "video" -%}
43
+ {%- assign link_iframe = link.iframe | default: true -%}
44
+
45
+ {%- if talk -%}
46
+ {%- capture modal_title -%}
47
+ {%- if talk.hide -%}
48
+ {{ talk.name }}
49
+ {%- else -%}
50
+ <a class="text-reset" href="{{ talk.url | prepend: site.baseurl }}">
51
+ {{ talk.name }}
52
+ </a>
53
+ {%- endif -%}
54
+ {%- endcapture -%}
55
+ {%- capture modal_subtitle -%}
56
+ {%- include partials/list_speakers.html -%}
57
+ {%- endcapture -%}
58
+
59
+ {%- elsif speaker -%}
60
+ {%- capture modal_title -%}
61
+ {%- if speaker.hide -%}
62
+ {{ speaker.first_name }} {{ speaker.last_name }}
63
+ {%- else -%}
64
+ <a class="text-reset" href="{{ speaker.url | prepend: site.baseurl }}">
65
+ {{ speaker.first_name }} {{ speaker.last_name }}
66
+ </a>
67
+ {%- endif -%}
68
+ {%- endcapture -%}
69
+ {%- assign modal_footer = link.name -%}
70
+
71
+ {%- endif -%}
72
+
73
+ {%- else -%}
74
+ {%- assign link_disabled = true -%}
75
+
76
+ {%- endif -%}
77
+
78
+ {%- capture link_tag -%}
79
+ {%- if link.disabled -%}
80
+ <a class="disabled{% if link_styleclass %} {{ link_styleclass }}{% endif %}" href="#">
81
+
82
+ {%- elsif link_iframe -%}
83
+ <a {% if link_styleclass %}class="{{ link_styleclass }}"{% endif %} title="{{ link.name }}" data-toggle="modal" data-target="#link-modal" data-href="{{ link_href }}" href="#" {% if modal_title -%}
84
+ data-format='html' data-title="{{ modal_title | strip_newlines | escape }}" {%- if modal_subtitle %} data-subtitle="{{ modal_subtitle | strip_newlines | escape }}"{%- endif -%}
85
+ {%- elsif link.name -%}
86
+ data-format='text' data-title="{{ link.name }}"
87
+ {%- endif %} {% if modal_footer -%}
88
+ data-format='html' data-footer="{{ modal_footer | strip_newlines | escape }}"
89
+ {%- elsif link.description -%}
90
+ data-format='text' data-footer="{{ link.description }}"
91
+ {%- endif %}>
92
+
93
+ {%- else -%}
94
+ <a{% if link_styleclass %} class="{{ link_styleclass }}"{% endif %} href="{{ link_href }}" title="{{ link.name }}">
95
+
96
+ {%- endif -%}
97
+ {%- endcapture -%}
98
+
99
+ {%- assign link_styleclass = "" -%}
@@ -4,12 +4,15 @@
4
4
  {%- assign links = speaker.links -%}
5
5
  {%- endif -%}
6
6
 
7
- {%- assign has_icon_links = false -%}
8
- {%- assign has_regular_links = false -%}
7
+ {%- assign has_live_links = 0 -%}
8
+ {%- assign has_icon_links = 0 -%}
9
+ {%- assign has_regular_links = 0 -%}
9
10
  {%- for link in links -%}
10
- {%- if link.icon or link.file or link.video -%}
11
- {%- assign has_icon_links = true -%}
11
+ {%- if link.live -%}
12
+ {%- assign has_live_links = has_live_links | plus: 1 -%}
13
+ {%- elsif link.icon or link.file or link.video -%}
14
+ {%- assign has_icon_links = has_icon_links | plus: 1 -%}
12
15
  {%- else -%}
13
- {%- assign has_regular_links = true -%}
16
+ {%- assign has_regular_links = has_regular_links | plus: 1 -%}
14
17
  {%- endif -%}
15
18
  {%- endfor -%}
@@ -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: " " | append: talk_start -%}
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: " " | append: talk_end -%}
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" -%}
@@ -31,42 +31,57 @@
31
31
  {%- elsif link.live -%}
32
32
  {%- include partials/get_live_timestamps.html -%}
33
33
 
34
- {%- if link.name_inactive -%}
35
- <li class="nav-item live-hide" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
36
- <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">
37
- {{ link.name_inactive }}
38
- </a>
39
- </li>
34
+ {%- if link.name == blank -%}
35
+ {%- assign link_name = site.data.lang[site.conference.lang].live.stream | default: "Live Stream" -%}
36
+ {%- elsif link.name -%}
37
+ {%- assign link_name = link.name -%}
38
+ {%- else -%}
39
+ {%- assign link_name = nil -%}
40
40
  {%- endif -%}
41
41
 
42
- <li class="nav-item live-show d-none" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
43
- {%- if site.conference.live.streaming.enable %}
44
- <a class="nav-link" title="
45
- {%- if link.name -%}
46
- {{- link.name -}}
47
- {%- else -%}
48
- {{- site.data.lang[site.conference.lang].live.stream | default: "Live Stream" -}}
49
- {%- endif -%}
50
- " {% if site.conference.live.streaming.external -%}
42
+ {%- if link_name -%}
43
+ <li class="nav-item live-show d-none" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
44
+ {%- if site.conference.live.streaming.enable %}
45
+ <a
46
+ class="nav-link"
47
+ title="{{ link_name }}"
48
+ {%- if site.conference.live.streaming.external %}
51
49
  href="{{ site.conference.live.streaming.external }}"
52
- {%- else -%}
50
+ {%- else %}
53
51
  data-toggle="modal" data-target="#stream-modal" data-room="{{ r.name }}" href="#"
54
52
  {%- endif -%}
55
53
  >
56
- {%- else %}
57
- {%- assign link_styleclass = "nav-link" -%}
58
- {%- include partials/get_link.html %}
59
- {{ link_tag }}
60
- {%- endif %}
54
+ {%- else %}
55
+ {%- assign link_styleclass = "nav-link" -%}
56
+ {%- include partials/get_link.html %}
57
+ {{ link_tag }}
58
+ {%- endif %}
61
59
 
62
- {{ link.name | default: "" }}
60
+ {{ link_name }}
63
61
 
64
- <span class="live-button badge badge-dark font-weight-normal text-left">
65
- <object data="{{ site.baseurl }}/assets/icons/live.svg" type="image/svg+xml">!</object>
66
- {{ site.data.lang[site.conference.lang].live.live | default: "Live" }}
67
- </span>
68
- </a>
69
- </li>
62
+ <span class="live-button badge badge-dark font-weight-normal text-left">
63
+ <object data="{{ site.baseurl }}/assets/icons/live.svg" type="image/svg+xml">!</object>
64
+ {{ site.data.lang[site.conference.lang].live.live | default: "Live" }}
65
+ </span>
66
+ </a>
67
+ </li>
68
+ {%- endif -%}
69
+
70
+ {%- if link.name_inactive == blank -%}
71
+ {%- assign link_name_inactive = site.data.lang[site.conference.lang].live.stream | default: "Live Stream" -%}
72
+ {%- elsif link.name_inactive -%}
73
+ {%- assign link_name_inactive = link.name_inactive -%}
74
+ {%- else -%}
75
+ {%- assign link_name_inactive = nil -%}
76
+ {%- endif -%}
77
+
78
+ {%- if link_name_inactive -%}
79
+ <li class="nav-item live-hide" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
80
+ <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">
81
+ {{ link_name_inactive }}
82
+ </a>
83
+ </li>
84
+ {%- endif -%}
70
85
 
71
86
  {%- else %}
72
87
  <li class="nav-item {% if page.url contains link.relative_url %}active{% endif %}">
data/_layouts/data.html CHANGED
@@ -94,19 +94,25 @@
94
94
  "start": {{ timestamp_start }},
95
95
  "end": {{ timestamp_end }}
96
96
 
97
- {%- if talk.live.links -%},
97
+ {% include partials/get_link_types.html %}
98
+ {%- if has_live_links > 0 -%},
98
99
  "live_links": [
99
- {%- for link in talk.live.links %}
100
+ {%- for link in talk.links -%}
101
+ {%- include partials/get_link.html link_type="live" -%}
102
+ {%- if link_valid %},
100
103
  {
101
104
  "name": "{{ link.name | replace: '"', '\"' }}",
102
- "href": "{{ link.absolute_url | replace: '"', '%22' }}"
103
- {%- if link.icon -%},
104
- "icon": "{{ link.icon | replace: '"', '\"' }}"
105
- {%- endif %}
106
- {%- if link.disabled -%},
105
+ "href": "{{ link_href | replace: '"', '%22' }}"
106
+ {%- if link_icon -%},
107
+ "icon": "{{ link_icon | replace: '"', '\"' }}"
108
+ {%- endif %}
109
+ {%- if link_disabled -%},
107
110
  "disabled": true
111
+ {%- endif -%}
108
112
  {%- endif %}
109
- }{%- unless forloop.last -%},{%- endunless -%}
113
+ }
114
+ {%- assign has_live_links = has_live_links | minus: 1 -%}
115
+ {%- if has_live_links > 0 -%},{%- endif -%}
110
116
  {%- endfor %}
111
117
  ]
112
118
  {%- endif %}
data/_layouts/home.html CHANGED
@@ -46,30 +46,55 @@
46
46
  {% elsif link.live %}
47
47
  {%- include partials/get_live_timestamps.html -%}
48
48
 
49
- {%- if link.name -%}
49
+ {%- if link.name == blank -%}
50
+ {%- assign link_name = site.data.lang[site.conference.lang].live.stream | default: "Live Stream" -%}
51
+ {%- elsif link.name -%}
50
52
  {%- assign link_name = link.name -%}
51
53
  {%- else -%}
52
- {%- assign link_name = site.data.lang[site.conference.lang].live.stream | default: "Live Stream" -%}
54
+ {%- assign link_name = nil -%}
53
55
  {%- endif -%}
54
56
 
55
- {%- if link.name_inactive -%}
56
- <span class="live-hide {{ btn_default }} disabled" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
57
- {{ link.name_inactive }}
57
+ {%- if link_name -%}
58
+ <span class="live-show d-none" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
59
+ {% if site.conference.live.streaming.enable %}
60
+ <a
61
+ class="{{ btn_default }}"
62
+ title="{{ link_name }}"
63
+ {%- if site.conference.live.streaming.external %}
64
+ href="{{ site.conference.live.streaming.external }}"
65
+ {%- else %}
66
+ data-toggle="modal" data-target="#stream-modal" data-room="" href="#"
67
+ {%- endif -%}
68
+ >
69
+ {% else %}
70
+ {% assign link_styleclass = btn_default %}
71
+ {% include partials/get_link.html %}
72
+ {{ link_tag }}
73
+ {% endif %}
74
+
75
+ {{ link_name }}
76
+
77
+ <span class="live-button badge badge-dark font-weight-normal text-left">
78
+ <object data="{{ site.baseurl }}/assets/icons/live.svg" type="image/svg+xml">!</object>
79
+ {{ site.data.lang[site.conference.lang].live.live | default: "Live" }}
80
+ </span>
81
+ </a>
58
82
  </span>
59
83
  {%- endif -%}
60
84
 
61
- <span class="live-show d-none" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
62
- {% if site.conference.live.streaming.enable %}
63
- <a class="{{ btn_default }}" title="{{ link_name }}" data-toggle="modal" data-target="#stream-modal" data-room="" href="#">
64
- {% else %}
65
- {% assign link_styleclass = "{{ btn_default }}" %}
66
- {% include partials/get_link.html %}
67
- {{ link_tag }}
68
- {% endif %}
85
+ {%- if link.name_inactive == blank -%}
86
+ {%- assign link_name_inactive = site.data.lang[site.conference.lang].live.stream | default: "Live Stream" -%}
87
+ {%- elsif link.name_inactive -%}
88
+ {%- assign link_name_inactive = link.name_inactive -%}
89
+ {%- else -%}
90
+ {%- assign link_name_inactive = nil -%}
91
+ {%- endif -%}
69
92
 
70
- {{ link_name }}
71
- </a>
72
- </span>
93
+ {%- if link_name_inactive -%}
94
+ <span class="live-hide {{ btn_default }} disabled" data-start="{{ live_starts }}" data-end="{{ live_ends }}">
95
+ {{ link_name_inactive }}
96
+ </span>
97
+ {%- endif -%}
73
98
 
74
99
  {% else %}
75
100
  {% assign link_styleclass = btn_default %}
@@ -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-date="{{ d.date }}" {%- endif %} href="#{{ day_hash }}" role="tab" aria-controls="{{ day_hash }}" aria-selected="{% if forloop.index == 1 %}true{% else %}false{% endif %}">{{ day_name }}</a>
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>
@@ -15,13 +15,13 @@
15
15
 
16
16
  {% include partials/get_link_types.html %}
17
17
 
18
- {% if has_icon_links %}
18
+ {% if has_icon_links > 0 %}
19
19
  <ul class="list-unstyled">
20
20
  {% for link in speaker.links %}
21
21
  {% assign link_styleclass = "text-reset" %}
22
- {% include partials/get_link.html %}
22
+ {% include partials/get_link.html link_type="icon" %}
23
23
 
24
- {% if link_icon %}
24
+ {% if link_valid %}
25
25
  <li class="mb-1">
26
26
  {{ link_tag }}
27
27
  <span class="badge badge-light font-weight-normal mr-1">
@@ -35,21 +35,21 @@
35
35
  </ul>
36
36
  {% endif %}
37
37
 
38
- {% if has_regular_links %}
38
+ {% if has_regular_links > 0 %}
39
39
  <h5 class="mt-4 mb-1">{{ site.data.lang[site.conference.lang].more_information | default: "More Information" }}:</h5>
40
40
 
41
41
  <ul class="list-unstyled">
42
42
  {% for link in speaker.links %}
43
43
  {% assign link_styleclass = "text-reset" %}
44
- {% include partials/get_link.html %}
44
+ {% include partials/get_link.html link_type="regular" %}
45
45
 
46
- {% unless link_icon %}
46
+ {% if link_valid %}
47
47
  <li class="mb-1 ml-2 pl-2 border-soft-primary">
48
48
  {{ link_tag }}
49
49
  {{ link.name }}
50
50
  </a>
51
51
  </li>
52
- {% endunless %}
52
+ {% endif %}
53
53
  {% endfor %}
54
54
  </ul>
55
55
  {% endif %}
@@ -88,11 +88,11 @@
88
88
  {%- include partials/list_sub_categories.html -%}
89
89
 
90
90
  {%- include partials/get_link_types.html -%}
91
- {%- if has_icon_links and site.conference.talks.hide_icons != true -%}
91
+ {%- if has_icon_links > 0 and site.conference.talks.hide_icons != true -%}
92
92
  {% for link in talk.links -%}
93
93
  {%- assign link_styleclass = "badge badge-light text-reset font-weight-normal mr-1" -%}
94
- {%- include partials/get_link.html -%}
95
- {%- if link_icon -%}
94
+ {%- include partials/get_link.html link_type="icon" -%}
95
+ {%- if link_valid -%}
96
96
  {{- link_tag -}}
97
97
  <i class="fas fa-{{ link_icon }} text-secondary"></i>
98
98
  </a>
data/_layouts/talk.html CHANGED
@@ -70,13 +70,13 @@
70
70
 
71
71
  {% include partials/get_link_types.html %}
72
72
 
73
- {% if has_icon_links %}
73
+ {% if has_icon_links > 0 %}
74
74
  <ul class="list-unstyled">
75
75
  {% for link in talk.links %}
76
76
  {% assign link_styleclass = "text-reset" %}
77
- {% include partials/get_link.html %}
77
+ {% include partials/get_link.html link_type="icon" %}
78
78
 
79
- {% if link_icon %}
79
+ {% if link_valid %}
80
80
  <li class="mb-1">
81
81
  {{ link_tag }}
82
82
  <span class="badge bg-soft-{{ main_cat_color }} font-weight-normal mr-1">
@@ -90,21 +90,21 @@
90
90
  </ul>
91
91
  {% endif %}
92
92
 
93
- {% if has_regular_links %}
93
+ {% if has_regular_links > 0 %}
94
94
  <h5 class="mt-4 mb-1">{{ site.data.lang[site.conference.lang].more_information | default: "More information" }}:</h5>
95
95
 
96
96
  <ul class="list-unstyled">
97
97
  {% for link in talk.links %}
98
98
  {% assign link_styleclass = "text-reset" %}
99
- {% include partials/get_link.html %}
99
+ {% include partials/get_link.html link_type="regular" %}
100
100
 
101
- {% unless link_icon %}
101
+ {% if link_valid %}
102
102
  <li class="mb-1 ml-2 pl-2 border-soft-{{ main_cat_color }}">
103
103
  {{ link_tag }}
104
104
  {{ link.name }}
105
105
  </a>
106
106
  </li>
107
- {% endunless %}
107
+ {% endif %}
108
108
  {% endfor %}
109
109
  </ul>
110
110
  {% endif %}
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.5
4
+ version: 3.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lorenz Schmid
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-29 00:00:00.000000000 Z
11
+ date: 2025-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '12.0'
55
- description:
55
+ description:
56
56
  email:
57
57
  - lorenzschmid@users.noreply.github.com
58
58
  executables: []
@@ -272,7 +272,7 @@ homepage: https://github.com/DigitaleGesellschaft/jekyll-theme-conference/
272
272
  licenses:
273
273
  - MIT
274
274
  metadata: {}
275
- post_install_message:
275
+ post_install_message:
276
276
  rdoc_options: []
277
277
  require_paths:
278
278
  - lib
@@ -287,8 +287,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
287
287
  - !ruby/object:Gem::Version
288
288
  version: '0'
289
289
  requirements: []
290
- rubygems_version: 3.3.26
291
- signing_key:
290
+ rubygems_version: 3.5.22
291
+ signing_key:
292
292
  specification_version: 4
293
293
  summary: Jekyll template for a conference website containing program, speaker, talks
294
294
  and room overview.