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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +139 -3
  3. data/_data/parties.yml +7 -0
  4. data/_includes/article-box/article-box.html +15 -18
  5. data/_includes/article-box/list.html +11 -0
  6. data/_includes/candidate-badge.html +17 -11
  7. data/_includes/contact-line.html +1 -1
  8. data/_includes/header.html +2 -2
  9. data/_includes/hero/simple.html +1 -1
  10. data/_includes/page-header.html +1 -1
  11. data/_includes/party.html +15 -0
  12. data/_includes/people/profile-badge.html +11 -5
  13. data/_includes/program/list.html +9 -9
  14. data/_includes/right-bar/bar_board.html +19 -29
  15. data/_includes/right-bar/bar_fb.html +9 -19
  16. data/_includes/right-bar/bar_garant.html +2 -2
  17. data/_includes/right-bar/bar_kodo.html +11 -18
  18. data/_includes/right-bar/bar_map.html +25 -24
  19. data/_includes/right-bar/bar_page_contact.html +2 -12
  20. data/_includes/right-bar/bar_people.html +13 -11
  21. data/_includes/right-bar/bar_person_articles.html +1 -1
  22. data/_includes/right-bar/bar_profile.html +17 -13
  23. data/_includes/right-bar/bar_program.html +1 -1
  24. data/_includes/right-bar/bar_textbox.html +4 -12
  25. data/_includes/right-bar/bar_tw.html +2 -12
  26. data/_includes/right-bar/bar_video.html +12 -38
  27. data/_includes/right-bar/rbar.html +5 -4
  28. data/_includes/right-bar/rbar_profiles.html +1 -8
  29. data/_includes/social-icons.html +8 -0
  30. data/_layouts/blank-article.html +1 -1
  31. data/_layouts/communal-elections.html +5 -10
  32. data/_layouts/person.html +11 -4
  33. metadata +8 -71
  34. data/_includes/article-box/three-in-row.html +0 -22
  35. data/_includes/right-bar/bar_cal.html +0 -22
  36. data/_sass/_base.scss +0 -23
  37. data/_sass/_fonts.scss +0 -42
  38. data/_sass/_settings.scss +0 -688
  39. data/_sass/_sprites.scss +0 -0
  40. data/_sass/components/Slider.scss +0 -0
  41. data/_sass/components/academic-title.scss +0 -7
  42. data/_sass/components/article-card.scss +0 -41
  43. data/_sass/components/article-infobox.scss +0 -9
  44. data/_sass/components/article-listing.scss +0 -95
  45. data/_sass/components/banner.scss +0 -75
  46. data/_sass/components/blockquote.scss +0 -83
  47. data/_sass/components/card.scss +0 -154
  48. data/_sass/components/contact-bar.scss +0 -93
  49. data/_sass/components/content-block.scss +0 -24
  50. data/_sass/components/content-card.scss +0 -31
  51. data/_sass/components/corner-ribbon.scss +0 -25
  52. data/_sass/components/cta-button.scss +0 -54
  53. data/_sass/components/footer.scss +0 -5
  54. data/_sass/components/header-bar.scss +0 -118
  55. data/_sass/components/headline-media.scss +0 -42
  56. data/_sass/components/hero.scss +0 -164
  57. data/_sass/components/highlight.scss +0 -60
  58. data/_sass/components/hp-banner.scss +0 -21
  59. data/_sass/components/icon.scss +0 -33
  60. data/_sass/components/intention-map.scss +0 -23
  61. data/_sass/components/member-list.scss +0 -7
  62. data/_sass/components/metadata-block.scss +0 -29
  63. data/_sass/components/multicolumn.scss +0 -25
  64. data/_sass/components/pagination.scss +0 -44
  65. data/_sass/components/person.scss +0 -9
  66. data/_sass/components/profile-badge.scss +0 -74
  67. data/_sass/components/program.scss +0 -150
  68. data/_sass/components/region.scss +0 -83
  69. data/_sass/components/simple-accordion.scss +0 -80
  70. data/_sass/components/suggest-improvement.scss +0 -10
  71. data/_sass/components/tag.scss +0 -29
  72. data/_sass/components/tile.scss +0 -20
  73. data/_sass/components/top-bar.scss +0 -202
  74. data/_sass/components/top-sub-nav.scss +0 -81
  75. data/_sass/components/typography.scss +0 -85
  76. data/_sass/components/vertical-navigation.scss +0 -67
  77. data/_sass/components/widget-accordion.scss +0 -109
  78. data/_sass/components/widget-share-box.scss +0 -117
  79. data/_sass/components/widget-simple-text.scss +0 -15
  80. data/_sass/layouts/_cast.scss +0 -262
  81. data/_sass/layouts/_kandidatka.scss +0 -78
  82. data/_sass/objects/media.scss +0 -35
  83. data/_sass/objects/section.scss +0 -211
  84. data/_sass/objects/space.scss +0 -7
  85. data/_sass/pirati.scss +0 -58
  86. data/_sass/utilities/header-styles.scss +0 -16
  87. data/_sass/utilities/utilities.scss +0 -139
  88. data/assets/css/main.scss +0 -3
  89. data/assets/fonts/BebasNeue-Thin.ttf +0 -0
  90. data/assets/fonts/BebasNeue-Thin.woff +0 -0
  91. data/assets/fonts/BebasNeueBold.ttf +0 -0
  92. data/assets/fonts/BebasNeueBold.woff +0 -0
  93. data/assets/fonts/BebasNeueBook.ttf +0 -0
  94. data/assets/fonts/BebasNeueBook.woff +0 -0
  95. data/assets/fonts/BebasNeueLight.ttf +0 -0
  96. data/assets/fonts/BebasNeueLight.woff +0 -0
  97. data/assets/fonts/BebasNeueRegular.ttf +0 -0
  98. data/assets/fonts/BebasNeueRegular.woff +0 -0
  99. data/assets/fonts/demo.html +0 -311
  100. data/assets/fonts/stylesheet.css +0 -40
@@ -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 %}
@@ -1,14 +1,16 @@
1
1
 
2
- <div class="content-block">
3
- <h2>Lidé</h2>
4
- </div>
2
+ <div class="hidden lg:block">
3
+ <div class="content-block">
4
+ <h2>Lidé</h2>
5
+ </div>
5
6
 
6
- <div class="space-y-4">
7
- {% assign persons = site.people | sample:3 %}
8
- {% for person in persons %}
9
- {% include people/profile-badge.html item=person style='card' showContactInfo=false %}
10
- {% endfor %}
11
- </div>
7
+ <div class="space-y-4">
8
+ {% assign persons = site.people | sample:3 %}
9
+ {% for person in persons %}
10
+ {% include people/profile-badge.html item=person style='card' showContactInfo=false %}
11
+ {% endfor %}
12
+ </div>
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
+ {% capture href %}{% if peopleCol.root %}{{ peopleCol.root }}{% else %}{{ '/lide/' | relative_url }}{% endif %}{% endcapture %}
15
+ {% 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 %}
16
+ </div>
@@ -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
- {% include people/profile-badge.html class="badge--condensed" item=asistent description=asistent.position %}
54
+ {% include people/profile-badge.html class="badge--condensed" item=asistent description=asistent.position hideAvatar=true %}
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 %}
@@ -1,13 +1,6 @@
1
1
  <div class="flex flex-wrap item-center">
2
2
  <div class="social-icon-group space-x-0/5">
3
- {% if page.profiles.wikipedia %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.wikipedia }}"><i class="ico--wikipedia"></i></a>{% endif %}
4
- {% if page.profiles.facebook %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.facebook }}"><i class="ico--facebook"></i></a>{% endif %}
5
- {% if page.profiles.twitter %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.twitter }}"><i class="ico--twitter"></i></a>{% endif %}
6
- {% if page.profiles.github %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.github }}"><i class="ico--github"></i></a>{% endif %}
7
- {% if page.profiles.forum %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.forum }}"><i class="ico--bubbles"></i></a>{% endif %}
8
- {% if page.profiles.redmine %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.redmine }}"><i class="ico--tasks"></i></a>{% endif %}
9
- {% if page.profiles.web %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.web }}"><i class="ico--globe"></i></a>{% endif %}
10
- {% if page.profiles.blog %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.blog }}"><i class="ico--write"></i></a>{% endif %}
3
+ {% include social-icons.html profiles=page.profiles %}
11
4
  </div>
12
5
 
13
6
  {% if page.profiles.flickr %}
@@ -0,0 +1,8 @@
1
+ {% if include.profiles.wikipedia %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ include.profiles.wikipedia }}"><i class="ico--wikipedia"></i></a>{% endif %}
2
+ {% if include.profiles.facebook %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ include.profiles.facebook }}"><i class="ico--facebook"></i></a>{% endif %}
3
+ {% if include.profiles.twitter %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ include.profiles.twitter }}"><i class="ico--twitter"></i></a>{% endif %}
4
+ {% if include.profiles.github %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ include.profiles.github }}"><i class="ico--github"></i></a>{% endif %}
5
+ {% if include.profiles.forum %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ include.profiles.forum }}"><i class="ico--bubbles"></i></a>{% endif %}
6
+ {% if include.profiles.redmine %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ include.profiles.redmine }}"><i class="ico--tasks"></i></a>{% endif %}
7
+ {% if include.profiles.web %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ include.profiles.web }}"><i class="ico--globe"></i></a>{% endif %}
8
+ {% if include.profiles.blog %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ include.profiles.blog }}"><i class="ico--write"></i></a>{% endif %}
@@ -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>
@@ -83,7 +83,7 @@ layout: default
83
83
  {% assign leaderCandidate = site.people | where: "uid", candidates.leader.uid | first %}
84
84
 
85
85
  <div class="candidate-card-list grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
86
- {% include candidate-badge.html candidate=candidates.leader candidatePage=leaderCandidate rank=1 wrapperClass="candidate-card__wrapper sm:candidate-card-list__item-wrapper md:candidate-card-list__item-wrapper--border" %}
86
+ {% include candidate-badge.html candidate=candidates.leader candidatePage=leaderCandidate rank=1 wrapperClass="candidate-card__wrapper sm:candidate-card-list__item-wrapper md:candidate-card-list__item-wrapper--border" hideSocialProfiles=page.hideCandidateSocialProfiles %}
87
87
 
88
88
  {% if candidates.head.size %}
89
89
  {% for candidate in candidates.head %}
@@ -139,16 +139,11 @@ layout: default
139
139
  <{% if candidatePage %}a href="{{ candidatePage.url }}"{% else %}div{% endif %} class="candidate-table-row">
140
140
  <div class="candidate-table-row__position head-allcaps-heavy-2xs text-right">{{ candidateRank }}</div>
141
141
  {% include avatar.html class="avatar--sm candidate-table-row__avatar" src=img alt=candidate.name %}
142
- <div class="candidate-table-row__name head-heavy-2xs font-bold">{% if candidatePage %}{{ candidatePage.name }}{% else %}{{ candidate.name }}{% endif %}</div>
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 %}
142
+ <div class="candidate-table-row__name head-heavy-2xs font-bold">{% if candidatePage %}{% include people/fullname.html person=candidatePage plain=true %}{% else %}{{ candidate.name }}{% endif %}</div>
143
+ <div class="candidate-table-row__bio head-allcaps-3xs">{% if candidate.age %}{{ candidate.age }} let{% endif %}{% if candidate.profession %}{% if candidate.age %}, {% endif %}{{ candidate.profession }}{% endif %}{% if candidate.city %}{% if candidate.profession or candidate.age %}, {% endif %}{{ candidate.city }}{% endif %}</div>
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 lg:mx-0"
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,9 +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" %}
35
- <!-- Mobile divider -->
36
- <hr class="block lg:hidden" />
43
+ {% include right-bar/rbar.html %}
37
44
  </section>
38
45
  </div>
39
46
  </main>
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.2.0
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-18 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
@@ -139,6 +140,7 @@ files:
139
140
  - _includes/right-bar/rbar_profiles.html
140
141
  - _includes/sharebox.html
141
142
  - _includes/social-icon-group.html
143
+ - _includes/social-icons.html
142
144
  - _includes/social.html
143
145
  - _includes/tables/zebra.html
144
146
  - _includes/youtube.html
@@ -159,71 +161,6 @@ files:
159
161
  - _layouts/regions.html
160
162
  - _layouts/regions2.html
161
163
  - _layouts/taglist.html
162
- - _sass/_base.scss
163
- - _sass/_fonts.scss
164
- - _sass/_settings.scss
165
- - _sass/_sprites.scss
166
- - _sass/components/Slider.scss
167
- - _sass/components/academic-title.scss
168
- - _sass/components/article-card.scss
169
- - _sass/components/article-infobox.scss
170
- - _sass/components/article-listing.scss
171
- - _sass/components/banner.scss
172
- - _sass/components/blockquote.scss
173
- - _sass/components/card.scss
174
- - _sass/components/contact-bar.scss
175
- - _sass/components/content-block.scss
176
- - _sass/components/content-card.scss
177
- - _sass/components/corner-ribbon.scss
178
- - _sass/components/cta-button.scss
179
- - _sass/components/footer.scss
180
- - _sass/components/header-bar.scss
181
- - _sass/components/headline-media.scss
182
- - _sass/components/hero.scss
183
- - _sass/components/highlight.scss
184
- - _sass/components/hp-banner.scss
185
- - _sass/components/icon.scss
186
- - _sass/components/intention-map.scss
187
- - _sass/components/member-list.scss
188
- - _sass/components/metadata-block.scss
189
- - _sass/components/multicolumn.scss
190
- - _sass/components/pagination.scss
191
- - _sass/components/person.scss
192
- - _sass/components/profile-badge.scss
193
- - _sass/components/program.scss
194
- - _sass/components/region.scss
195
- - _sass/components/simple-accordion.scss
196
- - _sass/components/suggest-improvement.scss
197
- - _sass/components/tag.scss
198
- - _sass/components/tile.scss
199
- - _sass/components/top-bar.scss
200
- - _sass/components/top-sub-nav.scss
201
- - _sass/components/typography.scss
202
- - _sass/components/vertical-navigation.scss
203
- - _sass/components/widget-accordion.scss
204
- - _sass/components/widget-share-box.scss
205
- - _sass/components/widget-simple-text.scss
206
- - _sass/layouts/_cast.scss
207
- - _sass/layouts/_kandidatka.scss
208
- - _sass/objects/media.scss
209
- - _sass/objects/section.scss
210
- - _sass/objects/space.scss
211
- - _sass/pirati.scss
212
- - _sass/utilities/header-styles.scss
213
- - _sass/utilities/utilities.scss
214
- - assets/css/main.scss
215
- - assets/fonts/BebasNeue-Thin.ttf
216
- - assets/fonts/BebasNeue-Thin.woff
217
- - assets/fonts/BebasNeueBold.ttf
218
- - assets/fonts/BebasNeueBold.woff
219
- - assets/fonts/BebasNeueBook.ttf
220
- - assets/fonts/BebasNeueBook.woff
221
- - assets/fonts/BebasNeueLight.ttf
222
- - assets/fonts/BebasNeueLight.woff
223
- - assets/fonts/BebasNeueRegular.ttf
224
- - assets/fonts/BebasNeueRegular.woff
225
- - assets/fonts/demo.html
226
- - assets/fonts/stylesheet.css
227
164
  - assets/icons/blog.png
228
165
  - assets/icons/compass.png
229
166
  - assets/icons/facebook.png
@@ -376,9 +313,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
376
313
  version: '0'
377
314
  required_rubygems_version: !ruby/object:Gem::Requirement
378
315
  requirements:
379
- - - ">"
316
+ - - ">="
380
317
  - !ruby/object:Gem::Version
381
- version: 1.3.1
318
+ version: '0'
382
319
  requirements: []
383
320
  rubyforge_project:
384
321
  rubygems_version: 2.7.6