jekyll-theme-conference 2.5.1 → 2.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a6617ea192ab16d014da7430f23276860d7ecce37cdd591815103bb086efb65
4
- data.tar.gz: a31e631388e20578008dcef761e416a5a53c53166b068ecb410ee0f75b1f9196
3
+ metadata.gz: 0ebb94e878ab7f234d64b2a45c45153438c9e075251d9dda31bc12e670168f91
4
+ data.tar.gz: '0980a8034943452466ce56df8e81a76b4e0f1bb9f2d66fa9ad7a8028157cf6b8'
5
5
  SHA512:
6
- metadata.gz: ef931eb98d10bc467358f2948e76b15ac8d11a8abe1d7528688a5f672fcb8127a31cbe46165f41b355d58d186ca83a5d010d5b5cb0abfb41f685296c908421ae
7
- data.tar.gz: a3ef7ee1df36b5280534f5819d10c21c2447f9430650e89d0aa4923243656d51d4e2483c888adfe2e30cfb18b0e0d40584add7dc4c3449ba997d604d1f6b9684
6
+ metadata.gz: dfb07d4cad799e4c8e1d2742966b5dce78d586e2d73b359f6f5b8cffd6aacc7f8b510dbadeec3af407f92cd9801eae12edff14240ec81621e8c86de0abc77e93
7
+ data.tar.gz: b2381ce0e3e608130c37f55695e3c27af9980f3097359b6989ecb257bad158611bbfc00b61464835b48a3aadb9144e31077a3e4778ee6f746c953a1f20269bd0
data/README.md CHANGED
@@ -201,11 +201,6 @@ conference:
201
201
 
202
202
  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.
203
203
 
204
- Additionally, a navigation bar link can also have the following properties:
205
-
206
- - `menu` containing another list of links. This creates a dropdown menu of multiple sublinks. The sublinks have the same properties as regular links (see the _Content_ > _Links_ section), or
207
- - `live` making the link only visible during the conference and adds a live indication. The `name` property can be omitted. If streaming is enabled and any URL property is omitted, a click on the link will open the streaming modal (see section _Live Indications_ below).
208
-
209
204
  Example:
210
205
 
211
206
  ```yaml
@@ -519,6 +514,11 @@ Links are used at different location throughout the theme: They can either be us
519
514
  + pointing to a file uploaded to the `/documents` folder (for talks `/documents/slides`, for speakers `/documents/bio`): `file:`
520
515
  + pointing to an external video: `video:`
521
516
 
517
+ Additionally, a navigation bar or main landing page link can also have the following properties:
518
+
519
+ - `menu` containing another list of links. This creates a dropdown menu of multiple sublinks. The sublinks have the same properties as regular links, or
520
+ - `live` making the link only visible during the conference and adds a live indication. The `name` property can be omitted. If streaming is enabled and any URL property is omitted, a click on the link will open the streaming modal (see section _Live Indications_ above).
521
+
522
522
  Using the `file:` indicator, the relative address is automatically set as well as the icon. Using the `video:` indicator, the link is automatically configured to open in an iframe with a corresponding title and the icon is set.
523
523
 
524
524
  Example:
@@ -10,6 +10,7 @@
10
10
  <div class="collapse navbar-collapse" id="navbarSupportedContent">
11
11
  <ul class="navbar-nav mr-auto">
12
12
  {% for link in site.conference.navigation.links %}
13
+
13
14
  {% if link.menu %}
14
15
  <li class="nav-item dropdown">
15
16
  <a class="nav-link dropdown-toggle" href="#" id="navbar-dropdown{{ forloop.index0 }}" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
@@ -22,13 +22,63 @@
22
22
  {{ content }}
23
23
 
24
24
  {% if site.conference.main.links %}
25
- <p class="lead d-print-none">
25
+ <div class="lead d-print-none">
26
26
  {% for link in site.conference.main.links %}
27
- {% assign link_styleclass = "btn btn-outline-primary btn-lg mt-2" %}
28
- {% include partials/get_link.html %}
29
- {{ link_tag }}
30
- {{ link.name }}
31
- </a>
27
+
28
+ {% if link.menu %}
29
+ <div class="dropdown d-inline">
30
+ <a class="btn btn-outline-primary btn-lg mt-2 dropdown-toggle" href="#" role="button" id="main-dropdown{{ forloop.index0 }}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
31
+ {{ link.name }}
32
+ </a>
33
+ <div class="dropdown-menu" aria-labelledby="main-dropdown{{ forloop.index0 }}">
34
+ {% assign parent_link = link %}
35
+ {% for link in parent_link.menu %}
36
+ {% assign link_styleclass = "dropdown-item" %}
37
+ {% include partials/get_link.html %}
38
+ {{ link_tag }}
39
+ {{ link.name }}
40
+ </a>
41
+ {% endfor %}
42
+ </div>
43
+ </div>
44
+
45
+ {% elsif link.live %}
46
+ {% include partials/get_conf_time.html %}
47
+ {% assign time_start = conf_start %}
48
+ {% assign time_end = conf_end %}
49
+ {% include partials/get_timestamp.html %}
50
+
51
+ {% assign offset_start = site.conference.live.streaming.start_early | default: 0 %}
52
+ {% assign offset_end = site.conference.live.streaming.end_late | default: 0 %}
53
+ {% assign timestamp_start = offset_start | times: -60 | plus: timestamp_start %}
54
+ {% assign timestamp_end = offset_end | times: 60 | plus: timestamp_end %}
55
+
56
+ {% if link.name %}
57
+ {% assign link_name = link.name %}
58
+ {% else %}
59
+ {% assign link_name = site.data.lang[site.conference.lang].live.streaming | default: "Live Stream" %}
60
+ {% endif %}
61
+
62
+ <span class="live-show d-none" data-start="{{ timestamp_start }}" data-end="{{ timestamp_end }}">
63
+ {% if site.conference.live.streaming %}
64
+ <a class="btn btn-outline-primary btn-lg mt-2" title="{{ link_name }}" data-toggle="modal" data-target="#stream-modal" data-room="" href="#">
65
+ {% else %}
66
+ {% assign link_styleclass = "btn btn-outline-primary btn-lg mt-2" %}
67
+ {% include partials/get_link.html %}
68
+ {{ link_tag }}
69
+ {% endif %}
70
+
71
+ {{ link_name }}
72
+ </a>
73
+ </span>
74
+
75
+ {% else %}
76
+ {% assign link_styleclass = "btn btn-outline-primary btn-lg mt-2" %}
77
+ {% include partials/get_link.html %}
78
+ {{ link_tag }}
79
+ {{ link.name }}
80
+ </a>
81
+ {% endif %}
32
82
  {% endfor %}
33
83
  </p>
34
84
  {% endif %}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-conference
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1
4
+ version: 2.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lorenz Schmid