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
@@ -0,0 +1,77 @@
1
+ {% if page.img %}
2
+ <div class="text-center mb-8">
3
+ {% if site.mediaStorage %}
4
+ {% capture img %}https://a.pirati.cz/resize/225x225/{{ site.mediaStorage }}/img/{{ page.img }}{% endcapture %}
5
+ {%- else -%}
6
+ {% capture img %}{% asset '{{ page.img }}' magick:resize="225x" @path %}{% endcapture %}
7
+ {%- endif -%}
8
+
9
+ {% include avatar.html src=img class="avatar--2xl lg:avatar--3xl avatar--bordered candidate-detail__avatar" %}
10
+ </div>
11
+ {% endif %}
12
+
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
+ {% include right-bar/rbar_profiles.html %}
15
+ {% endif %}
16
+
17
+ {% if page.partyUid %}
18
+ <hr />
19
+ {% include party.html uid=page.partyUid %}
20
+ {% endif %}
21
+
22
+ <div class="content-block">
23
+ {% if page.mail or page.mob or page.profiles.report %}
24
+ <hr />
25
+ <div class="space-y-4">
26
+ {% if page.mob %}
27
+ <div>
28
+ <h4>Telefon</h4>
29
+ {% capture href %}tel:{{ page.mob }}{% endcapture %}
30
+ {% include contact-line.html icon="ico--phone" href=href caption=page.mob %}
31
+ </div>
32
+ {% endif %}
33
+ {% if page.mail %}
34
+ <div>
35
+ <h4>Email</h4>
36
+ {% capture href %}mailto:{{ page.mail }}{% endcapture %}
37
+ {% include contact-line.html icon="ico--envelope" href=href caption=page.mail %}
38
+ </div>
39
+ {% endif %}
40
+ {% if page.profiles.report %}
41
+ <div>
42
+ <h4>Report poslance</h4>
43
+ {% include contact-line.html icon="ico--folder" href=page.profiles.report caption="Zobrazit report" %}
44
+ </div>
45
+ {% endif %}
46
+ </div>
47
+ {% endif %}
48
+
49
+ {% if page.asistenti %}
50
+ <hr />
51
+ <h2>Asistenti</h2>
52
+ <div class="space-y-4 mt-4">
53
+ {% for asistent in page.asistenti %}
54
+ {% include people/profile-badge.html class="badge--condensed" item=asistent description=asistent.position hideAvatar=true %}
55
+ {% endfor %}
56
+ </div>
57
+ {% endif %}
58
+
59
+ {% if page.office %}
60
+ <hr />
61
+ {% assign kancl = page.office | first %}
62
+ <h2>Kancelář</h2>
63
+ <iframe
64
+ height="150"
65
+ frameborder="0"
66
+ style="border:0; width:100%"
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>
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 %}
76
+ {% endif %}
77
+ </div>
@@ -0,0 +1,27 @@
1
+ {% if page.campaignGroupUid %}
2
+ {% assign campaignGroup = site.data.campaigns | where: "groupUid", page.campaignGroupUid | first %}
3
+ {% endif %}
4
+
5
+ {% if campaignGroup %}
6
+ <div class="content-block">
7
+ <h2>{{ campaignGroup.title }}</h2>
8
+
9
+ {% for campaign in campaignGroup.campaigns %}
10
+ {% assign programSections = site.program | where: "campaignCategoryUid", campaign.categoryUid | sort:"order" %}
11
+
12
+ <h3>{{ campaign.title }}</h3>
13
+
14
+ <ul class="unordered-list unordered-list--linked">
15
+ {% for programSection in programSections %}
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
+ {% endfor %}
18
+ </ul>
19
+ {% unless forloop.last %}
20
+ <hr>
21
+ {% endunless %}
22
+ {% endfor %}
23
+
24
+ {% comment %}Allows to add custom content to program rbar{% endcomment %}
25
+ {% include right-bar/program-extras.html %}
26
+ </div>
27
+ {% endif %}
@@ -0,0 +1,10 @@
1
+ {% assign posts = "" | split: ", " %}
2
+ {% for tag in page.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
+ {% if posts %}
9
+ {% include right-bar/rbar_articles.html posts=posts title="Seznam článků" %}
10
+ {% endif %}
@@ -0,0 +1,12 @@
1
+ {% comment %}
2
+ This requires the page header to define
3
+ textbox:
4
+ title: # optional
5
+ text: # required
6
+ {% endcomment %}
7
+ {% if page.textbox.text %}
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>
12
+ {% endif %}
@@ -0,0 +1,2 @@
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>
@@ -0,0 +1,16 @@
1
+ {% if page.youtube %}
2
+ {% if page.youtube.title %}
3
+ <h2 class="head-heavy-sm mb-2">{{page.youtube.title}}</h2>
4
+ {% endif %}
5
+
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 %}
12
+
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 %}
16
+ {% endif %}
File without changes
File without changes
@@ -0,0 +1,55 @@
1
+ <aside class="container-padding--zero lg:container-padding--auto lg:card lg:elevation-10">
2
+ <div class="lg:card__body p-4 lg:p-8">
3
+ {% for rbar in page.rbar %}
4
+ {% if rbar contains 'profile' %}
5
+ {% include right-bar/bar_profile.html %}
6
+ {% endif %}
7
+ {% if rbar contains 'garant' %}
8
+ {% include right-bar/bar_garant.html %}
9
+ {% endif %}
10
+ {% if rbar contains 'kodo' %}
11
+ {% include right-bar/bar_kodo.html %}
12
+ {% endif %}
13
+ {% if rbar contains 'program' %}
14
+ {% include right-bar/bar_program.html %}
15
+ {% endif %}
16
+ {% if rbar contains 'people' %}
17
+ {% include right-bar/bar_people.html %}
18
+ {% endif %}
19
+ {% if rbar contains 'video' %}
20
+ {% include right-bar/bar_video.html %}
21
+ {% endif %}
22
+ {% if rbar contains 'fb' and site.facebook.profilePage %}
23
+ {% include right-bar/bar_fb.html %}
24
+ {% endif %}
25
+ {% if rbar contains 'tw' and site.twitter.profile %}
26
+ {% include right-bar/bar_tw.html %}
27
+ {% endif %}
28
+ {% if rbar contains 'textbox' %}
29
+ {% include right-bar/bar_textbox.html %}
30
+ {% endif %}
31
+ {% if rbar contains 'map' %}
32
+ {% include right-bar/bar_map.html %}
33
+ {% endif %}
34
+ {% if rbar contains 'personArticles' %}
35
+ {% include right-bar/bar_person_articles.html %}
36
+ {% endif %}
37
+ {% if rbar contains 'board' %}
38
+ {% include right-bar/bar_board.html %}
39
+ {% endif %}
40
+ {% if rbar contains 'tagArticles' %}
41
+ {% include right-bar/bar_tag_articles.html %}
42
+ {% endif %}
43
+ {% if rbar contains 'pageContact' %}
44
+ {% include right-bar/bar_page_contact.html %}
45
+ {% endif %}
46
+
47
+ {% unless forloop.last %}
48
+ <hr />
49
+ {% endunless %}
50
+
51
+ {% comment %}Allows to append custom right bars variants{% endcomment %}
52
+ {% include right-bar/custom-bars.html rbar=rbar %}
53
+ {% endfor %}
54
+ </div>
55
+ </aside>
@@ -0,0 +1,14 @@
1
+ <div class="content-block">
2
+ <h2>{{ include.title }}</h2>
3
+
4
+ {% assign posts = include.posts | sort: "date" | reverse %}
5
+ <ul class="unordered-list unordered-list--linked">
6
+ {% for post in posts limit: 30 %}
7
+ <li>
8
+ <a href="{{ post.url }}">
9
+ {{ post.title }}
10
+ </a>
11
+ </li>
12
+ {% endfor %}
13
+ </ul>
14
+ </div>
@@ -0,0 +1,11 @@
1
+ <div class="flex flex-wrap item-center">
2
+ <div class="social-icon-group space-x-0/5">
3
+ {% include social-icons.html profiles=page.profiles %}
4
+ </div>
5
+
6
+ {% if page.profiles.flickr %}
7
+ <div class="flex-grow text-right">
8
+ <a href="{{ page.profiles.flickr }}" class="inline-flex items-center"><span class="font-light text-sm">Více fotografií</span><i class="ico--flickr ml-2 no-underline hover:no-underline"></i></a>
9
+ </div>
10
+ {% endif %}
11
+ </div>
@@ -0,0 +1,21 @@
1
+ <div class="sharebox md:card md:elevation-10 {{ include.classes }}">
2
+ <div class="md:card__body">
3
+ <span class="head-alt-base md:head-alt-md">Sdílení je aktem lásky</span>
4
+
5
+ <div class="flex w-full space-x-4 pt-4 md:pt-8 text-center text-white">
6
+ <a
7
+ href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url }}"
8
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
9
+ class="bg-brands-facebook px-8 py-3 text-2xl w-full"
10
+ ><i class="ico--facebook"></i></a>
11
+ <a
12
+ href="https://twitter.com/intent/tweet?text={{ page.title }}&url={{ page.url | absolute_url }}"
13
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
14
+ class="bg-brands-twitter px-8 py-3 text-2xl w-full"
15
+ ><i class="ico--twitter"></i></a>
16
+ </div>
17
+ </div>
18
+ <div class="h-52 overflow-hidden hidden md:block">
19
+ <img src="{{ site.styleguide_base_url }}/images/flag.png" alt="Pirátská strana" class="w-80 object-cover m-auto" />
20
+ </div>
21
+ </div>
@@ -0,0 +1,23 @@
1
+ <div class="social-icon-group {{ include.class }}">
2
+ {% if site.twitter.profile %}
3
+ <a href="https://www.twitter.com/{{ site.twitter.profile }}" rel="noopener noreferrer" target="_blank" title="Náš účet na Twitteru" class="social-icon "><i class="ico--twitter"></i></a>
4
+ {% endif %}
5
+
6
+ {% if site.youtube.channel %}
7
+ <a href="https://www.youtube.com/channel/{{ site.youtube.channel }}" rel="noopener noreferrer" target="_blank" title="Náš účet na Youtube" class="social-icon "><i class="ico--youtube"></i></a>
8
+ {% endif %}
9
+
10
+ <a href="{{'/feed.xml' | relative_url }}" rel="noopener noreferrer" target="_blank" title="Články tohoto webu v RSS" class="social-icon "><i class="ico--feed"></i></a>
11
+
12
+ {% if site.instagram.profilePage %}
13
+ <a href={{ site.instagram.profilePage }} rel="noopener noreferrer" target="_blank" title="Instagram - Česká pirátská strana" class="social-icon "><i class="ico--instagram"></i></a>
14
+ {% endif %}
15
+
16
+ {% if site.flicker.profilePage %}
17
+ <a href={{ site.flicker.profilePage }} rel="noopener noreferrer" target="_blank" title="Flickr - Česká pirátská strana" class="social-icon "><i class="ico--flickr"></i></a>
18
+ {% endif %}
19
+
20
+ {% if site.organization.email %}
21
+ <a href="mailto:{{ site.organization.email }}" class="social-icon "><i class="ico--envelope"></i></a>
22
+ {% endif %}
23
+ </div>
@@ -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 %}
@@ -0,0 +1,14 @@
1
+ <ul class="social-media-list">
2
+ {%- if site.dribbble_username -%}<li><a href="https://dribbble.com/{{ site.dribbble_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#dribbble' | relative_url }}"></use></svg> <span class="username">{{ site.dribbble_username| escape }}</span></a></li>{%- endif -%}
3
+ {%- if site.facebook_username -%}<li><a href="https://www.facebook.com/{{ site.facebook_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#facebook' | relative_url }}"></use></svg> <span class="username">{{ site.facebook_username| escape }}</span></a></li>{%- endif -%}
4
+ {%- if site.flickr_username -%}<li><a href="https://www.flickr.com/photos/{{ site.flickr_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#flickr' | relative_url }}"></use></svg> <span class="username">{{ site.flickr_username| escape }}</span></a></li>{%- endif -%}
5
+ {%- if site.github_username -%}<li><a href="https://github.com/{{ site.github_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg> <span class="username">{{ site.github_username| escape }}</span></a></li>{%- endif -%}
6
+ {%- if site.instagram_username -%}<li><a href="https://instagram.com/{{ site.instagram_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#instagram' | relative_url }}"></use></svg> <span class="username">{{ site.instagram_username| escape }}</span></a></li>{%- endif -%}
7
+ {%- if site.linkedin_username -%}<li><a href="https://www.linkedin.com/in/{{ site.linkedin_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#linkedin' | relative_url }}"></use></svg> <span class="username">{{ site.linkedin_username| escape }}</span></a></li>{%- endif -%}
8
+ {%- if site.pinterest_username -%}<li><a href="https://www.pinterest.com/{{ site.pinterest_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#pinterest' | relative_url }}"></use></svg> <span class="username">{{ site.pinterest_username| escape }}</span></a></li>{%- endif -%}
9
+ {%- for mst in site.mastodon -%}{%- if mst.username and mst.instance -%}<li><a href="https://{{ mst.instance| cgi_escape | escape}}/@{{mst.username}}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#mastodon' | relative_url }}"></use></svg> <span class="username">{{ mst.username|escape }}</span></a></li>{%- endif -%}{%- endfor -%}
10
+ {%- if site.twitter_username -%}<li><a href="https://www.twitter.com/{{ site.twitter_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#twitter' | relative_url }}"></use></svg> <span class="username">{{ site.twitter_username| escape }}</span></a></li>{%- endif -%}
11
+ {%- if site.youtube_username -%}<li><a href="https://youtube.com/{{ site.youtube_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg> <span class="username">{{ site.youtube_username| escape }}</span></a></li>{%- endif -%}
12
+ {%- if site.googleplus_username -%}<li><a href="https://plus.google.com/{{ site.googleplus_username| escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#googleplus' | relative_url }}"></use></svg> <span class="username">{{ site.googleplus_username| escape }}</span></a></li>{%- endif -%}
13
+ {%- if site.rss -%}<li><a href="{{ 'feed.xml' | relative_url }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg> <span>{{ site.rss | escape }}</span></a></li>{%- endif -%}
14
+ </ul>
@@ -0,0 +1,25 @@
1
+ <section class="o-section">
2
+ {% if include.title %}
3
+ <div class="o-secion-header o-section-header--bordered">
4
+ <h3 class="o-section__heading t-h4-super">{{ include.title}}</h3>
5
+ </div>
6
+ {% endif %}
7
+
8
+ <table class="u-1margin--top">
9
+ <thead>
10
+ {% for column in include.table[0] %}
11
+ <th>{{ column[0] }}</th>
12
+ {% endfor %}
13
+ </thead>
14
+ <tbody>
15
+ {% for row in include.table %}
16
+ <tr>
17
+ {% for cell in row %}
18
+ <td>{{ cell[1] }}</td>
19
+ {% endfor %}
20
+ </tr>
21
+ {% endfor %}
22
+ </tbody>
23
+ </table>
24
+
25
+ </section>
@@ -0,0 +1,3 @@
1
+ {% capture width %}{% if include.width %}{{ include.width }}{% else %}740{% endif %}{% endcapture %}
2
+ {% capture height %}{% if include.height %}{{ include.height }}{% else %}416{% endif %}{% endcapture %}
3
+ <iframe width="{{ width }}" height="{{ height }}" src="https://www.youtube.com/embed/{{ include.id }}" frameborder="0" allowfullscreen></iframe>
@@ -0,0 +1,24 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="container container--default py-8 lg:py-24">
6
+ {% if page.article-boxes %}
7
+ {% include article-box/list.html article-boxes=page.article-boxes class="mb-8 lg:mb-16" %}
8
+ {% endif %}
9
+
10
+ <main>
11
+ <div class="{% unless page.nocols or layout.nocols %}lg:flex lg:lg:space-x-8 xl:space-x-16{% endunless %}">
12
+ <article class="{% unless page.nocols or layout.nocols %}lg:w-3/5 xl:w-2/3{% endunless %}" itemtype="http://schema.org/BlogPosting" itemscope="">
13
+ <link itemprop="mainEntityOfPage" href="{{ page.url }}">
14
+ {{ content }}
15
+ </article>
16
+
17
+ {% unless page.rbar == empty or page.rbar == blank or page.rbar == nil %}
18
+ <div class="pt-8 lg:pt-0 {% unless page.nocols or layout.nocols %}lg:w-2/5 xl:w-1/3{% endunless %}">
19
+ {% include right-bar/rbar.html %}
20
+ </div>
21
+ {% endunless %}
22
+ </div>
23
+ </main>
24
+ </div>
@@ -0,0 +1,10 @@
1
+ ---
2
+ ---
3
+
4
+ <!DOCTYPE html>
5
+ <html lang="cs" dir="ltr" itemtype="http://schema.org/WebPage" itemscope="">
6
+ {% include head.html %}
7
+ <body>
8
+ {{ content }}
9
+ </body>
10
+ </html>
@@ -0,0 +1,172 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% assign group = site.data.campaigns | where: "groupUid", page.campaignGroupUid | first %}
6
+ {% assign candidates = site.candidatelists | where: "uid", page.candidateListUid | first %}
7
+ {% assign programCategories = site.program | where: "campaignCategoryUid", page.campaignCategoryUid | sort:"order" %}
8
+
9
+ {% if page.img %}
10
+ {% if site.mediaStorage %}
11
+ {% capture imgPath %}https://a.pirati.cz/{{ site.mediaStorage }}/img/{{ page.img }}{% endcapture %}
12
+ {% else %}
13
+ {% capture imgPath %}{% asset '{{ page.img }}' @path %}{% endcapture %}
14
+ {% assign imgPath = imgPath | absolute_url %}
15
+ {% endif %}
16
+ {% endif %}
17
+
18
+
19
+ <div class="__js-root">
20
+ <ui-view-provider inline-template :initial="{kandidati: true, program: false}" :sync-location="true" location-param="pohled" v-slot="{ isCurrentView, showView }">
21
+ <main>
22
+ {% comment %} Support for customized elections header content. {% endcomment %}
23
+ {% if page.customizeHeader %}
24
+ {{ content }}
25
+ {% else %}
26
+ {% include elections-header.html img=page.img bgImg=page.heroBgImg subContent=content candidateListNumber=candidates.number %}
27
+ {% endif %}
28
+
29
+ <div class="container container--default pt-8 {% unless group.subLinks %}pb-8{% endunless %} lg:py-24">
30
+ {% if programCategories.size > 0 %}
31
+ <div class="text-center">
32
+ <div class="switch">
33
+ <a @click="showView('kandidati')" class="switch__item" :class="{'switch__item--active': isCurrentView('kandidati')}">Kandidáti</a>
34
+ <a @click="showView('program')" class="switch__item" :class="{'switch__item--active': isCurrentView('program')}">Program</a>
35
+ </div>
36
+ </div>
37
+
38
+ <template v-if="isCurrentView('program')">
39
+ <h1 class="head-alt-md text-center py-8 lg:pt-24 lg:pb-8">Volební program</h1>
40
+
41
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
42
+ {% for category in programCategories %}
43
+ <article class="card card--hoveractive">
44
+ {% if category.img %}
45
+ {% if site.mediaStorage %}
46
+ {% capture img_path %}https://a.pirati.cz/resize/400x225/{{ site.mediaStorage }}/img/{{ category.img }}{% endcapture %}
47
+ {% else %}
48
+ {% if category.img contains ".svg" %}
49
+ {% capture img_path %}{{ category.img | prepend: "/assets/img/" | absolute_url }}{% endcapture %}
50
+ {% else %}
51
+ {% capture img_path %}{% asset '{{ category.img }}' magick:resize="400x225^" magick:gravity='center' magick:crop='400x225+0+0' @path %}{% endcapture %}
52
+ {% endif %}
53
+ {% endif %}
54
+ <a href="{{ category.url | relative_url }}">
55
+ <img class="w-full h-48 object-cover" src="{{ img_path }}" alt="{{ category.title }}" />
56
+ </a>
57
+ {% endif %}
58
+ <div class="card__body p-4">
59
+ <h1 class="card-headline mb-2">
60
+ <a href="{{ category.url | relative_url }}">{{ category.title }}</a>
61
+ </h1>
62
+ <p class="card-body-text">{{ category.perex }}</p>
63
+ </div>
64
+ </article>
65
+ {% endfor %}
66
+ </div>
67
+ </template>
68
+ {% endif %}
69
+
70
+ <template v-if="isCurrentView('kandidati')">
71
+ <h1 class="head-alt-md text-center py-8 lg:pt-24 lg:pb-8">{{ candidates.title }}</h1>
72
+
73
+ {% assign leaderCandidate = site.people | where: "uid", candidates.leader.uid | first %}
74
+
75
+ <div class="candidate-card-list grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
76
+ {% 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 %}
77
+
78
+ {% if candidates.head.size %}
79
+ {% for candidate in candidates.head %}
80
+ {% assign candidatePage = site.people | where: "uid", candidate.uid | first %}
81
+ {% assign candidateRank = forloop.index | plus: 1 %}
82
+ {% assign remainder = forloop.index | modulo: 4 %}
83
+
84
+ {% if remainder == 0 %}
85
+ {% capture classes %}candidate-card__wrapper sm:candidate-card-list__item-wrapper md:candidate-card-list__item-wrapper--border{% endcapture %}
86
+ {% elsif remainder == 1 %}
87
+ {% capture classes %}candidate-card__wrapper sm:candidate-card-list__item-wrapper sm:candidate-card-list__item-wrapper--noborder md:candidate-card-list__item-wrapper--border{% endcapture %}
88
+ {% elsif remainder == 2 %}
89
+ {% capture classes %}candidate-card__wrapper sm:candidate-card-list__item-wrapper md:candidate-card-list__item-wrapper--noborder lg:candidate-card-list__item-wrapper--border{% endcapture %}
90
+ {% else %}
91
+ {% capture classes %}candidate-card__wrapper sm:candidate-card-list__item-wrapper sm:candidate-card-list__item-wrapper--noborder md:candidate-card-list__item-wrapper--border lg:candidate-card-list__item-wrapper--noborder{% endcapture %}
92
+ {% endif %}
93
+
94
+ {% include candidate-badge.html candidate=candidate candidatePage=candidatePage leader=false rank=candidateRank wrapperClass=classes hideSocialProfiles=page.hideCandidateSocialProfiles %}
95
+ {% endfor %}
96
+ {% endif %}
97
+ </div>
98
+
99
+ <ui-view-provider :initial="{fullCandidateTable: false}" v-slot="{ isCurrentView, setView }">
100
+ {% if candidates.tail.size > 0 %}
101
+ <div class="candidate-table pt-8 container-padding--zero lg:container-padding--auto" :class="{'candidate-table--fadeout': !isCurrentView('fullCandidateTable')}">
102
+ {% for candidate in candidates.tail %}
103
+
104
+ {% comment %}Just a part of candidate table will be displayed intially{% endcomment %}
105
+ {% if forloop.index == 10 %}
106
+ {% assign partialTable = true %}
107
+ <template v-if="isCurrentView('fullCandidateTable')">
108
+ {% endif %}
109
+
110
+ {% assign candidateRank = forloop.index | plus: 1 | plus: candidates.head.size %}
111
+
112
+ {% if candidate.uid %}
113
+ {% assign candidatePage = site.people | where: "uid", candidate.uid | first %}
114
+ {% if candidatePage.img %}
115
+ {% if site.mediaStorage %}
116
+ {% capture img %}https://a.pirati.cz/resize/225x225/{{ site.mediaStorage }}/img/{{ candidatePage.img }}{% endcapture %}
117
+ {%- else -%}
118
+ {% capture img %}{% asset '{{ candidatePage.img }}' magick:resize='225x225^' magick:gravity='center' magick:crop='225x225+0+0' @path %}{% endcapture %}
119
+ {%- endif -%}
120
+ {% endif %}
121
+ {% else %}
122
+ {% assign candidatePage = false %}
123
+ {% capture img %}https://a.pirati.cz/common/img/people/unknown-pirate.svg{% endcapture %}
124
+ {% endif %}
125
+
126
+ {% capture img_alt %}{% include people/fullname.html person=candidatePage plain=true %}{% endcapture %}
127
+
128
+ <{% if candidatePage %}a href="{{ candidatePage.url }}"{% else %}div{% endif %} class="candidate-table-row">
129
+ <div class="candidate-table-row__position head-allcaps-heavy-2xs text-right">{{ candidateRank }}</div>
130
+ {% include avatar.html class="avatar--sm candidate-table-row__avatar" src=img alt=candidate.name %}
131
+ <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>
132
+ <div class="candidate-table-row__bio font-condensed">{% 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>
133
+ {% if candidate.partyUid %}
134
+ <div class="candidate-table-row__affiliation">
135
+ {% include party.html uid=candidate.partyUid %}
136
+ </div>
137
+ {% endif %}
138
+ </{% if candidatePage %}a{% else %}div{% endif %}>
139
+
140
+ {% if forloop.last and partialTable %}</template>{% endif %}
141
+
142
+ {% endfor %}
143
+ </div>
144
+ {% endif %}
145
+
146
+ {% if partialTable %}
147
+ <div class="text-center pt-8" v-if="!isCurrentView('fullCandidateTable')">
148
+ <button class="btn btn--icon text-xl btn--black btn--hoveractive" @click="setView('fullCandidateTable', true)">
149
+ <div class="btn__body-wrap">
150
+ <div class="btn__body ">Zobrazit vše</div>
151
+ <div class="btn__icon "><i class="ico--chevron-right"></i></div>
152
+ </div>
153
+ </button>
154
+ </div>
155
+ {% endif %}
156
+
157
+ </ui-view-provider>
158
+ </template>
159
+
160
+ {% if group.subLinks %}
161
+ <div class="flex flex-col pt-8 lg:pt-24 lg:flex-row lg:space-x-8">
162
+ {% for subLink in group.subLinks %}
163
+ {% capture classes %}{{ subLink.classes }} lg:w-full container-padding--zero lg:container-padding--auto{% endcapture %}
164
+ {% include buttons/super.html href=subLink.href class=classes cta=subLink.title icon=subLink.icon %}
165
+ {% endfor %}
166
+ </div>
167
+ {% endif %}
168
+ </div>
169
+ </main>
170
+ </ui-view-provider>
171
+ </div>
172
+
@@ -0,0 +1,10 @@
1
+ ---
2
+ # Jekyll layout that compresses HTML
3
+ # v3.0.2
4
+ # http://jch.penibelst.de/
5
+ # © 2014–2015 Anatol Broder
6
+ # MIT License
7
+ ---
8
+
9
+ {% capture _LINE_FEED %}
10
+ {% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}