jekyll-theme-conference 2.1.1 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
 
@@ -31,24 +31,15 @@
31
31
  <p class="mb-0">
32
32
  {% include partials/list_sub_categories.html %}
33
33
 
34
- {% assign has_icon_links = false %}
35
- {% for link in talk.links %}
36
- {% if link.icon %}
37
- {% assign has_icon_links = true %}
38
- {% endif %}
39
- {% endfor %}
40
-
41
- {% if has_icon_links %}
42
- <span class="{% if has_sub_categories %}ml-1{% endif %}">
34
+ {% include partials/get_link_types.html %}
35
+ {% if has_icon_links and site.conference.talks.hide_icons != true %}
36
+ <span class="ml-1">
43
37
  {% for link in talk.links %}
44
- {% if link.icon %}
45
- {% include partials/get_link_href.html %}
46
- {%- if link.iframe -%}
47
- <a class="text-secondary ml-1 cursor-pointer" data-toggle="modal" data-target="#link-modal" data-title="{{ link.name }}" data-href="{{ link_href }}" title="{{ link.name }}">
48
- {%- else -%}
49
- <a class="text-secondary ml-1" href="{{ link_href }}" title="{{ link.name }}">
50
- {%- endif -%}
51
- <i class="fas fa-{{ link.icon }} pr-1"></i></a>
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>
52
43
  {% endif %}
53
44
  {% endfor %}
54
45
  </span>
@@ -67,9 +58,9 @@
67
58
  {% endfor %}
68
59
  {% endfor %}
69
60
 
70
- {{ 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 %}
71
62
 
72
- {{ 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 %}
73
64
  </p>
74
65
  {% endif %}
75
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,28 +56,18 @@
56
56
 
57
57
  {{ content }}
58
58
 
59
- {% assign has_icon_links = false %}
60
- {% assign has_regular_links = false %}
61
- {% for link in talk.links %}
62
- {% if link.icon %}
63
- {% assign has_icon_links = true %}
64
- {% else %}
65
- {% assign has_regular_links = true %}
66
- {% endif %}
67
- {% endfor %}
59
+ {% include partials/get_link_types.html %}
68
60
 
69
61
  {% if has_icon_links %}
70
62
  <ul class="list-unstyled">
71
63
  {% for link in talk.links %}
72
- {% if link.icon %}
64
+ {% assign link_styleclass = "text-reset" %}
65
+ {% include partials/get_link.html %}
66
+
67
+ {% if link_icon %}
73
68
  <li class="mb-1 ml-2">
74
- {% include partials/get_link_href.html %}
75
- {% if link.iframe %}
76
- <a class="cursor-pointer" data-toggle="modal" data-target="#link-modal" data-title="{{ link.name }}" data-href="{{ link_href }}">
77
- {% else %}
78
- <a href="{{ link_href }}">
79
- {% endif %}
80
- <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>
81
71
  {{ link.name }}
82
72
  </a>
83
73
  </li>
@@ -87,18 +77,16 @@
87
77
  {% endif %}
88
78
 
89
79
  {% if has_regular_links %}
90
- <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>
91
81
 
92
82
  <ul class="list-unstyled">
93
83
  {% for link in talk.links %}
94
- {% unless link.icon %}
95
- <li class="mb-1 ml-2 pl-2 border-soft-primary">
96
- {% include partials/get_link_href.html %}
97
- {% if link.iframe %}
98
- <a class="cursor-pointer text-reset" data-toggle="modal" data-target="#link-modal" data-title="{{ link.name }}" data-href="{{ link_href }}">
99
- {% else %}
100
- <a class="text-reset" href="{{ link_href }}">
101
- {% 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 }}
102
90
  {{ link.name }}
103
91
  </a>
104
92
  </li>
@@ -110,12 +98,12 @@
110
98
  <p class="d-print-none mt-5">
111
99
  <a href="{{ page.collection | prepend: '/' | prepend: site.baseurl }}" class="btn btn-light">
112
100
  <i class="fas fa-bullhorn"></i>
113
- {{ site.data.lang[site.conference.lang].overview }}
101
+ {{ site.data.lang[site.conference.lang].overview | default: "Overview" }}
114
102
  </a>
115
103
 
116
104
  <a href="{{ site.conference.program.url | prepend: site.baseurl }}" class="btn btn-light">
117
105
  <i class="far fa-calendar-alt"></i>
118
- {{ site.data.lang[site.conference.lang].program.title }}
106
+ {{ site.data.lang[site.conference.lang].program.title | default: "Program" }}
119
107
  </a>
120
108
  </p>
121
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.1
4
+ version: 2.4.1
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-11-01 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 %}