jekyll-theme-conference 2.1.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,30 +16,23 @@
16
16
  {{ link.name }}
17
17
  </a>
18
18
  <div class="dropdown-menu" aria-labelledby="navbar-dropdown{{ forloop.index0 }}">
19
- {% for sublink in link.menu %}
20
- {% if sublink.disabled %}
21
- <a class="dropdown-item disabled" href="#">
22
- {{ sublink.name }}
23
- </a>
24
- {% else %}
25
- <a class="dropdown-item" href="{% if sublink.absolute_url %}{{ sublink.absolute_url }}{% else %}{{ sublink.relative_url | prepend: site.baseurl }}{% endif %}">
26
- {{ sublink.name }}
27
- </a>
28
- {% endif %}
19
+ {% assign parent_link = link %}
20
+ {% for link in parent_link.menu %}
21
+ {% assign link_styleclass = "dropdown-item" %}
22
+ {% include partials/get_link.html %}
23
+ {{ link_tag }}
24
+ {{ link.name }}
25
+ </a>
29
26
  {% endfor %}
30
27
  </div>
31
28
  </li>
32
29
  {% else %}
33
30
  <li class="nav-item {% if page.url contains link.relative_url %}active{% endif %}">
34
- {% if link.disabled %}
35
- <a class="nav-link disabled" href="#">
36
- {{ link.name }}
37
- </a>
38
- {% else %}
39
- <a class="nav-link" href="{% if link.absolute_url %}{{ link.absolute_url }}{% else %}{{ link.relative_url | prepend: site.baseurl }}{% endif %}">
40
- {{ link.name }}
41
- </a>
42
- {% endif %}
31
+ {% assign link_styleclass = "nav-link" %}
32
+ {% include partials/get_link.html %}
33
+ {{ link_tag }}
34
+ {{ link.name }}
35
+ </a>
43
36
  </li>
44
37
  {% endif %}
45
38
  {% endfor %}
@@ -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 %}
@@ -24,15 +24,11 @@
24
24
  {% if site.conference.main.links %}
25
25
  <p class="lead d-print-none">
26
26
  {% for link in site.conference.main.links %}
27
- {% if link.disabled %}
28
- <a class="btn btn-outline-primary btn-lg mt-2 disabled" href="#">
29
- {{ link.name }}
30
- </a>
31
- {% else %}
32
- <a class="btn btn-outline-primary btn-lg mt-2" href="{% if link.absolute_url %}{{ link.absolute_url }}{% else %}{{ link.relative_url | prepend: site.baseurl }}{% endif %}" role="button">
33
- {{ link.name }}
34
- </a>
35
- {% endif %}
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>
36
32
  {% endfor %}
37
33
  </p>
38
34
  {% endif %}
@@ -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
 
@@ -50,14 +50,14 @@
50
50
  {% if page.title %}
51
51
  {{ page.title }}
52
52
  {% else %}
53
- {{ site.data.lang[site.conference.lang].program.title }}
53
+ {{ site.data.lang[site.conference.lang].program.title | default: "Program" }}
54
54
  {% endif %}
55
55
  </h1>
56
56
 
57
57
  {{ content }}
58
58
 
59
59
  <div class="sticky-top syncscroll overflow-hidden" name="sync-table">
60
- <table class="table">
60
+ <table class="table mb-0">
61
61
  <thead>
62
62
  <tr>
63
63
  <th scope="col" class="text-center">#</th>
@@ -190,7 +190,7 @@
190
190
  </div>
191
191
 
192
192
  {% if site.conference.talks.main_categories %}
193
- <h5 class="mt-4">{{ site.data.lang[site.conference.lang].talks.legend }}</h5>
193
+ <h5 class="mt-4">{{ site.data.lang[site.conference.lang].program.legend | default: "Caption" }}</h5>
194
194
  {% for main_cat in site.conference.talks.main_categories %}
195
195
  <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
196
  {{ main_cat.name }}
@@ -7,7 +7,7 @@
7
7
 
8
8
  <!-- title shown in browser: -->
9
9
  <h1 class="display-5 mb-3 d-print-none">
10
- {{ site.data.lang[site.conference.lang].location.title }}
10
+ {{ site.data.lang[site.conference.lang].location.title | default: "Location" }}
11
11
  </h1>
12
12
 
13
13
  {% assign this_room = page %}
@@ -16,7 +16,7 @@
16
16
  {{ content }}
17
17
 
18
18
  <h5 class="mt-4 mb-2">
19
- {{ site.data.lang[site.conference.lang].location.talks }}:
19
+ {{ site.data.lang[site.conference.lang].location.talks | default: "Talks in this room" }}:
20
20
  </h5>
21
21
  <ul class="list-program list-unstyled">
22
22
  {% for r in site.data.program %}
@@ -51,7 +51,7 @@
51
51
  {% endfor %}
52
52
  {% unless room_talks %}
53
53
  <li>
54
- <em>{{ site.data.lang[site.conference.lang].location.no_talks }}</em>
54
+ <em>{{ site.data.lang[site.conference.lang].location.no_talks | default: "no talks planned" }}</em>
55
55
  </li>
56
56
  {% endunless %}
57
57
 
@@ -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
 
@@ -3,7 +3,7 @@
3
3
  {% assign speaker = page %}
4
4
 
5
5
  <p class="h6">
6
- {{ site.data.lang[site.conference.lang].speaker.title }}
6
+ {{ site.data.lang[site.conference.lang].speaker.title | default: "Speaker" }}
7
7
  </p>
8
8
 
9
9
  <h1 class="font-weight-light mb-3">
@@ -12,16 +12,41 @@
12
12
 
13
13
  {{ content }}
14
14
 
15
- {% if speaker.links %}
16
- <h5 class="mt-4 mb-1">{{ site.data.lang[site.conference.lang].more_information }}:</h5>
15
+ {% include partials/get_link_types.html %}
16
+
17
+ {% if has_icon_links %}
17
18
  <ul class="list-unstyled">
18
19
  {% for link in speaker.links %}
19
- <li class="mb-1 ml-2 pl-2 border-soft-primary">
20
- {% include partials/get_link_href.html %}
21
- <a class="text-reset" href="{{ link_href }}">
22
- {{ link.name }}
23
- </a>
24
- </li>
20
+ {% assign link_styleclass = "" %}
21
+ {% include partials/get_link.html %}
22
+
23
+ {% if link_icon %}
24
+ <li class="mb-1 ml-2">
25
+ {{ link_tag }}
26
+ <i class="fas fa-{{ link_icon }} pr-1"></i>
27
+ {{ link.name }}
28
+ </a>
29
+ </li>
30
+ {% endif %}
31
+ {% endfor %}
32
+ </ul>
33
+ {% endif %}
34
+
35
+ {% if has_regular_links %}
36
+ <h5 class="mt-4 mb-1">{{ site.data.lang[site.conference.lang].more_information | default: "More Information" }}:</h5>
37
+
38
+ <ul class="list-unstyled">
39
+ {% for link in speaker.links %}
40
+ {% assign link_styleclass = "text-reset" %}
41
+ {% include partials/get_link.html %}
42
+
43
+ {% unless link_icon %}
44
+ <li class="mb-1 ml-2 pl-2 border-soft-primary">
45
+ {{ link_tag }}
46
+ {{ link.name }}
47
+ </a>
48
+ </li>
49
+ {% endunless %}
25
50
  {% endfor %}
26
51
  </ul>
27
52
  {% endif %}
@@ -37,7 +62,7 @@
37
62
  {% endfor %}
38
63
 
39
64
  {% if active_speaker %}
40
- <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>
41
66
 
42
67
  <ul class="list-program list-unstyled">
43
68
  {% for r in site.data.program %}
@@ -73,7 +98,7 @@
73
98
  <p class="d-print-none mt-5">
74
99
  <a href="{{ page.collection | prepend: '/' | prepend: site.baseurl }}" class="btn btn-light">
75
100
  <i class="fas fa-users"></i>
76
- {{ site.data.lang[site.conference.lang].overview }}
101
+ {{ site.data.lang[site.conference.lang].overview | default: "Overview" }}
77
102
  </a>
78
103
  </p>
79
104
 
@@ -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
 
@@ -30,6 +30,20 @@
30
30
  </p>
31
31
  <p class="mb-0">
32
32
  {% include partials/list_sub_categories.html %}
33
+
34
+ {% include partials/get_link_types.html %}
35
+ {% if has_icon_links and site.conference.talks.hide_icons != true %}
36
+ <span class="ml-1">
37
+ {% for link in talk.links %}
38
+ {% assign link_styleclass = "text-secondary" %}
39
+ {% include partials/get_link.html %}
40
+ {% if link_icon %}
41
+ {{ link_tag -}}
42
+ <i class="fas fa-{{ link_icon }} pr-1"></i></a>
43
+ {% endif %}
44
+ {% endfor %}
45
+ </span>
46
+ {% endif %}
33
47
  </p>
34
48
 
35
49
  {% if talk.hide %}
@@ -44,9 +58,9 @@
44
58
  {% endfor %}
45
59
  {% endfor %}
46
60
 
47
- {{ site.data.lang[site.conference.lang].pronoun.at }} {% include partials/show_talk_time.html %}
61
+ {{ site.data.lang[site.conference.lang].pronoun.at | default: "at" }} {% include partials/show_talk_time.html %}
48
62
 
49
- {{ site.data.lang[site.conference.lang].pronoun.in }} {% include partials/show_room.html %}
63
+ {{ site.data.lang[site.conference.lang].pronoun.in | default: "in" }} {% include partials/show_room.html %}
50
64
  </p>
51
65
  {% endif %}
52
66
 
@@ -34,18 +34,18 @@
34
34
 
35
35
  {% include partials/get_talk_time.html %}
36
36
  <span class="d-none d-sm-inline">
37
- {{ site.data.lang[site.conference.lang].pronoun.at }}
37
+ {{ site.data.lang[site.conference.lang].pronoun.at | default: "at" }}
38
38
  </span>
39
39
  {% include partials/show_talk_time.html %}
40
40
 
41
41
  {% assign room = site.rooms | where: 'name', r.room | first %}
42
42
  <span class="d-none d-sm-inline ml-1">
43
- {{ site.data.lang[site.conference.lang].pronoun.in }}
43
+ {{ site.data.lang[site.conference.lang].pronoun.in | default: "in" }}
44
44
  </span>
45
45
  {% include partials/show_room.html %}
46
46
 
47
47
  <span class="d-none d-sm-inline ml-1">
48
- {{ site.data.lang[site.conference.lang].pronoun.for }}
48
+ {{ site.data.lang[site.conference.lang].pronoun.for | default: "for" }}
49
49
  </span>
50
50
  {% include partials/show_talk_duration.html %}
51
51
 
@@ -56,29 +56,18 @@
56
56
 
57
57
  {{ content }}
58
58
 
59
- {% assign has_icon_links = false %}
60
- {% assign has_regular_links = false %}
61
- {% assign has_iframe_links = false %}
62
- {% for link in talk.links %}
63
- {% if link.icon %}
64
- {% assign has_icon_links = true %}
65
- {% else %}
66
- {% assign has_regular_links = true %}
67
- {% endif %}
68
- {% endfor %}
59
+ {% include partials/get_link_types.html %}
69
60
 
70
61
  {% if has_icon_links %}
71
62
  <ul class="list-unstyled">
72
63
  {% for link in talk.links %}
73
- {% if link.icon %}
64
+ {% assign link_styleclass = "text-reset" %}
65
+ {% include partials/get_link.html %}
66
+
67
+ {% if link_icon %}
74
68
  <li class="mb-1 ml-2">
75
- {% include partials/get_link_href.html %}
76
- {% if link.iframe %}
77
- <a class="cursor-pointer" data-toggle="modal" data-target="#link-modal" data-title="{{ link.name }}" data-href="{{ link_href }}">
78
- {% else %}
79
- <a href="{{ link_href }}">
80
- {% endif %}
81
- <i class="fas fa-{{ link.icon }} pr-1"></i>
69
+ {{ link_tag }}
70
+ <i class="fas fa-{{ link_icon }} pr-1 text-{{ main_cat_color }}"></i>
82
71
  {{ link.name }}
83
72
  </a>
84
73
  </li>
@@ -88,18 +77,16 @@
88
77
  {% endif %}
89
78
 
90
79
  {% if has_regular_links %}
91
- <h5 class="mt-4 mb-1">{{ site.data.lang[site.conference.lang].more_information }}:</h5>
80
+ <h5 class="mt-4 mb-1">{{ site.data.lang[site.conference.lang].more_information | default: "More information" }}:</h5>
92
81
 
93
82
  <ul class="list-unstyled">
94
83
  {% for link in talk.links %}
95
- {% unless link.icon %}
96
- <li class="mb-1 ml-2 pl-2 border-soft-primary">
97
- {% include partials/get_link_href.html %}
98
- {% if link.iframe %}
99
- <a class="cursor-pointer text-reset" data-toggle="modal" data-target="#link-modal" data-title="{{ link.name }}" data-href="{{ link_href }}">
100
- {% else %}
101
- <a class="text-reset" href="{{ link_href }}">
102
- {% endif %}
84
+ {% assign link_styleclass = "text-reset" %}
85
+ {% include partials/get_link.html %}
86
+
87
+ {% unless link_icon %}
88
+ <li class="mb-1 ml-2 pl-2 border-soft-{{ main_cat_color }}">
89
+ {{ link_tag }}
103
90
  {{ link.name }}
104
91
  </a>
105
92
  </li>
@@ -108,34 +95,15 @@
108
95
  </ul>
109
96
  {% endif %}
110
97
 
111
- <div class="modal fade" id="link-modal" tabindex="-1" role="dialog" aria-labelledby="link-modal-label" aria-hidden="true">
112
- <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
113
- <div class="modal-content">
114
- <div class="modal-header">
115
- <h5 class="modal-title" id="link-modal-label"></h5>
116
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
117
- <span aria-hidden="true">&times;</span>
118
- </button>
119
- </div>
120
- <div class="modal-body">
121
- <iframe src="" frameborder="0" allowfullscreen></iframe>
122
- </div>
123
- <div class="modal-footer">
124
- <p class="modal-description"></p>
125
- </div>
126
- </div>
127
- </div>
128
- </div>
129
-
130
98
  <p class="d-print-none mt-5">
131
99
  <a href="{{ page.collection | prepend: '/' | prepend: site.baseurl }}" class="btn btn-light">
132
100
  <i class="fas fa-bullhorn"></i>
133
- {{ site.data.lang[site.conference.lang].overview }}
101
+ {{ site.data.lang[site.conference.lang].overview | default: "Overview" }}
134
102
  </a>
135
103
 
136
104
  <a href="{{ site.conference.program.url | prepend: site.baseurl }}" class="btn btn-light">
137
105
  <i class="far fa-calendar-alt"></i>
138
- {{ site.data.lang[site.conference.lang].program.title }}
106
+ {{ site.data.lang[site.conference.lang].program.title | default: "Program" }}
139
107
  </a>
140
108
  </p>
141
109
 
@@ -4,19 +4,7 @@
4
4
  {% include js/conference.js %}
5
5
 
6
6
  (function() {
7
- var map_provider = "{{ site.conference.location.map.map_provider | default: 'OpenStreetMap.Mapnik' }}";
8
- var home_coord = [{{ site.conference.location.map.home_coord }}];
9
- var default_zoom = {{ site.conference.location.map.default_zoom | default: 17 }};
7
+ if (typeof map !== 'undefined') {
10
8
 
11
- if (document.getElementById('map')) {
12
- var map = L.map('map').setView(home_coord, default_zoom);
13
-
14
- L.tileLayer.provider(map_provider).addTo(map);
15
-
16
- L.easyButton('far fa-star', function(){
17
- map.setView(home_coord, default_zoom);
18
- }).addTo(map);
19
-
20
- L.control.locate().addTo(map);
21
9
  }
22
10
  })();
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: 2.1.0
4
+ version: 2.4.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: 2020-10-31 00:00:00.000000000 Z
11
+ date: 2020-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -62,6 +62,8 @@ files:
62
62
  - LICENSE.md
63
63
  - README.md
64
64
  - _includes/js/bootstrap.js
65
+ - _includes/js/conference-map.js
66
+ - _includes/js/conference-modal.js
65
67
  - _includes/js/conference.js
66
68
  - _includes/js/jquery-3.2.1.slim.min.js
67
69
  - _includes/js/leaflet-easybutton.js
@@ -72,7 +74,8 @@ files:
72
74
  - _includes/js/syncscroll.js
73
75
  - _includes/partials/checks.html
74
76
  - _includes/partials/footer.html
75
- - _includes/partials/get_link_href.html
77
+ - _includes/partials/get_link.html
78
+ - _includes/partials/get_link_types.html
76
79
  - _includes/partials/get_main_category.html
77
80
  - _includes/partials/get_talk_time.html
78
81
  - _includes/partials/header.html
@@ -1,5 +0,0 @@
1
- {% if link.file %}
2
- {% assign link_href = link.file | prepend: '/documents/' | prepend: site.baseurl %}
3
- {% else %}
4
- {% assign link_href = link.href %}
5
- {% endif %}