jekyll-theme-pirati 8.4.3 → 8.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b12d8ee7f2fd340ccade0158b22c259aebb355133f72291710c7609b8efd27dc
4
- data.tar.gz: dda9cca91b9d13ea9033519184dfa317e5d21490acfeb4ef347ec4f15431fc75
3
+ metadata.gz: 6b453be12ec6f2bbc1a039c10169b3cffb462ba482a33ad229eb17af2a6a7153
4
+ data.tar.gz: 7f975c085b9da925824ca86a9bb9ae283ca284a94dd888b47229b7ab04fb756c
5
5
  SHA512:
6
- metadata.gz: 645fb45c8769b41ce60652222f4a0dfa66f826128c3b9b056d46190c57b67c794cfae23de0403ed5d4f4b61b19aeb5c0092f00950c27c47feb84afb258f395a8
7
- data.tar.gz: 1a6b7ac9e9653ff1cef98336e87c90b399ed030ddc53115ca3454fa43b28824361f1e2d18a6a9af672586883ff97b6a4c12e91e4f9fd719a5b78f62f3c6ce428
6
+ metadata.gz: 79eaff883e775d3679e2fa98738748b3d83e4747e535c7ad7678c0cd1a61ac91b2a8681e5cacd857fce666fbad9f47c257c55f8785caf7524f0e69c44ca03278
7
+ data.tar.gz: ce0e256dd88fcae5348f515e5376cc984349c8cc2cc9e3de1e0fdbc17f9e54c9f2609850340293f7db32c98c38bd27d930f063f2eddf7502b201eb60dd2396ed
@@ -28,8 +28,16 @@
28
28
  <div class="mb-4">
29
29
  {% include social-icon-group.html class="space-x-2 text-white pb-4" %}
30
30
  {% if site.organization.email %}
31
+ <div class="mb-2">
31
32
  {% capture href %}mailto:{{ site.organization.email }}{% endcapture %}
32
33
  {% include contact-line.html href=href icon="ico--envelope" caption="Dejte nám vědět" %}
34
+ </div>
35
+ {% endif %}
36
+ {% if site.github %}
37
+ <div class="mb-2">
38
+ {% capture href %}{{ site.github.url }}edit/{{ site.github.branch }}/{{ page.path }}{% endcapture %}
39
+ {% include contact-line.html href=href icon="ico--pencil" caption="Navrhni úpravu" %}
40
+ </div>
33
41
  {% endif %}
34
42
  </div>
35
43
  <div class="flex flex-col md:flex-row lg:flex-col lg:items-end space-y-2 md:space-y-0 md:space-x-2 lg:space-x-0 lg:space-y-2">
@@ -80,8 +88,14 @@
80
88
  <div class="grid gap-4 grid-cols-1 md:grid-cols-2 xl:grid-cols-3">
81
89
  {% if site.data.menu.contact %}
82
90
  {% for contact in site.data.menu.contact %}
83
- {% assign person = site.people | where_exp:"item","item.uid contains contact.id" | first %}
84
- {% include people/profile-badge.html item=person description=contact.position %}
91
+ {% if contact.id %}
92
+ {% assign person = site.people | where_exp:"item","item.uid contains contact.id" | first %}
93
+ {% assign description = contact.position %}
94
+ {% else %}
95
+ {% assign person = site.people | where_exp:"item","item.uid contains contact" | first %}
96
+ {% assign description = person.teamDescription['contact'] %}
97
+ {% endif %}
98
+ {% include people/profile-badge.html item=person description=description %}
85
99
  {% endfor %}
86
100
  {% else %}
87
101
  {% assign contactPerson = site.people | where_exp: "item","item.uid contains site.organization.contactUid" | first %}
@@ -95,11 +109,30 @@
95
109
  </div>
96
110
  </div>
97
111
  </section>
98
- <section class="bg-black py-4 lg:py-12">
99
- <div class="medium-12 large-7 text-white" ><center><hr></hr>
100
- <a href="https://www.pirati.cz/o-nas/ochrana-osobnich-udaju/">Zásady zpracování osobních údajů a informace o využití cookies</a></center>
101
- </div>
102
- </section>
103
112
  </div>
104
113
  </ui-app>
105
- </footer>
114
+ </footer>
115
+
116
+
117
+
118
+ <!-- Styles -->
119
+ <link rel="stylesheet" href="https://www.piratiastarostove.cz/static/elections2021/css/styleguide.min.css">
120
+ <link rel="stylesheet" href="https://www.piratiastarostove.cz/static/elections2021/css/styles.css">
121
+ <style type="text/css">
122
+ sup {
123
+ white-space: nowrap;
124
+ }
125
+ </style>
126
+
127
+
128
+
129
+ <div class=" bg-white ">
130
+
131
+ <div class="row">
132
+ <section class="bg-black py-4 lg:py-12">
133
+ <div class="medium-12 large-7 text-white" ><center>
134
+ <a href="https://www.pirati.cz/o-nas/ochrana-osobnich-udaju/">Zásady zpracování osobních údajů a informace o využití cookies</a></center>
135
+ </div>
136
+ </section>
137
+ </div>
138
+ </div>
@@ -67,7 +67,7 @@
67
67
  </ui-app>
68
68
  </nav>
69
69
 
70
- <div class="__js-root">
70
+ <div class="__js-root" @click="replaceHTMLEnts();">
71
71
  <ui-app inline-template>
72
72
  {% if site.env.GOOGLE_CALENDAR_APIKEY and site.calendar.id %}
73
73
  <ui-calendar-google-provider v-slot="{ events, onShowMore, hasMore }" :calendar-id="'{{ site.calendar.id }}'" :api-key="'{{ site.env.GOOGLE_CALENDAR_APIKEY }}'">
@@ -78,7 +78,7 @@
78
78
  <nav class="subnav">
79
79
  <div class="container container--wide">
80
80
  <div class="flex">
81
- <button @click="toggleView('regions')" class="btn btn--condensed btn--grey-500 btn--hoveractive btn--to-white text-sm mr-2" :class="{'btn--activated': isCurrentView('regions')}">
81
+ <button @click="toggleView('regions');" class="btn btn--condensed btn--grey-500 btn--hoveractive btn--to-white text-sm mr-2" :class="{'btn--activated': isCurrentView('regions')}">
82
82
  <div class="btn__body">
83
83
  <span>{{ site.organization.name }}</span>
84
84
  <i class="ico--chevron-down ml-4"></i>
@@ -93,7 +93,7 @@
93
93
  </button>
94
94
 
95
95
  {% if calendarProvided %}
96
- <a href="#" class="btn text-sm max-w-full hidden lg:block" @click="toggleView('calendar')" v-if="events.length > 0" v-cloak>
96
+ <a href="#" class="btn text-sm max-w-full hidden lg:block" @click="toggleView('calendar');" v-if="events.length > 0" v-cloak>
97
97
  <div class="btn__body bg-grey-800 text-grey-200 flex divide-x">
98
98
  <span class="pr-4">&#123;{events[0].title}&#125;</span>
99
99
  <span class="pl-4">&#123;{events[0].allDay ? 'Celý den' : events[0].startDateVerbose + ', ' + events[0].startTimeVerbose}&#125;</span>
@@ -119,7 +119,7 @@
119
119
  <ui-region-map class="container container--default" />
120
120
  </div>
121
121
  <div class="subnav-aside__item" :class="{'subnav-aside__item--visible': isCurrentView('calendar')}">
122
- <a @click="toggleView('calendar')" class="subnav-aside__close"><i class="ico--close"></i></a>
122
+ <a @click="toggleView('calendar');replaceHTMLEnts();" class="subnav-aside__close"><i class="ico--close"></i></a>
123
123
  <div class="container container--default">
124
124
  {% if calendarProvided %}
125
125
  <ui-calendar-renderer :events="events" :on-show-more="onShowMore" :has-more="hasMore" :name="'{{ site.calendar.title }}'"></ui-calendar-renderer>
@@ -152,8 +152,9 @@ function replaceHTMLEnts() {
152
152
  }
153
153
  x = document.querySelectorAll("a");
154
154
  for (i = 0; i < x.length; i++) {
155
- x[i].innerHTML=htmlDecode(x[i].innerHTML);
156
-
155
+ if (x[i].hasOwnProperty("font-bold") && x[i].hasOwnProperty("block")) {
156
+ x[i].innerHTML=htmlDecode(x[i].innerHTML);
157
+ }
157
158
  }
158
159
  }
159
160
 
@@ -162,6 +163,5 @@ function htmlDecode(input){
162
163
  e.innerHTML = input;
163
164
  return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue;
164
165
  }
165
-
166
- replaceHTMLEnts();
166
+
167
167
  </script>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-pirati
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.4.3
4
+ version: 8.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jitka Novotná
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-09-30 00:00:00.000000000 Z
12
+ date: 2021-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll