jekyll-theme-pirati-sk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (240) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +187 -0
  3. data/_data/campaigns.yml +19 -0
  4. data/_data/menu.yml +80 -0
  5. data/_data/parties.yml +7 -0
  6. data/_includes/404.html +4 -0
  7. data/_includes/accordeon/accordeon.html +10 -0
  8. data/_includes/article-box/article-box.html +15 -0
  9. data/_includes/article-box/list.html +11 -0
  10. data/_includes/article-infobox.html +5 -0
  11. data/_includes/articles/author.html +8 -0
  12. data/_includes/articles/horizontal-article.html +52 -0
  13. data/_includes/articles/list-responsive.html +5 -0
  14. data/_includes/articles/pagination.html +26 -0
  15. data/_includes/articles/tag-filtered-news.html +16 -0
  16. data/_includes/articles/vertical-article.html +72 -0
  17. data/_includes/avatar.html +9 -0
  18. data/_includes/buttons/basic.html +3 -0
  19. data/_includes/buttons/icon.html +8 -0
  20. data/_includes/buttons/super.html +4 -0
  21. data/_includes/calendar.html +21 -0
  22. data/_includes/candidate-badge.html +57 -0
  23. data/_includes/contact-line.html +4 -0
  24. data/_includes/contacts/residence.html +31 -0
  25. data/_includes/contacts/summary-table.html +64 -0
  26. data/_includes/countdown.html +13 -0
  27. data/_includes/disqus_comments.html +20 -0
  28. data/_includes/elections-header.html +21 -0
  29. data/_includes/footer.html +138 -0
  30. data/_includes/google-analytics.html +12 -0
  31. data/_includes/head-custom.html +0 -0
  32. data/_includes/head.html +76 -0
  33. data/_includes/header.html +167 -0
  34. data/_includes/headline-media.html +16 -0
  35. data/_includes/hero/advanced.html +65 -0
  36. data/_includes/hero/simple.html +13 -0
  37. data/_includes/homepage/banner.html +11 -0
  38. data/_includes/homepage/buttom.html +8 -0
  39. data/_includes/homepage/calendar.html +5 -0
  40. data/_includes/homepage/countdown.html +3 -0
  41. data/_includes/homepage/four-buttoms.html +18 -0
  42. data/_includes/homepage/gif-box.html +9 -0
  43. data/_includes/homepage/news.html +9 -0
  44. data/_includes/homepage/social.html +10 -0
  45. data/_includes/icon-github.html +1 -0
  46. data/_includes/icon-github.svg +1 -0
  47. data/_includes/icon-twitter.html +1 -0
  48. data/_includes/icon-twitter.svg +1 -0
  49. data/_includes/js/main.html +62 -0
  50. data/_includes/page-header.html +9 -0
  51. data/_includes/party.html +15 -0
  52. data/_includes/people/fullname.html +11 -0
  53. data/_includes/people/list-group.html +4 -0
  54. data/_includes/people/list-responsive.html +10 -0
  55. data/_includes/people/profile-badge.html +70 -0
  56. data/_includes/program/list.html +11 -0
  57. data/_includes/program/priorities.html +14 -0
  58. data/_includes/regions/crossroad.html +60 -0
  59. data/_includes/regions/crossroad2.html +5 -0
  60. data/_includes/regions/item.html +26 -0
  61. data/_includes/right-bar/bar_board.html +22 -0
  62. data/_includes/right-bar/bar_fb.html +11 -0
  63. data/_includes/right-bar/bar_garant.html +5 -0
  64. data/_includes/right-bar/bar_kodo.html +12 -0
  65. data/_includes/right-bar/bar_map.html +38 -0
  66. data/_includes/right-bar/bar_page_contact.html +2 -0
  67. data/_includes/right-bar/bar_people.html +16 -0
  68. data/_includes/right-bar/bar_person_articles.html +6 -0
  69. data/_includes/right-bar/bar_profile.html +77 -0
  70. data/_includes/right-bar/bar_program.html +27 -0
  71. data/_includes/right-bar/bar_tag_articles.html +10 -0
  72. data/_includes/right-bar/bar_textbox.html +12 -0
  73. data/_includes/right-bar/bar_tw.html +2 -0
  74. data/_includes/right-bar/bar_video.html +16 -0
  75. data/_includes/right-bar/custom-bars.html +0 -0
  76. data/_includes/right-bar/program-extras.html +0 -0
  77. data/_includes/right-bar/rbar.html +55 -0
  78. data/_includes/right-bar/rbar_articles.html +14 -0
  79. data/_includes/right-bar/rbar_profiles.html +11 -0
  80. data/_includes/sharebox.html +21 -0
  81. data/_includes/social-icon-group.html +23 -0
  82. data/_includes/social-icons.html +8 -0
  83. data/_includes/social.html +14 -0
  84. data/_includes/tables/zebra.html +25 -0
  85. data/_includes/youtube.html +3 -0
  86. data/_layouts/blank-article.html +24 -0
  87. data/_layouts/blank.html +10 -0
  88. data/_layouts/communal-elections.html +172 -0
  89. data/_layouts/compress.html +10 -0
  90. data/_layouts/contacts.html +78 -0
  91. data/_layouts/default.html +19 -0
  92. data/_layouts/home.html +34 -0
  93. data/_layouts/members.html +35 -0
  94. data/_layouts/page.html +5 -0
  95. data/_layouts/person.html +47 -0
  96. data/_layouts/pirate-center.html +91 -0
  97. data/_layouts/post.html +69 -0
  98. data/_layouts/program-post.html +9 -0
  99. data/_layouts/redirected.html +13 -0
  100. data/_layouts/regions.html +15 -0
  101. data/_layouts/regions2.html +9 -0
  102. data/_layouts/taglist.html +31 -0
  103. data/assets/icons/blog.png +0 -0
  104. data/assets/icons/compass.png +0 -0
  105. data/assets/icons/facebook.png +0 -0
  106. data/assets/icons/github.png +0 -0
  107. data/assets/icons/googleplus.png +0 -0
  108. data/assets/icons/instagram.png +0 -0
  109. data/assets/icons/linkedin.png +0 -0
  110. data/assets/icons/pinterest.png +0 -0
  111. data/assets/icons/piratewiki.png +0 -0
  112. data/assets/icons/redmine.png +0 -0
  113. data/assets/icons/twitter.png +0 -0
  114. data/assets/icons/vkontakte.png +0 -0
  115. data/assets/icons/youtube.png +0 -0
  116. data/assets/img/brand/logo-group.png +0 -0
  117. data/assets/img/brand/logo-group.svg +27 -0
  118. data/assets/img/brand/logo-round.png +0 -0
  119. data/assets/img/brand/logo-round.svg +104 -0
  120. data/assets/img/brand/logo.ai +5083 -16
  121. data/assets/img/brand/logo.pdf +1405 -4
  122. data/assets/img/brand/logo.png +0 -0
  123. data/assets/img/brand/logo.svg +10 -0
  124. data/assets/img/brand/logo_easy.png +0 -0
  125. data/assets/img/brand/logo_napis.ai +5003 -21
  126. data/assets/img/brand/logo_napis.pdf +1482 -3
  127. data/assets/img/brand/logo_napis.png +0 -0
  128. data/assets/img/brand/logo_napis.svg +48 -0
  129. data/assets/img/brand/logo_napis_male.png +0 -0
  130. data/assets/img/brand/logo_napis_white.ai +5106 -16
  131. data/assets/img/brand/logo_napis_white.pdf +1532 -2
  132. data/assets/img/brand/logo_napis_white.png +0 -0
  133. data/assets/img/brand/logo_napis_white.svg +51 -0
  134. data/assets/img/brand/logo_white.ai +5194 -23
  135. data/assets/img/brand/logo_white.pdf +1388 -4
  136. data/assets/img/brand/logo_white.png +0 -0
  137. data/assets/img/brand/logo_white.svg +14 -0
  138. data/assets/img/brand/logotyp_email.png +0 -0
  139. data/assets/img/brand/logow.svg +19 -0
  140. data/assets/img/favicon/apple-touch-icon-114x114.png +0 -0
  141. data/assets/img/favicon/apple-touch-icon-120x120.png +0 -0
  142. data/assets/img/favicon/apple-touch-icon-144x144.png +0 -0
  143. data/assets/img/favicon/apple-touch-icon-152x152.png +0 -0
  144. data/assets/img/favicon/apple-touch-icon-57x57.png +0 -0
  145. data/assets/img/favicon/apple-touch-icon-60x60.png +0 -0
  146. data/assets/img/favicon/apple-touch-icon-72x72.png +0 -0
  147. data/assets/img/favicon/apple-touch-icon-76x76.png +0 -0
  148. data/assets/img/favicon/favicon-128x128.png +0 -0
  149. data/assets/img/favicon/favicon-16x16.png +0 -0
  150. data/assets/img/favicon/favicon-196x196.png +0 -0
  151. data/assets/img/favicon/favicon-32x32.png +0 -0
  152. data/assets/img/favicon/favicon-96x96.png +0 -0
  153. data/assets/img/favicon/favicon.ico +0 -0
  154. data/assets/img/favicon/mstile-144x144.png +0 -0
  155. data/assets/img/favicon/mstile-150x150.png +0 -0
  156. data/assets/img/favicon/mstile-310x150.png +0 -0
  157. data/assets/img/favicon/mstile-310x310.png +0 -0
  158. data/assets/img/favicon/mstile-70x70.png +0 -0
  159. data/assets/img/header/background.jpg +0 -0
  160. data/assets/img/map-markers/map-marker-alizarin.svg +138 -0
  161. data/assets/img/map-markers/map-marker-amethyst.svg +138 -0
  162. data/assets/img/map-markers/map-marker-asbestos.svg +138 -0
  163. data/assets/img/map-markers/map-marker-asphalt.svg +138 -0
  164. data/assets/img/map-markers/map-marker-belize-hole.svg +138 -0
  165. data/assets/img/map-markers/map-marker-black.svg +138 -0
  166. data/assets/img/map-markers/map-marker-carrot.svg +138 -0
  167. data/assets/img/map-markers/map-marker-concrete.svg +138 -0
  168. data/assets/img/map-markers/map-marker-emerald.svg +138 -0
  169. data/assets/img/map-markers/map-marker-green-sea.svg +138 -0
  170. data/assets/img/map-markers/map-marker-midnight-blue.svg +138 -0
  171. data/assets/img/map-markers/map-marker-nephritis.svg +138 -0
  172. data/assets/img/map-markers/map-marker-orange.svg +138 -0
  173. data/assets/img/map-markers/map-marker-peter-river.svg +138 -0
  174. data/assets/img/map-markers/map-marker-pomegranate.svg +138 -0
  175. data/assets/img/map-markers/map-marker-pumpkin.svg +138 -0
  176. data/assets/img/map-markers/map-marker-sun-flower.svg +138 -0
  177. data/assets/img/map-markers/map-marker-turqoise.svg +138 -0
  178. data/assets/img/map-markers/map-marker-wisteria.svg +138 -0
  179. data/assets/img/people/ppp.jpg +0 -0
  180. data/assets/img/people/ppp.png +0 -0
  181. data/assets/img/people/unknown-pirate.svg +48 -0
  182. data/assets/img/posts/obrazek.u.tohoto.postu.jpg +0 -0
  183. data/assets/img/praha-index/kandidatka2018.gif +0 -0
  184. data/assets/img/praha-index/naprahuzmeny.jpg +0 -0
  185. data/assets/img/pripoj-se/dotaznik.png +0 -0
  186. data/assets/img/pripoj-se/krajske-forum.jpg +0 -0
  187. data/assets/img/pripoj-se/noviny.jpg +0 -0
  188. data/assets/img/pripoj-se/zastupko.jpg +0 -0
  189. data/assets/img/program/icons/doprava.svg +14 -0
  190. data/assets/img/program/icons/finance.png +0 -0
  191. data/assets/img/program/icons/finance.svg +14 -0
  192. data/assets/img/program/icons/informatika.png +0 -0
  193. data/assets/img/program/icons/informatika.svg +14 -0
  194. data/assets/img/program/icons/ivan-bartos-acta.jpg +0 -0
  195. data/assets/img/program/icons/kontrola.svg +14 -0
  196. data/assets/img/program/icons/kultura.png +0 -0
  197. data/assets/img/program/icons/metropole-01.svg +18 -0
  198. data/assets/img/program/icons/mezinarodni-vztahy.png +0 -0
  199. data/assets/img/program/icons/mezinarodni-vztahy.svg +26 -0
  200. data/assets/img/program/icons/mistni-rozvoj.svg +24 -0
  201. data/assets/img/program/icons/moderni rodina-1.svg +26 -0
  202. data/assets/img/program/icons/obrana.svg +14 -0
  203. data/assets/img/program/icons/obrana2.svg +14 -0
  204. data/assets/img/program/icons/prace-a-socialni-veci.svg +26 -0
  205. data/assets/img/program/icons/prace-a-socialni.png +0 -0
  206. data/assets/img/program/icons/prumysl.png +0 -0
  207. data/assets/img/program/icons/prumysl.svg +14 -0
  208. data/assets/img/program/icons/radnice-01.svg +18 -0
  209. data/assets/img/program/icons/spravedlnost.png +0 -0
  210. data/assets/img/program/icons/spravedlnost.svg +14 -0
  211. data/assets/img/program/icons/svoboda.svg +14 -0
  212. data/assets/img/program/icons/vnitro a otevreny stat.svg +24 -0
  213. data/assets/img/program/icons/vnitro.png +0 -0
  214. data/assets/img/program/icons/vzdelani.png +0 -0
  215. data/assets/img/program/icons/vzdelavani a veda.svg +24 -0
  216. data/assets/img/program/icons/zdravotnictvi.png +0 -0
  217. data/assets/img/program/icons/zdravotnictvi.svg +14 -0
  218. data/assets/img/program/icons/zemedelstvi.png +0 -0
  219. data/assets/img/program/icons/zemedelstvi.svg +14 -0
  220. data/assets/img/program/icons/zivotni-prostredi.png +0 -0
  221. data/assets/img/program/icons/zivotni-prostredi.svg +24 -0
  222. data/assets/img/program/psp2017/doprava.svg +14 -0
  223. data/assets/img/program/psp2017/finance.svg +14 -0
  224. data/assets/img/program/psp2017/informatika.svg +14 -0
  225. data/assets/img/program/psp2017/kultura.png +0 -0
  226. data/assets/img/program/psp2017/mezinarodni-vztahy.svg +26 -0
  227. data/assets/img/program/psp2017/mistni-rozvoj.svg +24 -0
  228. data/assets/img/program/psp2017/obrana.svg +14 -0
  229. data/assets/img/program/psp2017/prumysl.svg +14 -0
  230. data/assets/img/program/psp2017/spravedlnost.svg +14 -0
  231. data/assets/img/program/psp2017/vnitro.png +0 -0
  232. data/assets/img/program/psp2017/vzdelani.png +0 -0
  233. data/assets/img/program/psp2017/zdravotnictvi.svg +14 -0
  234. data/assets/img/program/psp2017/zemedelstvi.png +0 -0
  235. data/assets/img/program/psp2017/zivotni-prostredi.svg +24 -0
  236. data/assets/img/program/volebni-rozcestnik.png +0 -0
  237. data/assets/img/tiles/lightGrey.png +0 -0
  238. data/assets/img/tiles/tableOfContent.png +0 -0
  239. data/jekyll-theme-pirati-sk.gemspec +26 -0
  240. metadata +326 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5416c4c183fe31c712f66a033eb2439b36dc85da5855f62dd3b2fef62e984c0b
4
+ data.tar.gz: 86da30b72fc2af597af4a685435e668995e3809e7378740b333100e3a598a58e
5
+ SHA512:
6
+ metadata.gz: d83abd857c1df1e4e05a7cfdb5a62187c9a6fbbc1487234a3072e44a5b51360a1b5896af929d72cdbddf21bc7d9b49020dbe8314d5f8924da99057c15b17f56b
7
+ data.tar.gz: ad9067bb821b745a2abf8c36595c9cbd7d474f5dca3c21320d7a06c8b33cebdbfb26ffb7e1506d891985c1838abc37a7c62a86f9115d8586a14efc538f486b57
data/README.md ADDED
@@ -0,0 +1,187 @@
1
+ # jekyll-theme-pirati
2
+
3
+ Theme of Czech Pirate Party.
4
+
5
+ [![Gem Version](https://badge.fury.io/rb/jekyll-theme-pirati.svg)](https://badge.fury.io/rb/jekyll-theme-pirati)
6
+
7
+ ## Installation & usage
8
+
9
+ For usage see [USAGE.md](USAGE.md)
10
+
11
+ ## Updating to 8.x
12
+
13
+ 8.x version features a fully revamped UI based on our new [UI
14
+ styleguide](https://styleguide.pir-test.eu/). The theme no longer has it's own
15
+ CSS styles. Instead, all the styles are being provided by the styleguide itself.
16
+ Same applies to JS: whole webpack asset pipeline has been dropped which
17
+ resulted in a lot simpler design. This version is a transition one before
18
+ migrating to Wagtail-driven websites. No more major updates will follow, only
19
+ bugfixes a maybe some minor adjustments.
20
+
21
+ ### New features
22
+
23
+ #### Sub links for campaigns
24
+
25
+ You can now add sub link super buttons to campaign pages. To add it, provide the `subLinks` property of the particular campaign
26
+ record with following shape:
27
+
28
+ ```
29
+ subLinks:
30
+ - title: Povolební strategie
31
+ icon: ico--strategy
32
+ classes: bg-grey-125 hover:bg-black hover:text-white
33
+ href: /
34
+ - title: Financování kampaně
35
+ icon: ico--calculator
36
+ classes: bg-black text-white hover:bg-grey-125 hover:text-black
37
+ href: /
38
+ ```
39
+
40
+ #### Transarency section in the footer
41
+
42
+ Footer section listing transparent accounts and stuff can be enabled/disabled
43
+ using `transparencySection: true/false` property in the `_data/menu.yml`.
44
+
45
+
46
+ #### New includes
47
+
48
+ - `_includes/avatar.html` - creates [avatar image](https://styleguide.pir-test.eu/latest/?p=viewall-atoms-avatars)
49
+ - `_includes/buttons/basic.html` - a [button without icon](https://styleguide.pir-test.eu/latest/?p=atoms-button-colors)
50
+ - `_includes/buttons/icon.html` - a [button with icon](https://styleguide.pir-test.eu/latest/?p=atoms-button-colors)
51
+ - `_includes/buttons/super.html` - a [super button](https://styleguide.pir-test.eu/latest/?p=viewall-atoms-super-buttons)
52
+ - `_includes/calendar.html` - a [calendar widget](https://styleguide.pir-test.eu/latest/?p=molecules-js-calendar)
53
+ - `_includes/contact-line.html` - a generic [contact line](https://styleguide.pir-test.eu/latest/?p=viewall-atoms-contact-lines)
54
+ - `_includes/countdown.html` - a [countdown widget](https://styleguide.pir-test.eu/latest/?p=viewall-organisms-countdown)
55
+ - `_includes/hero/simple.html` - a [simple hero banner](https://styleguide.pir-test.eu/latest/?p=templates-pirate-center)
56
+ - `_includes/hero/advanced.html` - a [complex hero banner](https://styleguide.pir-test.eu/latest/?p=templates-elections)
57
+
58
+ #### New pagination
59
+
60
+ You should update your pagination settings to `12` instead of `11`.
61
+
62
+ #### Set styleguide url in the config
63
+
64
+ Add `styleguide_base_url` property pointing to styleguide version you want to use.
65
+
66
+ #### New pirate-center layout
67
+
68
+ Provide front matter like following:
69
+
70
+ ```yaml
71
+ title: ParduPiCe - Pardubické pirátské centrum
72
+ shorthand: ParduPiCe
73
+ openingHoursSEO: Mo-Fr 9:00-17:00
74
+ heroHeadline: Zbrusu nové krajské pirátské centrum!
75
+ heroDescription: V Pardubicích jsme otevřeli nové pirátské centrum pod zkratkou ParduPiCe.
76
+ img: pardupice/1.jpg
77
+ address: |
78
+ Pardubické pirátské centrum
79
+ Budova T-STRING
80
+ Masarykovo náměstí 1484
81
+ 530 02 Pardubice I
82
+ addressNote: Vstup do pirátského centra naleznete z boku budovy T-STRING naproti „AFI paláci“, vedle kadeřnictví. Vchod je v prostoru vjezdu na parkoviště ve vnitrobloku.
83
+ contactPersons:
84
+ - id: filip.varecha
85
+ description: Správce coworku
86
+ - id: jan.bednar
87
+ description: Produkce
88
+ calendarId: t60uj67580oudjh04tuh5icl8o@group.calendar.google.com
89
+ calendarTitle: Kalendář akcí
90
+ calendarPage: https://calendar.google.com/calendar/embed?src=t60uj67580oudjh04tuh5icl8o%40group.calendar.google.com&ctz=Europe%2FPrague
91
+ mapIframeLink: https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d10250.279531989467!2d15.770466!3d50.0381549!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xd4d03352a17e038b!2zUGFyZHVQaUNlIOKAkyBQYXJkdWJpY2vDqSBQaXLDoXRza8OpIGNlbnRydW0!5e0!3m2!1scs!2scz!4v1568565921492!5m2!1scs!2scz
92
+ ```
93
+
94
+ If you provide `calendarId`, it will display the event list automatically.
95
+
96
+
97
+ #### Display party affiliation on person page
98
+
99
+ To display, add `partyUid: [party_uid]` in the page front matter.
100
+
101
+ #### Use customized hero background on person page
102
+
103
+ To use it fully, provide `heroImg` in the person markdown file.
104
+
105
+ #### Highlight important articles
106
+
107
+ These will show as the [emphasized variant in black](https://styleguide.pir-test.eu/latest/?p=viewall-molecules-article-card).
108
+
109
+ #### Organizations can personalise their onboard and donate links in header and footer
110
+
111
+ Set `organization.donateLink` (defaults to dary.pirati.cz) and
112
+ `organization.onboardingLink` (defaults to nalodeni.pirati.cz) in the Jekyll
113
+ config.
114
+
115
+
116
+ ### Backwards incompatible changes
117
+
118
+ #### Candidate lists
119
+
120
+ New data entity `parties` has been introduced. Needs to be added as `_data/parties.yml`. It's an array with following structure:
121
+
122
+ ```
123
+ - uid: [party_id]
124
+ name: [party_verbose_name]
125
+ logoImg: [party_image_in_svg_format]
126
+ ```
127
+
128
+ All existing candidate lists need to be updated. Specifically, `party` property
129
+ has to be replaced with `partyUid` pointing to actual `uid` in `parties.yml`.
130
+
131
+ #### Font awesome dropped in favor of custom iconset
132
+
133
+ As the result, all the `fa*` icons won't work anymore. New icons has `ico--*` naming instead. See the [styleguide](https://styleguide.pir-test.eu/latest/?p=viewall-atoms-icons) for an overview of available icons. You will need to update your icons should you used some. Namely, icons will have to be updated in the `menu.yml`.
134
+
135
+
136
+ #### Some deleted templates
137
+
138
+ - `_includes/article-box/three-in-row.html` - replaced with `_includes/article-box/list.html`
139
+ - `_includes/rbar/bar_photo.html` - now replaced with `bar_profile.html` that already contains a picture
140
+ - `_includes/rbar/bar_person_contact.html` - now replaced with `bar_profile.html` that already contains a contact section
141
+
142
+
143
+ #### Obsolete JS widgets
144
+
145
+ Following widgets won't work (source kept in repository for future possible use):
146
+
147
+ - Agenda - replaced with calendar from styleguide
148
+ - Intention map - no replacement
149
+ - Custom layer map - no replacement
150
+ - Site search - no replacement, no site search available anymore
151
+
152
+ ## Updating to 7.x
153
+
154
+ Tag `_config.yml organization contactUid` is not used. Contacts person in bottom are popele with category `kontaktni_osoba`.
155
+
156
+ ## Updating to 6.x
157
+
158
+ To upgrade to v6 which features major visual upgrade, following steps are necessary:
159
+
160
+ - For `_people` collection, remove `fullaname` property for every document. Instead, provide `titles` property to keep academic degrees in following format:
161
+
162
+ ```
163
+ titles:
164
+ before: MUDr.
165
+ after: Ph.D.
166
+ ```
167
+ - To make your contact page look OK, you will need to wrap it's sub-heading in following fashion:
168
+
169
+ ```
170
+ <div class="o-section-header o-section-header--indented">
171
+ <h1 class="t-h2-alt">Přidejte se</h1>
172
+ </div>
173
+ ```
174
+
175
+ ## Contributing
176
+
177
+ Bug reports and pull requests are welcome on GitHub at https://github.com/pirati-web/jekyll-theme-pirati/. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
178
+
179
+ ## Development
180
+
181
+ See [development](development.md).
182
+
183
+ ## License
184
+
185
+ The theme is available as open source under the terms of the [MIT
186
+ License](https://opensource.org/licenses/MIT).
187
+
@@ -0,0 +1,19 @@
1
+ # Campaigns are grouped, this usually reperesents situation when multiple
2
+ # election campaings are held at the same time (which saves $$$ for the country).
3
+
4
+ - groupUid: volby-2018 # identifier of the group, to be used in program point
5
+ title: Volby 2018 # title of the campaign group
6
+ subLinks:
7
+ - title: Povolební strategie
8
+ icon: ico--strategy
9
+ classes: bg-grey-125 hover:bg-black hover:text-white
10
+ href: /
11
+ - title: Financování kampaně
12
+ icon: ico--calculator
13
+ classes: bg-black text-white hover:bg-grey-125 hover:text-black
14
+ href: /
15
+ campaigns:
16
+ - title: Program na radnici # individual campaigns within the group
17
+ categoryUid: praha2018
18
+ - title: Senát
19
+ categoryUid: senat
data/_data/menu.yml ADDED
@@ -0,0 +1,80 @@
1
+ top:
2
+ - link: "pirati.cz"
3
+ url: "https://www.pirati.cz"
4
+ icon: "ico--home"
5
+ - link: "piratskyobchod.cz"
6
+ url: "https://piratskyobchod.cz"
7
+ icon: "ico--cart"
8
+ - link: "Pirátské listy"
9
+ url: "http://www.piratskelisty.cz"
10
+ icon: "ico--newspaper"
11
+
12
+ main:
13
+ - link: /
14
+ name: Úvod
15
+ class: hide-for-medium
16
+ - link: /aktuality/
17
+ name: Aktuality
18
+ match: aktuality
19
+ - link: /lide/
20
+ name: O nás
21
+ match: lide, regiony
22
+ submenu:
23
+ - link: /lide/
24
+ name: Naši lidé
25
+ match: lide
26
+ - link: /regiony/
27
+ name: Místní sdružení
28
+ match: regiony
29
+ - link: /regiony/index2.html
30
+ name: Jiný rozcestník
31
+ match: index2
32
+ - link: /komunalni-volby/praha2018
33
+ name: Komunální volby
34
+ match: komunalni-volby
35
+ submenu:
36
+ - link: /komunalni-volby/praha2018/
37
+ name: Program na radnici
38
+ match: radnice
39
+ - link: /komunalni-volby/senat/
40
+ name: Senát
41
+ match: senat
42
+ - link: /komunalni-volby/mapa-zameru/
43
+ name: Mapa záměrů
44
+ match: mapa-zameru
45
+ - link: /pripoj-se/
46
+ name: Připoj se
47
+ match: pripoj-se
48
+ - link: /piratske-centrum/
49
+ name: Piratské centrum
50
+ match: piratske-centrum
51
+ - link: /kontakt/
52
+ name: Kontakt
53
+ match: kontakt
54
+
55
+ # hideSearch: yes
56
+
57
+ bottom:
58
+ - class: small-12 medium-4
59
+ title: Připoj se
60
+ links:
61
+ - link: /pripoj-se/
62
+ name: Dej nám vědět
63
+ - class: small-12 medium-4
64
+ title: Makáme
65
+ links:
66
+ - link: /lide/
67
+ name: Lidé
68
+ - link: /komunalni-volby/
69
+ name: Volby
70
+ - link: /aktuality/
71
+ name: Aktuality
72
+
73
+ # Display transparency section in the footer?
74
+ transparencySection: true
75
+
76
+ contact:
77
+ - id: jakub.pirat
78
+ position: Kontakt pro dorovolníky
79
+ - id: aktivni.priznivec
80
+ position: Kontakt pro novináře
data/_data/parties.yml ADDED
@@ -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
@@ -0,0 +1,4 @@
1
+ <div class="container container--default content-block py-8 lg:py-24">
2
+ <h1 class="head-alt-lg">404 Stránka nebyla nalezena :(</h1>
3
+ <p>Litujeme, ale požadovaná stránka nebyla na našem serveru nalezena.</p>
4
+ </div>
@@ -0,0 +1,10 @@
1
+ <ul class="c-widget-accordion c-widget-accordion--unstacksibling c-widget-accordion--topspace" data-accordion="" data-allow-all-closed="true">
2
+ <li class="c-widget-accordion-item" data-accordion-item="">
3
+ <a href="#" class="c-widget-accordion-link">
4
+ <span class="c-widget-accordion__title c-widget-accordion__title--noicon c-widget-accordion__title--plain">{{point.title}}</span>
5
+ </a>
6
+ <div class="c-widget-accordion-content" data-tab-content="">
7
+ {{ point.content }}
8
+ </div>
9
+ </li>
10
+ </ul>
@@ -0,0 +1,15 @@
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>
@@ -0,0 +1,5 @@
1
+ <div class="card elevation-10">
2
+ <div class="card__body content-block">
3
+ {{ include.content }}
4
+ </div>
5
+ </div>
@@ -0,0 +1,8 @@
1
+ {% if include.article.authorId %}
2
+ {% assign author = site.people | where_exp:"item","item.uid contains include.article.authorId" | first %}
3
+ <a href={{author.url}}>
4
+ {{author.name}}
5
+ </a>
6
+ {% else %}
7
+ {{ include.article.author }}
8
+ {% endif %}
@@ -0,0 +1,52 @@
1
+ <article itemtype="http://schema.org/BlogPosting" class="c-article-listing" itemscope="">
2
+ <link itemprop="mainEntityOfPage" href="{{ include.article.url | absolute_url }}">
3
+
4
+ <div class="c-article-listing__row">
5
+ <div class="c-article-listing__photobox">
6
+ <div itemprop="image" itemtype="http://schema.org/ImageObject" class="c-article-listing__image {% if include.article.youtubeVideoId %}c-article-listing__image--videoicon{% endif %}" itemscope="">
7
+ {% if site.mediaStorage %}
8
+ {% capture imgPath %}https://a.pirati.cz/resize/348x232/{{ site.mediaStorage }}/img/{{ include.article.image }}{% endcapture %}
9
+ {% else %}
10
+ {% capture imgPath %}{% asset '{{ include.article.image }}' magick:resize="348x232^" magick:gravity='center' magick:crop='348x232+0+0' @path %}{% endcapture %}
11
+ {% endif %}
12
+ <a href="{{ include.article.url | relative_url }}">
13
+ <img src="{{ imgPath }}" alt="{{ include.article.title }}">
14
+ </a>
15
+ <meta itemprop="url" content="{{ imgPath }}">
16
+ </div>
17
+ </div>
18
+
19
+ <div class="c-article-listing__content">
20
+ <!-- Headline -->
21
+ <h1 itemprop="headline" class="c-article-listing__headline t-h4">
22
+ <a class="c-headline-anchor" href="{{ include.article.url | relative_url }}" itemprop="url">{{ include.article.title }}</a>
23
+ </h1>
24
+ <p itemprop="description" class="c-article-listing__perex u-stacked t-font-features">{{ include.article.excerpt | truncatewords: 33 | strip_html }}</p>
25
+ <a class="c-emphasized-anchor u-stacked" href="{{ include.article.url | relative_url }}">Přečíst celý článek &rsaquo;</a>
26
+ </div>
27
+ <!-- Publisher -->
28
+ <div itemprop="publisher" itemtype="http://schema.org/Organization" class="u-hidden" itemscope="">
29
+ <div itemprop="logo" itemtype="http://schema.org/ImageObject" itemscope="">
30
+ <meta itemprop="url" content="{{ 'assets/img/brand/logo.svg' | relative_url }}"> </div>
31
+ <meta itemprop="name" content="Česká pirátská strana">
32
+ </div>
33
+ </div>
34
+
35
+ <div class="c-article-listing__meta">
36
+ <div class="c-metadata-block-section">
37
+ <!-- Date published -->
38
+ <span itemprop="description" class="c-metadata-block-section__item">
39
+ <i class="fa fa-calendar-o" aria-hidden="true"></i> {{ include.article.date | date: "%d.%m.%Y" }}
40
+ <meta itemprop="datePublished" content="{{ include.article.date | date_to_xmlschema }}" />
41
+ </span>
42
+
43
+ <!-- Authors -->
44
+ <span itemprop="author" itemtype="http://schema.org/Person" class="c-metadata-block-section__item" itemscope="">
45
+ <i class="fa fa-user" aria-hidden="true"></i>
46
+ <span itemprop="name">
47
+ {% include articles/author.html article=include.article %}
48
+ </span>
49
+ </span>
50
+ </div>
51
+ </div>
52
+ </article>
@@ -0,0 +1,5 @@
1
+ <div class="article-card-list grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 lg:gap-8">
2
+ {% for article in include.posts %}
3
+ {% include articles/vertical-article.html article=article %}
4
+ {% endfor %}
5
+ </div>
@@ -0,0 +1,26 @@
1
+ <div class="pagination-container" role="navigation" aria-label="Pagination">
2
+ <nav class="pagination space-x-1">
3
+ {% if include.paginator.page != 1 %}
4
+ {% include buttons/icon.html href=include.paginator.previous_page_path cta="Předchozí" icon="ico--chevron-left" class="btn--grey-125 btn--hoveractive btn--to-black btn--condensed btn--inverted-icon" aria_label="Předchozí stránka" %}
5
+ {% endif %}
6
+
7
+ {% for page in (1..include.paginator.total_pages) %}
8
+ {% if page == include.paginator.page %}
9
+ {% include buttons/basic.html href=include.paginator.previous_page_path cta=forloop.index class="btn--grey-500 btn--condensed hidden md:inline-block" %}
10
+ {% else %}
11
+ {% capture aria_label %}Stránka {{ forloop.index }}{% endcapture %}
12
+ {% if forloop.index == 1 %}
13
+ {% include buttons/basic.html href="/aktuality/" href=include.paginator.previous_page_path cta=forloop.index class="btn--grey-125 btn--hoveractive btn--to-black btn--condensed hidden md:inline-block" aria_label=aria_label %}
14
+ {% else %}
15
+ {% capture href %}/aktuality/{{forloop.index}}/{% endcapture %}
16
+ {% include buttons/basic.html href="/aktuality/" href=href cta=forloop.index class="btn--grey-125 btn--hoveractive btn--to-black btn--condensed hidden md:inline-block" aria_label=aria_label %}
17
+ {% endif %}
18
+ {% endif %}
19
+ {% endfor %}
20
+
21
+ {% if include.paginator.page != include.paginator.total_pages %}
22
+ {% include buttons/icon.html href=include.paginator.next_page_path cta="Další" icon="ico--chevron-right" class="btn--grey-125 btn--hoveractive btn--to-black btn--condensed" aria_label="Další stránka" %}
23
+ {% endif %}
24
+ </nav>
25
+ </div>
26
+
@@ -0,0 +1,16 @@
1
+ {% assign posts = "" | split: ", " %}
2
+ {% for tag in include.tags %}
3
+ {% assign tagPosts = site.posts | where_exp: "item","item.tags contains tag" %}
4
+ {% assign posts = posts | concat: tagPosts %}
5
+ {% endfor %}
6
+ {% assign posts = posts | sort: "date" | reverse %}
7
+
8
+ <section class="o-section o-section--spaceBot">
9
+ <div class="o-section-inner o-section-inner--leftBlock">
10
+ {% for article in posts limit: include.limit %} {% include articles/horizontal-article.html article=article %}
11
+ {% endfor %}
12
+ <div class="c-BlogPosting-excerpt-nextBox">
13
+ <a href="{{'/aktuality/' | relative_url}}" rel="next" class="button expanded large">Další články</a>
14
+ </div>
15
+ </div>
16
+ </section>
@@ -0,0 +1,72 @@
1
+ <!-- include.article -->
2
+ <article itemtype="http://schema.org/BlogPosting" class="card card--hoveractive article-card {% if include.article.important %}bg-black{% endif %}" itemscope="">
3
+ <link itemprop="mainEntityOfPage" href="{{ include.article.url }}">
4
+
5
+ <div class="article-card-cover">
6
+ <a href="{{ include.article.url | relative_url }}" itemprop="image" itemtype="http://schema.org/ImageObject" itemscope="">
7
+ {% if site.mediaStorage %}
8
+ {% capture imgPath %}https://a.pirati.cz/resize/348x232/{{ site.mediaStorage }}/img/{{ include.article.image }}{% endcapture %}
9
+ {% else %}
10
+ {% capture imgPath %}{% asset '{{ include.article.image }}' magick:resize='751x422^' magick:gravity='center' magick:crop='751x422+0+0' @path %}{% endcapture %}
11
+ {% endif %}
12
+ <img src="{{ imgPath }}" alt="{{ include.article.title }}">
13
+ <meta itemprop="url" content="{{ imgPath }}">
14
+ </a>
15
+
16
+ <div class="article-card-cover__details">
17
+ <div class="article-card-sharing">
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>
30
+ </div>
31
+
32
+ <div class="article-card-meta" class="c-metadata-block-section__item" >
33
+ <span itemprop="description" class="article-card-meta__item">
34
+ {{ include.article.date | date: "%d.%m.%Y" }}
35
+ <meta itemprop="datePublished" content="{{ include.article.date | date_to_xmlschema }}" />
36
+ </span>
37
+ <span class="article-card-meta__item" itemprop="author" itemtype="http://schema.org/Person" itemscope="">
38
+ {% capture author_name %}
39
+ {% if include.article.authorId -%}
40
+ {% assign author = site.people | where_exp:"item","item.uid contains include.article.authorId" | first %}
41
+ {{ author.name }}
42
+ {%- else -%}
43
+ {{ include.article.author }}
44
+ {%- endif %}
45
+ {% endcapture %}
46
+ <span itemprop="name">{{ author_name }}</span>
47
+ </span>
48
+ </div>
49
+
50
+ </div>
51
+ </div>
52
+ <div class="card__body article-card__body">
53
+ <a href="{{ include.article.url | relative_url }}" {% if include.article.important %}class="hover:line-white"{% endif %}><h1 class="card-headline mb-4 {% if include.article.important %}text-white{% endif %}">{{ include.article.title }}</h1></a>
54
+ <p class="card-body-text flex-grow {% if include.article.important %}text-white{% endif %}">{{ include.article.excerpt | truncatewords: 35 | strip_html }}</p>
55
+ {% if include.article.tags %}
56
+ <div class="inline-block-nogap mt-4">
57
+ {% for tag in include.article.tags %}
58
+ {% capture tagUrl %}{{ tag | prepend: '/tags/#' | relative_url }}{% endcapture %}
59
+ {% capture tagClass %}article-card__category-button btn--condensed text-sm font-light {% if include.article.important %}btn--grey-700{% else %}btn--grey-125{% endif %}{% endcapture %}
60
+ {% include buttons/basic.html class=tagClass cta=tag href=tagUrl %}
61
+ {% endfor %}
62
+ </div>
63
+ {% endif %}
64
+ </div>
65
+
66
+ <div itemprop="publisher" itemtype="http://schema.org/Organization" class="hidden" itemscope="">
67
+ <div itemprop="logo" itemtype="http://schema.org/ImageObject" itemscope="">
68
+ <meta itemprop="url" content="{{ 'assets/img/brand/logo.svg' | relative_url }}">
69
+ </div>
70
+ <meta itemprop="name" content="Česká pirátská strana">
71
+ </div>
72
+ </article>
@@ -0,0 +1,9 @@
1
+ {% if include.url %}
2
+ <a href="{{ include.url }}" class="avatar {% if include.class %}{{ include.class }}{% endif %}">
3
+ <img src="{{ include.src }}" alt="{{ include.alt }}" />
4
+ </a>
5
+ {% else %}
6
+ <div class="avatar {% if include.class %}{{ include.class }}{% endif %}">
7
+ <img src="{{ include.src }}" alt="{{ include.alt }}" />
8
+ </div>
9
+ {% endif %}
@@ -0,0 +1,3 @@
1
+ <{% if include.href %}a href="{{ include.href }}"{% else %}button{% endif %} class="btn {{ include.class }}" {% if include.rel %}rel="{{ include.rel }}"{% endif %} {% if include.aria_label %}aria-label="{{ include.aria_label }}"{% endif %}>
2
+ <div class="btn__body {{ include.body_class }}">{{ include.cta }}</div>
3
+ </{% if include.href %}a{% else %}button{% endif %}>
@@ -0,0 +1,8 @@
1
+ <{% if include.href %}a href="{{ include.href }}"{% else %}button{% endif %} class="btn btn--icon {{ include.class }}" {% if include.rel %}rel="{{ include.rel }}"{% endif %} {% if include.aria_label %}aria-label="{{ include.aria_label }}"{% endif %}>
2
+ <div class="btn__body-wrap">
3
+ <div class="btn__body {{ include.body_class }}">{{ include.cta }}</div>
4
+ <div class="btn__icon {{ include.icon_class }}">
5
+ <i class="{{ include.icon }}"></i>
6
+ </div>
7
+ </div>
8
+ </{% if include.href %}a{% else %}button{% endif %}>
@@ -0,0 +1,4 @@
1
+ <a href="{{ include.href }}" class="super-button {{ include.class }}" {% if include.rel %}rel="{{ include.rel }}"{% endif %} {% if include.aria_label %}aria-label="{{ include.aria_label }}"{% endif %}>
2
+ <span class="super-button__body">{{ include.cta }}</span>
3
+ <i class="super-button__icon {{ include.icon }}"></i>
4
+ </a>
@@ -0,0 +1,21 @@
1
+ <div class="__js-root {{ include.classes }}">
2
+ {% if site.env.GOOGLE_CALENDAR_APIKEY and include.calendarId %}
3
+ <ui-calendar-google-provider v-slot="{ events, onShowMore, hasMore }" :calendar-id="'{{ include.calendarId }}'" :api-key="'{{ site.env.GOOGLE_CALENDAR_APIKEY }}'">
4
+ <ui-calendar-renderer
5
+ :events="events"
6
+ :on-show-more="onShowMore"
7
+ :has-more="hasMore" :name="'{{ include.calendarTitle | default: 'Kalendář' }}'"
8
+ {% if include.hideBanner %}:show-banner="false"{% endif %}
9
+ ></ui-calendar-renderer>
10
+ </ui-calendar-google-provider>
11
+ {% else %}
12
+ {% if include.calendarPage %}
13
+ <iframe src="{{ include.calendarPage }}" style="border-width:0; width: 100%; height: 410px; border: 0; overflow: hidden;"></iframe>
14
+ <p class="mt-4">
15
+ <a class="btn btn--orange-200 btn--hoveractive" href="{{ include.calendarPage | relative_url }}">
16
+ <span class="btn__body">Zobrazit všechny akce</span>
17
+ </a>
18
+ </p>
19
+ {% endif %}
20
+ {% endif %}
21
+ </div>