jekyll-theme-pirati 8.0.0.pre.alpha6 → 8.0.0.pre.beta1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cab2e7fbdf068f4cbde5b0af8427faa3bb11a5b8b4aaf1e44cad60c43c5a6f6
4
- data.tar.gz: 7185bd2519205901ae1a7ca37e8c178dafb7b70e3bec1eb714b85e84a4c64867
3
+ metadata.gz: 714576e8155ccaa93e655a6c43545131e733ad0c186752c059c6e321bbfa9595
4
+ data.tar.gz: 747cbea5a13c078b25b3517117c902fce9df8a2d09baf82d4b67d28f590a4b98
5
5
  SHA512:
6
- metadata.gz: b68ba785b54c18f3f7f6935d665fb3d1e16e32643270d9bfcc72835b64fd6e6bf6f32242e3df089f29650bcd98f8c673b1626f8e83aaf9c05159926ba7a3a869
7
- data.tar.gz: ee376b8d8f8a189c46105663e02eccfaa74c2924ec90df5a3522a952ab47a243cc6fc0bedca1c8311fba7a79444e83431a5909fdabce1026e2c403a64ab190e7
6
+ metadata.gz: c1be7d707b20755a952274e4c2e148bcd3a6e0c9e95f7fa62a6534e06a8f39735f4699c0b3fb8598bc2166965d7c83c14854de1edb65eed462d7afe35d1da6de
7
+ data.tar.gz: 1e0624fe50c2660256999386d679e24df22325b851375c40038aed35d922a1fcda5a9d2aea94310dd273f0d986278cbb1034d99fe83a8727d7a4ceaa92a9af4b
@@ -0,0 +1,7 @@
1
+ - uid: pirati
2
+ name: Pirátská strana
3
+ logoImg: brand/logo.svg
4
+ - uid: bezpp
5
+ name: bez politické příslušnosti
6
+ - uid: evropani
7
+ name: Evropani.cz
@@ -1,18 +1,15 @@
1
- <div class="medium-6 large-4 {{ thecycle }} columns {% if forloop.last %} end {% endif %}">
2
- <a href="{{ include.url }}">
3
- <article class="article-card">
4
- <img src="{{ include.image }}" alt="{{include.title}}">
5
- <div class="card-content">
6
- <img class="post-icon" src="{{"/assets/img/brand/logo.png" }}" alt="P">
7
- <h4 class="post-author">{{ include.title }}</h4>
8
- <p> {{ include.description }}
9
- </p>
10
- {% if include.button %}
11
- <div class="text-right">
12
- <span class="label alert">{{ include.button }}</span>
13
- </div>
14
- {% endif %}
15
- </div>
16
- </article>
17
- </a>
18
- </div>
1
+ <article class="card">
2
+ <a href="{{ include.url }}">
3
+ <img src="{{ include.image }}" alt="{{ include.title }}" class="w-full h-48 object-cover" />
4
+ </a>
5
+ <div class="card__body p-4">
6
+ <h2 class="card-headline">{{ include.title }}</h2>
7
+ <p class="card-body-text">
8
+ {{ include.description }}
9
+ </p>
10
+
11
+ {% if include.button %}
12
+ {% include buttons/basic.html href=include.url cta=include.button class="btn--blue-300 btn--fullwidth btn--hoveractive mt-4" %}
13
+ {% endif %}
14
+ </div>
15
+ </article>
@@ -0,0 +1,11 @@
1
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 {{ include.class }}">
2
+ {% for article-box in include.article-boxes %}
3
+ {% include article-box/article-box.html
4
+ url=article-box.url
5
+ image=article-box.image
6
+ title=article-box.title
7
+ description=article-box.description
8
+ button=article-box.button
9
+ %}
10
+ {% endfor %}
11
+ </div>
@@ -29,15 +29,8 @@
29
29
  <div class="candidate-card__affiliation">
30
30
  {% if include.candidate.age %}<div>{{ include.candidate.age }} let</div>{% endif %}
31
31
 
32
- {% if include.candidate.party %}
33
- <div>
34
- {% if include.candidate.partyImg %}
35
- {% comment %}We expect an SVG format here to make things scalable{% endcomment %}
36
- {% capture partyImg %}{{ include.candidate.partyImg | prepend: "/assets/img/" | absolute_url }}{% endcapture %}
37
- {% include avatar.html class="w-6 mr-2" alt=include.candidate.party src=partyImg %}
38
- {% endif %}
39
- <span class="font-bold font-condensed">{{ include.candidate.party }}</span>
40
- </div>
32
+ {% if include.candidate.partyUid %}
33
+ {% include party.html uid=include.candidate.partyUid %}
41
34
  {% endif %}
42
35
  </div>
43
36
  <div class="card__body candidate-card__social">
@@ -1,4 +1,4 @@
1
- <{% if include.href %}a href="{{ include.href }}"{% else %}span{% endif %} class="contact-line icon-link {{ include.class }}" {% if include.target == "_blank" %}target="_blank" rel="noopener noreferrer"{% endif %}>
1
+ <{% if include.href %}a href="{{ include.href }}"{% else %}span{% endif %} class="contact-line icon-link content-block--nostyle {{ include.class }}" {% if include.target == "_blank" %}target="_blank" rel="noopener noreferrer"{% endif %}>
2
2
  <i class="{{ include.icon }}"></i>
3
3
  <span>{{ include.caption }}</span>
4
4
  </{% if include.href %}a{% else %}span{% endif %}>
@@ -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">
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>
@@ -3,7 +3,7 @@
3
3
  {% if include.bgImg %}style="--image-url: url({{ include.bgImg }})"{% endif %}
4
4
  >
5
5
  <div class="container container--default">
6
- <h1 class="head-alt-md md:head-alt-lg max-w-2xl">
6
+ <h1 class="head-alt-md md:head-alt-lg max-w-2xl {{ include.headlineClass }}">
7
7
  {{ include.headline }}
8
8
  </h1>
9
9
  <h2 class="head-xs mt-2 {{ include.descriptionClass }}">
@@ -3,7 +3,7 @@
3
3
  </header>
4
4
 
5
5
  {% if include.content %}
6
- <div class="{% if include.contentClass %}{{ include.contentClass }}{% endif %}" itemprop="description">
6
+ <div class="{{ include.contentClass | default: page.contentClass | default: layout.contentClass }}" itemprop="description">
7
7
  {{ include.content }}
8
8
  </div>
9
9
  {% endif %}
@@ -0,0 +1,15 @@
1
+ {% assign party = site.data.parties | where: "uid", include.uid | first %}
2
+
3
+ <div class="flex items-center">
4
+ {% if party.logoImg %}
5
+ {% comment %}We expect an SVG format here to make things scalable{% endcomment %}
6
+ {% if site.mediaStorage %}
7
+ {% capture partyImg %}https://a.pirati.cz/{{ site.mediaStorage }}/img/{{ party.logoImg }}{% endcapture %}
8
+ {%- else -%}
9
+ {% capture partyImg %}{{ party.logoImg | prepend: "/assets/img/" | absolute_url }}{% endcapture %}
10
+ {%- endif -%}
11
+ {% include avatar.html class="w-6 mr-2" alt=party.name src=partyImg %}
12
+ {% endif %}
13
+
14
+ <span class="font-bold font-condensed">{{ party.name }}</span>
15
+ </div>
@@ -35,7 +35,7 @@
35
35
 
36
36
  <div class="badge__body">
37
37
  <h2 class="{% if include.headlineClass %}{{ include.headlineClass }}{% else %}head-heavy-2xs{% endif %} badge__title">
38
- <a href="{{ url }}" title="{{ label }}">{{ label }}</a>
38
+ <a href="{{ url }}" title="{{ label }}" class="content-block--nostyle">{{ label }}</a>
39
39
  </h2>
40
40
 
41
41
  {% unless include.showDescription == false %}
@@ -1,11 +1,11 @@
1
- <div class="row small-up-2 medium-up-4 large-up-8">
1
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
2
2
  {% for item in include.program %}
3
- <div class="column column-block">
4
- <a href="{{item.url | relative_url }}">
5
- <img class="program-icon" src="{{ item.img | prepend: 'assets/img/' | relative_url}}" alt="{{item.title}}" />
6
- <center>
7
- <h2>{{item.title}}</h2>
8
- </center>
9
- </a>
10
- </div>
3
+ <div class="card elevation-3">
4
+ <div class="card__body">
5
+ <a href="{{item.url | relative_url }}">
6
+ <img class="program-icon" src="{{ item.img | prepend: 'assets/img/' | relative_url}}" alt="{{item.title}}" />
7
+ <h2>{{item.title}}</h2>
8
+ </a>
9
+ </div>
10
+ </div>
11
11
  {% endfor %}
@@ -1,32 +1,22 @@
1
1
 
2
2
  {% if page.board %}
3
- <aside class="o-section">
4
- <div class="o-section-inner o-section-inner--rightBlock">
5
- <div class="o-section-block">
6
- <div class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
7
- <div class="c-widget-accordion-content" data-tab-content="">
8
- {% if page.boardName %}
9
- <h3> {{ page.boardName }} </h3>
10
- {% else %}
11
- <h3>Předsednictvo</h3>
12
- {% endif %}
13
- <ul>
14
- {% for chair in page.board %}
15
- {% if chair.uid %}
16
- {% assign person = site.people | where_exp: "item","item.uid contains chair.uid" | first %}
17
- <li> {{chair.position}}: <strong> <a href="{{person.url}}" > {{ person.name }} </a> </strong> </li>
18
- {% else %}
19
- <li> {{chair.position}}: <strong> {{ chair.name }} </strong> </li>
20
- {% endif %}
21
- {% endfor %}
22
-
23
- </ul>
24
- {% if page.boardTurn %}
25
- konec mandátu: <a href="{{ page.boardTurn.electionUrl }}" style="text-decoration:underline"> {{ page.boardTurn.endDate }} </a></li>
26
- {% endif %}
27
- </div>
28
- </div>
29
- </div>
30
- </div>
31
- </aside>
3
+ <div class="content-block">
4
+ <h2>{{ page.boardName | default: "Předsednictvo" }}</h2>
5
+ <ul class="unordered-list unordered-list--linked">
6
+ {% for chair in page.board %}
7
+ {% if chair.uid %}
8
+ {% assign person = site.people | where_exp: "item","item.uid contains chair.uid" | first %}
9
+ <li>
10
+ <span>{{ chair.position }}: <a class="content-block--nostyle font-bold" href="{{ person.url }}">{{ person.name }}</a></span>
11
+ </li>
12
+ {% else %}
13
+ <li>
14
+ <span>{{ chair.position }}: <strong>{{ chair.name }}</strong></span>
15
+ </li>
16
+ {% endif %}
17
+ {% endfor %}
18
+ </ul>
19
+ {% if page.boardTurn %}
20
+ <p>Konec mandátu: <a href="{{ page.boardTurn.electionUrl }}" style="text-decoration:underline"> {{ page.boardTurn.endDate }} </a></p>
21
+ {% endif %}
32
22
  {% endif %}
@@ -1,21 +1,11 @@
1
- <div class="o-section-block show-for-medium">
2
- <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
3
- <li class="c-widget-accordion-item is-active" data-accordion-item="">
4
- <a href="#" class="c-widget-accordion-link c-widget-accordion-link--fb">
5
- <span class="c-widget-accordion__title">Facebook</span>
1
+ <h2 class="head-heavy-sm mb-2">Facebook</h2>
2
+ <div class="fb-page" data-href="{{ site.facebook.profilePage }}" data-tabs="timeline" data-width="500" data-height="550" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true">
3
+ <div class="fb-xfbml-parse-ignore">
4
+ <blockquote cite="{{ site.facebook.profilePage }}">
5
+ <a href="{{ site.facebook.profilePage }}">
6
+ Najdete nás na Facebooku:<br>
7
+ {% if site.facebook.profilePageName %}{{ site.facebook.profilePageName }}{% else %}{{ site.organization.name }}{% endif %}
6
8
  </a>
7
- <div class="c-widget-accordion-content" data-tab-content="">
8
- <div class="fb-page" data-href="{{ site.facebook.profilePage }}" data-tabs="timeline" data-width="500" data-height="550" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true">
9
- <div class="fb-xfbml-parse-ignore">
10
- <blockquote cite="{{ site.facebook.profilePage }}">
11
- <a href="{{ site.facebook.profilePage }}">
12
- Najdete nás na Facebooku:<br>
13
- {% if site.facebook.profilePageName %}{{ site.facebook.profilePageName }}{% else %}{{ site.organization.name }}{% endif %}
14
- </a>
15
- </blockquote>
16
- </div>
17
- </div>
18
- </div>
19
- </li>
20
- </ul>
9
+ </blockquote>
10
+ </div>
21
11
  </div>
@@ -1,5 +1,5 @@
1
1
  {% if page.garant %}
2
- {% assign garant = site.people | where:"uid",page.garant | first %}
3
- {% include people/profile-badge.html item=garant description="Garant" class="badge--condensed" %}
2
+ {% assign garant = site.people | where:"uid",page.garant | first %}
3
+ {% include people/profile-badge.html item=garant description="Garant" class="badge--condensed" %}
4
4
  {% endif %}
5
5
 
@@ -1,19 +1,12 @@
1
- <div class="o-section-block">
2
- <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
3
- <li class="c-widget-accordion-item is-active" data-accordion-item="">
4
- <a href="#" class="c-widget-accordion-link c-widget-accordion-link--nofill">
5
- <span class="c-widget-accordion__title">Koordinátoři dobrovolníků</span>
6
- </a>
7
- <div class="c-widget-accordion-content" data-tab-content="">
8
- {% assign kodos = site.people | where_exp: "item","item.categories contains 'kodo'" | sort:"ordkodo" %}
9
- {% for person in kodos %}
10
- {% include people/profile-badge.html item=person style='card' showContactInfo=false class='c-profile-badge--stacked c-profile-badge--bottomalign' headlineClass='t-h6-super' %}
11
- {% endfor %}
12
- <div class="c-widget-accordion-content__cta">
13
- {% assign peopleCol = site.collections | where: "label", "people" | first %}
14
- <a class="expanded button large u-0margin" href="{% if peopleCol.root %}{{ peopleCol.root }}{% else %}{{ '/kontakt/' | relative_url }}{% endif %}"> Ozvi se nám! </a>
15
- </div>
16
- </div>
17
- </li>
18
- </ul>
1
+ <h2 class="head-heavy-sm mb-2">Koordinátoři dobrovolníků</h2>
2
+ {% assign kodos = site.people | where_exp: "item","item.categories contains 'kodo'" | sort:"ordkodo" %}
3
+
4
+ <div class="space-y-4">
5
+ {% for person in kodos %}
6
+ {% include people/profile-badge.html item=person %}
7
+ {% endfor %}
19
8
  </div>
9
+
10
+ {% assign peopleCol = site.collections | where: "label", "people" | first %}
11
+ {% capture href %}{% if peopleCol.root %}{{ peopleCol.root }}{% else %}{{ '/kontakt/' | relative_url }}{% endif %}{% endcapture %}
12
+ {% include buttons/icon.html href=href cta="Ozvi se nám" icon="ico--chevron-right" class="btn--black btn--hoveractive btn--fullwidth mt-4" %}
@@ -10,28 +10,29 @@ Note: map is not inside accordion, as map tiles don't load at start due to accor
10
10
  {% endcomment %}
11
11
 
12
12
  {% if (page.mapycz_api) and (page.gps.lat) and (page.gps.long) %}
13
- {% assign gps_zoom = 16 %}
14
- {% if (page.gps.zoom) %}
15
- {% assign gps_zoom = page.gps.zoom %}
16
- {% endif %}
17
- <div class="o-section-block">
18
- <div id="mapa" style="height: 300px;"></div>
19
- <script type="text/javascript">
20
- var center = SMap.Coords.fromWGS84({{ page.gps.long }}, {{ page.gps.lat }});
21
- {% if page.mapycz_api == 'mini-api' %} // Mapy.cz Mini-API
22
- var mapa = new SMap(JAK.gel("mapa"), center, {{ gps_zoom }}, SMap.DEF_BASE);
23
- mapa.addMarker(center);
24
- {% else %} // default Mapy.cz API
25
- var mapa = new SMap(JAK.gel("mapa"), center, {{ gps_zoom }});
26
- mapa.addDefaultLayer(SMap.DEF_BASE).enable();
27
- var vrstva = new SMap.Layer.Marker(); /* Vrstva se značkami */
28
- var options = { }
29
- var znacka = new SMap.Marker(center, 'markerid', options);
30
- vrstva.addMarker(znacka);
31
- mapa.addLayer(vrstva);
32
- vrstva.enable();
33
- {% endif %}
34
- </script>
35
- <a class="dark expanded button large hide-for-print" href="https://mapy.cz/zakladni?x={{page.gps.long}}&y={{page.gps.lat}}&z=16&source=coor&id={{page.gps.long}}%2C{{page.gps.lat}}" target="_blank"> Zobrazit větší mapu </a>
36
- </div>
13
+ {% assign gps_zoom = 16 %}
14
+
15
+ {% if (page.gps.zoom) %}
16
+ {% assign gps_zoom = page.gps.zoom %}
17
+ {% endif %}
18
+ <div id="mapa" style="height: 300px;"></div>
19
+ <script type="text/javascript">
20
+ var center = SMap.Coords.fromWGS84({{ page.gps.long }}, {{ page.gps.lat }});
21
+ {% if page.mapycz_api == 'mini-api' %} // Mapy.cz Mini-API
22
+ var mapa = new SMap(JAK.gel("mapa"), center, {{ gps_zoom }}, SMap.DEF_BASE);
23
+ mapa.addMarker(center);
24
+ {% else %} // default Mapy.cz API
25
+ var mapa = new SMap(JAK.gel("mapa"), center, {{ gps_zoom }});
26
+ mapa.addDefaultLayer(SMap.DEF_BASE).enable();
27
+ var vrstva = new SMap.Layer.Marker(); /* Vrstva se značkami */
28
+ var options = { }
29
+ var znacka = new SMap.Marker(center, 'markerid', options);
30
+ vrstva.addMarker(znacka);
31
+ mapa.addLayer(vrstva);
32
+ vrstva.enable();
33
+ {% endif %}
34
+ </script>
35
+
36
+ {% capture href %}https://mapy.cz/zakladni?x={{page.gps.long}}&y={{page.gps.lat}}&z=16&source=coor&id={{page.gps.long}}%2C{{page.gps.lat}}{% endcapture %}
37
+ {% include buttons/image.html href=href target="_blank" icon="ico--map" class="btn btn--black btn--fulwidth btn--hoveractive mt-4" cta="Zobrazit větší mapu" %}
37
38
  {% endif %}
@@ -1,12 +1,2 @@
1
- <aside class="o-section">
2
- <div class="o-section-inner o-section-inner--rightBlock">
3
- <div class="o-section-block">
4
- <div class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
5
- <div class="c-widget-accordion-content" data-tab-content="">
6
- <h3>Kontakty</h3>
7
- {% include right-bar/rbar_profiles.html %}
8
- </div>
9
- </div>
10
- </div>
11
- </div>
12
- </aside>
1
+ <h2 class="head-heavy-sm mb-2">Kontakty</h2>
2
+ {% include right-bar/rbar_profiles.html %}
@@ -11,4 +11,4 @@
11
11
  </div>
12
12
 
13
13
  {% capture href %}{% if peopleCol.root %}{{ peopleCol.root }}{% else %}{{ '/lide/' | relative_url }}{% endif %}{% endcapture %}
14
- {% include buttons/icon.html icon="ico--chevron-right" class="btn--violet-400 btn--fullwidth lg:btn--autowidth pt-4" cta="Poznejte celý náš tým" href=href %}
14
+ {% include buttons/icon.html icon="ico--chevron-right" class="btn--violet-500 btn--fullwidth btn--hoveractive pt-4" cta="Poznejte celý náš tým" href=href %}
@@ -2,5 +2,5 @@
2
2
  {% assign posts = site.posts | where_exp: "item","item.authorId contains page.uid" | sort:"date" %}
3
3
 
4
4
  {% if posts %}
5
- {% include right-bar/rbar_articles.html posts=posts title="Seznam článků" %}
5
+ {% include right-bar/rbar_articles.html posts=posts title="Seznam článků" %}
6
6
  {% endif %}
@@ -12,11 +12,16 @@
12
12
 
13
13
  {% if page.profiles.wikipedia or page.profiles.facebook or page.profiles.twitter or page.profiles.github or page.profiles.forum or page.profiles.redmine or page.profiles.web or page.profiles.blog %}
14
14
  {% include right-bar/rbar_profiles.html %}
15
+ {% endif %}
16
+
17
+ {% if page.partyUid %}
15
18
  <hr />
19
+ {% include party.html uid=page.partyUid %}
16
20
  {% endif %}
17
21
 
18
22
  <div class="content-block">
19
23
  {% if page.mail or page.mob or page.profiles.report %}
24
+ <hr />
20
25
  <div class="space-y-4">
21
26
  {% if page.mob %}
22
27
  <div>
@@ -39,35 +44,34 @@
39
44
  </div>
40
45
  {% endif %}
41
46
  </div>
42
- <hr />
43
47
  {% endif %}
44
48
 
45
49
  {% if page.asistenti %}
50
+ <hr />
46
51
  <h2>Asistenti</h2>
47
52
  <div class="space-y-4 mt-4">
48
53
  {% for asistent in page.asistenti %}
49
54
  {% include people/profile-badge.html class="badge--condensed" item=asistent description=asistent.position %}
50
55
  {% endfor %}
51
56
  </div>
52
- <hr />
53
57
  {% endif %}
54
58
 
55
59
  {% if page.office %}
60
+ <hr />
56
61
  {% assign kancl = page.office | first %}
57
- <h2>{{ kancl.name }}</h2>
58
- <p>{{ kancl.address }}</p>
59
-
60
- {% if kancl.opening %}
61
- <h4>Otevírací doba</h4>
62
- <p>{{ kancl.opening}}</p>
63
- {% endif %}
62
+ <h2>Kancelář</h2>
64
63
  <iframe
65
64
  height="150"
66
65
  frameborder="0"
67
66
  style="border:0; width:100%"
68
- src="https://www.google.com/maps/embed/v1/place?key=AIzaSyCRuL_FU0HdeKCHVNfVJkv2nhNZPr05AJM&q={{ kancl.address | replace: ' ', '+' }}" allowfullscreen>
67
+ src="{% if kancl.mapIframeLink %}{{ kancl.mapIframeLink }}{% else %}https://www.google.com/maps/embed/v1/place?key=AIzaSyCRuL_FU0HdeKCHVNfVJkv2nhNZPr05AJM&q={{ kancl.address | replace: ' ', '+' }}{% endif %}" allowfullscreen>
69
68
  </iframe>
69
+ <h4>{{ kancl.name }}</h4>
70
+ <p>{{ kancl.address | | newline_to_br }}</p>
71
+
72
+ {% if kancl.opening %}
73
+ <h4>Otevírací doba</h4>
74
+ <p>{{ kancl.opening}}</p>
75
+ {% endif %}
70
76
  {% endif %}
71
- <!-- Mobile divider -->
72
- <hr class="block lg:hidden" />
73
77
  </div>
@@ -13,7 +13,7 @@
13
13
 
14
14
  <ul class="unordered-list unordered-list--linked">
15
15
  {% for programSection in programSections %}
16
- <li><a {% if page.uid == programSection.uid %}class="font-bold"{% endif %} href="{{ programSection.url | relative_url }}">{{ programSection.title }}</a></li>
16
+ <li><a class="{% if page.uid == programSection.uid %}font-bold {% endif %}content-block--nostyle" href="{{ programSection.url | relative_url }}">{{ programSection.title }}</a></li>
17
17
  {% endfor %}
18
18
  </ul>
19
19
  {% unless forloop.last %}
@@ -5,16 +5,8 @@ textbox:
5
5
  text: # required
6
6
  {% endcomment %}
7
7
  {% if page.textbox.text %}
8
- <div class="o-section-block">
9
- <ul class="c-widget-accordion c-widget-accordion--dark" data-accordion="" data-allow-all-closed="true">
10
- <li class="c-widget-accordion-item is-active" data-accordion-item="">
11
- <a href="#" class="c-widget-accordion-link">
12
- <span class="c-widget-accordion__title">{% if page.textbox.title %} {{ page.textbox.title }}{% endif %}</span>
13
- </a>
14
- <div class="c-widget-accordion-content c-content-block" data-tab-content="">
15
- {{ page.textbox.text }}
16
- </div>
17
- </li>
18
- </ul>
19
- </div>
8
+ {% if page.textbox.title %}<h2 class="head-heavy-sm mb-2">{{ page.textbox.title }}</h2>{% endif %}
9
+ <div class="content-block">
10
+ <p>{{ page.textbox.text }}</p>
11
+ </div>
20
12
  {% endif %}
@@ -1,12 +1,2 @@
1
- <div class="o-section-block">
2
- <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
3
- <li class="c-widget-accordion-item is-active" data-accordion-item="">
4
- <a href="#" class="c-widget-accordion-link">
5
- <span class="c-widget-accordion__title">Twitter</span>
6
- </a>
7
- <div class="c-widget-accordion-content" data-tab-content="">
8
- <a class="twitter-timeline" href="https://twitter.com/{{site.tw}}" data-height="520">Tweets by @{{site.tw}}</a>
9
- </div>
10
- </li>
11
- </ul>
12
- </div>
1
+ <h2 class="head-heavy-sm mb-2">Twitter</h2>
2
+ <a class="twitter-timeline" href="https://twitter.com/{{site.tw}}" data-height="520">Tweets by @{{site.tw}}</a>
@@ -1,42 +1,16 @@
1
1
  {% if page.youtube %}
2
- <div class="o-section-block show-for-medium">
3
- <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
4
- <li class="c-widget-accordion-item is-active" data-accordion-item="">
2
+ {% if page.youtube.title %}
3
+ <h2 class="head-heavy-sm mb-2">{{page.youtube.title}}</h2>
4
+ {% endif %}
5
5
 
6
- {% if page.youtube.title %}
7
- <a href="#" class="c-widget-accordion-link c-widget-accordion-link--yt">
8
- <span class="c-widget-accordion__title">{{page.youtube.title}}</span>
9
- </a>
10
- {% endif %}
6
+ {% if page.youtube.id %}
7
+ <iframe width="100%" src="https://www.youtube-nocookie.com/embed/{{page.youtube.id}}?rel=0&amp;controls=0" style="border: 0;" allowfullscreen=""></iframe>
8
+ {% endif %}
9
+ {% if page.youtube.playlist %}
10
+ <iframe width="100%" src="https://www.youtube.com/embed/videoseries?list={{page.youtube.playlist}}" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
11
+ {% endif %}
11
12
 
12
- <div class="c-widget-accordion-content" data-tab-content="">
13
- <div class="c-widget-accordion-content-video">
14
-
15
- <div class="c-widget-accordion-content__video u-video-wrapper-16-9">
16
-
17
- {% if page.youtube.id %}
18
- <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/{{page.youtube.id}}?rel=0&amp;controls=0" style="border: 0;" allowfullscreen=""></iframe>
19
- {% endif %}
20
-
21
- {% if page.youtube.playlist %}
22
-
23
- <iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list={{page.youtube.playlist}}" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
24
- {% endif %}
25
-
26
- </div>
27
-
28
- {% if page.youtube.button %}
29
- <div class="c-widget-accordion-content__cta">
30
- <a class="expanded button large u-0margin" href={{page.youtube.button.url}} target="_blank" rel="noopener noreferrer">
31
- {{page.youtube.button.title}}
32
- </a>
33
- </div>
34
- {% endif %}
35
-
36
- </div>
37
- </div>
38
-
39
- </li>
40
- </ul>
41
- </div>
13
+ {% if page.youtube.button %}
14
+ {% include buttons/icon.html href=page.youtube.button.url target="_blank" cta=page.youtube.button.title class="mt-4 btn--fullwidth btn--hoveractive" icon="ico--chevron-right" %}
15
+ {% endif %}
42
16
  {% endif %}
@@ -1,5 +1,5 @@
1
1
  <aside class="container-padding--zero lg:container-padding--auto lg:card lg:elevation-10">
2
- <div class="lg:card__body {{ include.cardBodyClass }}">
2
+ <div class="lg:card__body p-4 lg:p-8">
3
3
  {% for rbar in page.rbar %}
4
4
  {% if rbar contains 'profile' %}
5
5
  {% include right-bar/bar_profile.html %}
@@ -13,9 +13,6 @@
13
13
  {% if rbar contains 'program' %}
14
14
  {% include right-bar/bar_program.html %}
15
15
  {% endif %}
16
- {% if rbar contains 'cal' and site.calendar %}
17
- {% include right-bar/bar_cal.html %}
18
- {% endif %}
19
16
  {% if rbar contains 'people' %}
20
17
  {% include right-bar/bar_people.html %}
21
18
  {% endif %}
@@ -47,6 +44,10 @@
47
44
  {% include right-bar/bar_page_contact.html %}
48
45
  {% endif %}
49
46
 
47
+ {% unless forloop.last %}
48
+ <hr />
49
+ {% endunless %}
50
+
50
51
  {% comment %}Allows to append custom right bars variants{% endcomment %}
51
52
  {% include right-bar/custom-bars.html rbar=rbar %}
52
53
  {% endfor %}
@@ -4,7 +4,7 @@ layout: default
4
4
 
5
5
  <div class="container container--default py-8 lg:py-24">
6
6
  {% if page.article-boxes %}
7
- {% include article-box/three-in-row.html article-boxes=page.article-boxes %}
7
+ {% include article-box/list.html article-boxes=page.article-boxes class="mb-8 lg:mb-16" %}
8
8
  {% endif %}
9
9
 
10
10
  <main>
@@ -141,14 +141,9 @@ layout: default
141
141
  {% include avatar.html class="avatar--sm candidate-table-row__avatar" src=img alt=candidate.name %}
142
142
  <div class="candidate-table-row__name head-heavy-2xs font-bold">{% if candidatePage %}{{ candidatePage.name }}{% else %}{{ candidate.name }}{% endif %}</div>
143
143
  <div class="candidate-table-row__bio head-allcaps-3xs">{% if candidate.age %}{{ candidate.age }} let{% endif %}{% if candidate.age and candidate.profession %}, {{ candidate.profession }}{% endif %}</div>
144
- {% if candidate.party %}
144
+ {% if candidate.partyUid %}
145
145
  <div class="candidate-table-row__affiliation">
146
- {% if candidate.partyImg %}
147
- {% comment %}We expect an SVG format here to make things scalable{% endcomment %}
148
- {% capture partyImg %}{{ candidate.partyImg | prepend: "/assets/img/" | absolute_url }}{% endcapture %}
149
- {% include avatar.html class="w-6 mr-2" alt=candidate.party src=partyImg %}
150
- {% endif %}
151
- <span class="font-bold font-condensed">{{ candidate.party }}</span>
146
+ {% include party.html uid=candidate.partyUid %}
152
147
  </div>
153
148
  {% endif %}
154
149
  </{% if candidatePage %}a{% else %}div{% endif %}>
@@ -20,7 +20,16 @@ layout: default
20
20
 
21
21
  {% capture personName %}{% include people/fullname.html person=page %}{% endcapture %}
22
22
 
23
- {% include hero/simple.html headline=personName description=page.description descriptionClass="max-w-xl" heroSpacing="pt-24 pb-24 lg:pt-32 pb-24" class="candidate-detail__hero" bgImg=imgPath %}
23
+ {%
24
+ include hero/simple.html
25
+ headline=personName
26
+ description=page.profession
27
+ headlineClass="text-center lg:text-left"
28
+ descriptionClass="max-w-xl text-center lg:text-left"
29
+ heroSpacing="pt-16 pb-24 lg:pt-32 pb-24"
30
+ class="candidate-detail__hero"
31
+ bgImg=imgPath
32
+ %}
24
33
 
25
34
  <div class="container container--default py-8 lg:pb-24">
26
35
  <main>
@@ -31,7 +40,7 @@ layout: default
31
40
  </div>
32
41
  </section>
33
42
  <section class="lg:w-2/5 xl:w-1/3 pt-8 lg:pt-0 order-first lg:order-last candidate-detail__sidebar">
34
- {% include right-bar/rbar.html cardBodyClass="p-4 lg:p-8" %}
43
+ {% include right-bar/rbar.html %}
35
44
  <!-- Mobile divider -->
36
45
  <hr class="block lg:hidden" />
37
46
  </section>
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.0.0.pre.alpha6
4
+ version: 8.0.0.pre.beta1
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: 2020-07-10 00:00:00.000000000 Z
12
+ date: 2020-07-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -64,10 +64,11 @@ files:
64
64
  - README.md
65
65
  - _data/campaigns.yml
66
66
  - _data/menu.yml
67
+ - _data/parties.yml
67
68
  - _includes/404.html
68
69
  - _includes/accordeon/accordeon.html
69
70
  - _includes/article-box/article-box.html
70
- - _includes/article-box/three-in-row.html
71
+ - _includes/article-box/list.html
71
72
  - _includes/article-infobox.html
72
73
  - _includes/articles/author.html
73
74
  - _includes/articles/horizontal-article.html
@@ -108,6 +109,7 @@ files:
108
109
  - _includes/icon-twitter.svg
109
110
  - _includes/js/main.html
110
111
  - _includes/page-header.html
112
+ - _includes/party.html
111
113
  - _includes/people/fullname.html
112
114
  - _includes/people/list-group.html
113
115
  - _includes/people/list-responsive.html
@@ -118,7 +120,6 @@ files:
118
120
  - _includes/regions/crossroad2.html
119
121
  - _includes/regions/item.html
120
122
  - _includes/right-bar/bar_board.html
121
- - _includes/right-bar/bar_cal.html
122
123
  - _includes/right-bar/bar_fb.html
123
124
  - _includes/right-bar/bar_garant.html
124
125
  - _includes/right-bar/bar_kodo.html
@@ -1,22 +0,0 @@
1
- {% for article-box in include.article-boxes %}
2
- {% capture thecycle %}{% cycle 'first', 'second', 'third' %}{% endcapture %}
3
- {% if thecycle == 'first' %}
4
-
5
- <div class="row">
6
-
7
- {% endif %}
8
-
9
- {% include article-box/article-box.html
10
- url=article-box.url
11
- image=article-box.image
12
- title=article-box.title
13
- description=article-box.description
14
- button=article-box.button
15
- %}
16
- {% if thecycle == 'third' or forloop.last %}
17
-
18
- </div>
19
-
20
- {% endif %}
21
- {% endfor %}
22
-
@@ -1,22 +0,0 @@
1
- <div class="o-section-block show-for-medium">
2
- <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
3
- <li class="c-widget-accordion-item is-active" data-accordion-item="">
4
- <a href="#" class="c-widget-accordion-link c-widget-accordion-link--cal">
5
- <span class="c-widget-accordion__title">{{ site.calendar.title }}</span>
6
- </a>
7
- <div class="c-widget-accordion-content" data-tab-content="">
8
- {% if site.env.GOOGLE_CALENDAR_APIKEY and site.calendar.id %}
9
- <div class="__vue-root" data-app="Agenda" data-apikey="{{ site.env.GOOGLE_CALENDAR_APIKEY }}" data-calendar="{{ site.calendar.id }}"></div>
10
- {% else %}
11
- <iframe src="{{ site.calendar.page }}" style="border-width:0; width: 100%; height: 410px; border: 0; overflow: hidden;"></iframe>
12
- {% endif %}
13
-
14
- {% if site.calendar.page %}
15
- <div class="c-widget-accordion-content__cta">
16
- <a class="expanded button large u-0margin" href="{{ site.calendar.page | relative_url }}"> Zobrazit všechny akce </a>
17
- </div>
18
- {% endif %}
19
- </div>
20
- </li>
21
- </ul>
22
- </div>