jekyll-theme-pirati 8.0.0.pre.alpha3 → 8.0.0.pre.beta2

This diff has not been reviewed by any users.
Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/_data/parties.yml +7 -0
  3. data/_includes/article-box/article-box.html +15 -18
  4. data/_includes/article-box/list.html +11 -0
  5. data/_includes/articles/vertical-article.html +12 -1
  6. data/_includes/calendar.html +1 -1
  7. data/_includes/candidate-badge.html +3 -10
  8. data/_includes/contact-line.html +1 -1
  9. data/_includes/header.html +1 -1
  10. data/_includes/hero/simple.html +1 -1
  11. data/_includes/page-header.html +1 -1
  12. data/_includes/party.html +15 -0
  13. data/_includes/people/profile-badge.html +3 -1
  14. data/_includes/program/list.html +9 -9
  15. data/_includes/right-bar/bar_board.html +19 -29
  16. data/_includes/right-bar/bar_fb.html +9 -19
  17. data/_includes/right-bar/bar_garant.html +2 -2
  18. data/_includes/right-bar/bar_kodo.html +11 -18
  19. data/_includes/right-bar/bar_map.html +25 -24
  20. data/_includes/right-bar/bar_page_contact.html +2 -12
  21. data/_includes/right-bar/bar_people.html +1 -1
  22. data/_includes/right-bar/bar_person_articles.html +1 -1
  23. data/_includes/right-bar/bar_profile.html +16 -12
  24. data/_includes/right-bar/bar_program.html +1 -1
  25. data/_includes/right-bar/bar_textbox.html +4 -12
  26. data/_includes/right-bar/bar_tw.html +2 -12
  27. data/_includes/right-bar/bar_video.html +12 -38
  28. data/_includes/right-bar/rbar.html +5 -4
  29. data/_layouts/blank-article.html +1 -1
  30. data/_layouts/communal-elections.html +2 -7
  31. data/_layouts/person.html +11 -2
  32. data/_layouts/pirate-center.html +23 -19
  33. data/_layouts/taglist.html +11 -8
  34. metadata +5 -4
  35. data/_includes/article-box/three-in-row.html +0 -22
  36. data/_includes/right-bar/bar_cal.html +0 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98b773876f990b34a2aa8c292d6c0596c19f717fa4abcc046801ee77686ea68d
4
- data.tar.gz: 681a9aab4c401e2d571b96107df962b58e11f716adc70c65dc4decb14019a7a8
3
+ metadata.gz: b9a9c49931a4f54e15e72965acc13ae45254aa72e4b1f47a5cf0f06b3bbf6f7d
4
+ data.tar.gz: c81e67cec89f39f8cdec1f01bcb434948f5f6c6323aca31028c6085f3dde93f2
5
5
  SHA512:
6
- metadata.gz: 055ad26baa405cc3add1959d4429b0f910b2b36dd6df1166359b8374c681b581664aed365ca63e4782b55d3d57c587d90903bf3cb202c407f68daa4eb3e36ffd
7
- data.tar.gz: 8e88803ff7b66c8106a9c9d29bb77fd23380addbbb0e97e49b6e4eca16af4eaf20ef48040eccdabfdca0222231787fbbc76eb319cb4ce74ed9347cc2476cf759
6
+ metadata.gz: fcb288210ac23f81a9d2a1c3a9979662cfdf3a0c8c942677b915d6142a835b3e0b906da44d61575a9b315eb2f61b77c4443e7e4a1c6bd633fbf9393c194b02d0
7
+ data.tar.gz: 432904cb5c01a678076e8e89273e5abc853039f8e1e6aed3e327d77f47792882913fe996c07806877c11ede7dd396a0fc2c6f63b241d93328bac902a743509b5
@@ -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>
@@ -15,7 +15,18 @@
15
15
 
16
16
  <div class="article-card-cover__details">
17
17
  <div class="article-card-sharing">
18
- {% comment %} {{> molecules-small-colored-social-icon-group }} {% endcomment %}
18
+ <div class="social-icon-group">
19
+ <a
20
+ href="https://www.facebook.com/sharer/sharer.php?u={{ include.article.url | absolute_url }}"
21
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
22
+ class="social-icon social-icon--fill bg-brands-facebook text-white text-sm social-icon--4"
23
+ ><i class="ico--facebook"></i></a>
24
+ <a
25
+ href="https://twitter.com/intent/tweet?text={{ include.article.title }}&url={{ include.article.url | absolute_url }}"
26
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
27
+ class="social-icon social-icon--fill bg-brands-twitter text-white text-sm social-icon--4"
28
+ ><i class="ico--twitter"></i></a>
29
+ </div>
19
30
  </div>
20
31
 
21
32
  <div class="article-card-meta" class="c-metadata-block-section__item" >
@@ -1,4 +1,4 @@
1
- <div class="__js-root">
1
+ <div class="__js-root {{ include.classes }}">
2
2
  {% if site.env.GOOGLE_CALENDAR_APIKEY and include.calendarId %}
3
3
  <ui-calendar-google-provider v-slot="{ events, onShowMore, hasMore }" :calendar-id="'{{ include.calendarId }}'" :api-key="'{{ site.env.GOOGLE_CALENDAR_APIKEY }}'">
4
4
  <ui-calendar-renderer
@@ -22,22 +22,15 @@
22
22
  <a href="{{ include.candidatePage.url|relative_url }}">{% include people/fullname.html person=include.candidatePage %}</a>
23
23
  </h1>
24
24
  {% if include.candidatePage.mail %}
25
- <div class="font-light mb-4">{{ include.candidatePage.mail }}</div>
25
+ <a href="mailto:{{ include.candidatePage.mail }}" class="block font-light mb-4">{{ include.candidatePage.mail }}</a>
26
26
  {% endif %}
27
27
  <h2 class="head-allcaps-4xs md:head-allcaps-3xs">{{ include.candidate.profession }}</h2>
28
28
  </div>
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>
@@ -34,7 +34,9 @@
34
34
  {% endunless %}
35
35
 
36
36
  <div class="badge__body">
37
- <h2 class="{% if include.headlineClass %}{{ include.headlineClass }}{% else %}head-heavy-2xs{% endif %} badge__title">{{ label }}</h2>
37
+ <h2 class="{% if include.headlineClass %}{{ include.headlineClass }}{% else %}head-heavy-2xs{% endif %} badge__title">
38
+ <a href="{{ url }}" title="{{ label }}" class="content-block--nostyle">{{ label }}</a>
39
+ </h2>
38
40
 
39
41
  {% unless include.showDescription == false %}
40
42
  <p class="badge__occupation">
@@ -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 mx-auto"
28
+ descriptionClass="max-w-xl mx-auto 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>
@@ -31,32 +31,36 @@ layout: default
31
31
  {% endif %}
32
32
 
33
33
  <div class="lg:flex lg:space-x-8 xl:space-x-16">
34
- <div class="lg:w-3/5 xl:w-2/3 content-block">
35
- {{ content }}
34
+ <div class="lg:w-3/5 xl:w-2/3">
35
+ <div class="content-block">
36
+ {{ content }}
37
+ </div>
36
38
  {% if page.calendarId or page.calendarPage %}
37
- <h2>{{ page.calendarTitle | default: "Kalendář akcí" }}</h2>
38
- {% include calendar.html calendarId=page.calendarId title=page.calendarTitle calendarPage=page.calendarPage hideBanner=true %}
39
+ <h2 class="head-heavy-sm mb-4 mt-4">{{ page.calendarTitle | default: "Kalendář akcí" }}</h2>
40
+ {% include calendar.html calendarId=page.calendarId title=page.calendarTitle calendarPage=page.calendarPage hideBanner=true classes="mb-4" %}
39
41
  {% endif %}
40
42
  </div>
41
43
  <div class="pt-8 lg:w-2/5 xl:w-1/3 lg:pt-0">
42
44
  <div class="lg:card lg:elevation-10">
43
- <div class="lg:card__body content-block" itemprop="address" itemtype="https://schema.org/PostalAddress" itemscope>
45
+ <div class="lg:card__body" itemprop="address" itemtype="https://schema.org/PostalAddress" itemscope>
46
+ <div class="content-block">
44
47
  <h2>Kde to najdu?</h2>
45
- {% if page.mapIframeLink %}
46
- <iframe src="{{ page.mapIframeLink }}" width="100%" height="300" id="mapa-mobile" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
47
- {% endif %}
48
- {% if page.address %}
49
- <p>
50
- {{ page.address | newline_to_br }}
51
- </p>
52
- {% endif %}
53
- {% if page.addressNote %}
54
- <p><small>{{ page.addressNote }}</small></p>
55
- {% endif %}
56
- <hr>
57
- {% if page.contactPersons %}
58
- <h2>Kontakt</h2>
48
+ {% if page.mapIframeLink %}
49
+ <iframe src="{{ page.mapIframeLink }}" width="100%" height="300" id="mapa-mobile" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
50
+ {% endif %}
51
+ {% if page.address %}
52
+ <p>
53
+ {{ page.address | newline_to_br }}
54
+ </p>
55
+ {% endif %}
56
+ {% if page.addressNote %}
57
+ <p><small>{{ page.addressNote }}</small></p>
58
+ {% endif %}
59
+ <hr>
60
+ </div>
59
61
 
62
+ {% if page.contactPersons %}
63
+ <h2 class="head-heavy-sm mb-2">Kontakt</h2>
60
64
  {% for contact in page.contactPersons %}
61
65
  {% assign person = site.people | where_exp:"item","item.uid contains contact.id" | first %}
62
66
  {% if forloop.first %}
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: page
3
+ nocols: true
3
4
  ---
4
5
 
5
6
  {{ content }}
@@ -14,15 +15,17 @@ layout: page
14
15
  {% endcapture %}
15
16
  {% assign sortedtags = tags | split:' ' | uniq | sort %}
16
17
 
17
- <div class="c-multicolumn c-multicolumn--three c-multicolumn--responsive">
18
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
18
19
  {% for tag in sortedtags %}
19
- <section>
20
- <h2 id="{{ tag }}">{{ tag }}</h3>
21
- <ul>
22
- {% for post in site.tags[tag] %}
23
- <li><a class="c-emphasized-anchor" href="{{ post.url }}">{{ post.title }}</a></li>
24
- {% endfor %}
25
- </ul>
20
+ <section class="card">
21
+ <div class="card__body p-4">
22
+ <h2 class="head-heavy-xs mb-2" id="{{ tag }}">{{ tag }}</h3>
23
+ <ul class="unordered-list unordered-list--linked unordered-list--dense leading-normal font-light text-sm">
24
+ {% for post in site.tags[tag] %}
25
+ <li><a href="{{ post.url }}">{{ post.title }}</a></li>
26
+ {% endfor %}
27
+ </ul>
28
+ </div>
26
29
  </section>
27
30
  {% endfor %}
28
31
  </div>
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.alpha3
4
+ version: 8.0.0.pre.beta2
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-09 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>