jekyll-theme-pirati 8.2.0 → 8.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99d0d8d45fbd8841054a6275e8ba413ebb8e8ee736b64e0356c76994da5af6d2
4
- data.tar.gz: fe961a52508729eebde723111e1dda0fa42a29e8e7f0d5927d22123f4ae9942e
3
+ metadata.gz: dec1a30972ab1d363153ffdf238e68a4f922b77b6d07281371414e734c311fc6
4
+ data.tar.gz: 10613a24ce98a9c020ef365348a66dfda701ada666b51164d428916744c0a58e
5
5
  SHA512:
6
- metadata.gz: d7c3df5fc3dc2cdb2d519de330c27c82da69e40b4e1edf957679677692d91cfdea3f2334bef59849efd555c3101f52f485d400e19d5a2a82cb7508757bf2c7ca
7
- data.tar.gz: fd0884cbef6d3d8f5cadf7607e4afc8b40dd16a768ddac32e2b93a6138c9dadd3ccaed7c16e6f1ae3ca2fd92b8c0aef5a14e758d3109cd7b634e893b6fde0c77
6
+ metadata.gz: 5f41cd2ceb805a9b3714514315b5bf0c12a01282f17475d937e78f9827055051c229a0195683f04639173d3815841650b7b6152147f2e21c85170b3e7ebd44a7
7
+ data.tar.gz: baa60d9abb4c239cfd5c315eb6ca3884acec9ef29fbd993a1fa7dbf7b172c5b3e13b2757519f3a8240f5df2c833a0630f5d83d53daf230976c0447e9abd2595f
data/README.md CHANGED
@@ -106,6 +106,12 @@ To use it fully, provide `heroImg` in the person markdown file.
106
106
 
107
107
  These will show as the [emphasized variant in black](https://styleguide.pir-test.eu/latest/?p=viewall-molecules-article-card).
108
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
+
109
115
 
110
116
  ### Backwards incompatible changes
111
117
 
@@ -22,11 +22,11 @@
22
22
  <a href="{{ include.candidatePage.url|relative_url }}">{% include people/fullname.html person=include.candidatePage %}</a>
23
23
  </h1>
24
24
  {% if include.candidatePage.mail %}
25
- <a href="mailto:{{ include.candidatePage.mail }}" class="block font-light mb-4">{{ include.candidatePage.mail }}</a>
25
+ <a href="mailto:{{ include.candidatePage.mail }}" class="block candidate-card__bio-item mb-4">{{ include.candidatePage.mail }}</a>
26
26
  {% endif %}
27
- <h2 class="head-allcaps-4xs md:head-allcaps-3xs">{{ include.candidate.profession }}</h2>
27
+ <h2 class=" candidate-card__bio-item">{{ include.candidate.profession }}</h2>
28
28
  {% if include.candidate.city %}
29
- <h2 class="head-allcaps-4xs md:head-allcaps-3xs">
29
+ <h2 class="head-allcaps-4xs mt-4">
30
30
  {{ include.candidate.city }}
31
31
  </h2>
32
32
  {% endif %}
@@ -0,0 +1,21 @@
1
+ {% if include.bgImg %}
2
+ {% if site.mediaStorage %}
3
+ {% capture imgBgPath %}https://a.pirati.cz/{{ site.mediaStorage }}/img/{{ include.bgImg }}{% endcapture %}
4
+ {% else %}
5
+ {% capture imgBgPath %}{% asset '{{ include.bgImg }}' @path %}{% endcapture %}
6
+ {% assign imgBgPath = imgBgPath | absolute_url %}
7
+ {% endif %}
8
+ {% endif %}
9
+
10
+ {% if include.mainContent %}
11
+ {% capture mainContent %}{{ include.mainContent }}{% endcapture %}
12
+ {% else %}
13
+ {% capture mainContent %}
14
+ {% if include.candidateListNumber %}
15
+ <div class="flag bg-violet-400 text-white head-alt-base mb-6">Volte č. {{ include.candidateListNumber }}</div>
16
+ {% endif %}
17
+ <h1 class="head-alt-md md:head-alt-xl">{{ page.title }}</h1>
18
+ {% endcapture %}
19
+ {% endif %}
20
+
21
+ {% include hero/advanced.html img=include.img bgImg=imgBgPath mainContent=mainContent subContent=include.subContent contentClass="content-block" imgClass="h-32 lg:h-80 lg:m-auto hidden md:block" %}
@@ -33,7 +33,7 @@
33
33
  {% endif %}
34
34
  </div>
35
35
  <div class="flex flex-col md:flex-row lg:flex-col lg:items-end space-y-2 md:space-y-0 md:space-x-2 lg:space-x-0 lg:space-y-2">
36
- <a href="https://dary.pirati.cz" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--cyan-200 btn--hoveractive text-lg btn--fullwidth sm:btn--autowidth">
36
+ <a href="{{ site.organization.donateLink | default: 'https://dary.pirati.cz' }}" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--cyan-200 btn--hoveractive text-lg btn--fullwidth sm:btn--autowidth">
37
37
  <div class="btn__body-wrap">
38
38
  <div class="btn__body ">Přispěj</div>
39
39
  <div class="btn__icon ">
@@ -42,7 +42,7 @@
42
42
  </div>
43
43
  </a>
44
44
 
45
- <a href="https://nalodeni.pirati.cz" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--blue-300 btn--hoveractive text-lg btn--fullwidth sm:btn--autowidth">
45
+ <a href="{{ site.organization.onboardingLink | default: 'https://nalodeni.pirati.cz' }}" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--blue-300 btn--hoveractive text-lg btn--fullwidth sm:btn--autowidth">
46
46
  <div class="btn__body-wrap">
47
47
  <div class="btn__body ">Naloď se</div>
48
48
  <div class="btn__icon ">
@@ -44,7 +44,7 @@
44
44
  {% endif %}
45
45
  </div>
46
46
  <div v-if="show || isLgScreenSize" class="navbar__actions navbar__section navbar__section--expandable container-padding--zero lg:container-padding--auto self-start flex flex-col sm:flex-row lg:flex-col sm:space-x-4 space-y-2 sm:space-y-0 lg:space-y-2 xl:flex-row xl:space-x-2 xl:space-y-0">
47
- <a href="https://dary.pirati.cz" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--cyan-200 btn--hoveractive btn--condensed btn--fullwidth md:btn--autowidth lg:text-sm xl:text-base">
47
+ <a href="{{ site.organization.donateLink | default: 'https://dary.pirati.cz' }}" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--cyan-200 btn--hoveractive btn--condensed btn--fullwidth md:btn--autowidth lg:text-sm xl:text-base">
48
48
  <div class="btn__body-wrap">
49
49
  <div class="btn__body ">Přispěj</div>
50
50
  <div class="btn__icon ">
@@ -52,7 +52,7 @@
52
52
  </div>
53
53
  </div>
54
54
  </a>
55
- <a href="https://nalodeni.pirati.cz" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--blue-300 btn--hoveractive btn--condensed btn--fullwidth md:btn--autowidth lg:text-sm xl:text-base">
55
+ <a href="{{ site.organization.onboardingLink | default: 'https://nalodeni.pirati.cz' }}" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--blue-300 btn--hoveractive btn--condensed btn--fullwidth md:btn--autowidth lg:text-sm xl:text-base">
56
56
  <div class="btn__body-wrap">
57
57
  <div class="btn__body ">Naloď se</div>
58
58
  <div class="btn__icon ">
@@ -42,7 +42,7 @@
42
42
  </script>
43
43
  {% endif %}
44
44
 
45
- {% if site.piwik.loadSDK %}
45
+ {% if site.matomo.loadSDK %}
46
46
  <!-- Matomo -->
47
47
  <script type="text/javascript">
48
48
  var _paq = window._paq || [];
@@ -52,7 +52,7 @@
52
52
  (function() {
53
53
  var u="//matomo.pirati.cz/";
54
54
  _paq.push(['setTrackerUrl', u+'matomo.php']);
55
- _paq.push(['setSiteId', '110']);
55
+ _paq.push(['setSiteId', '{{ site.matomo.siteId }}']);
56
56
  var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
57
57
  g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
58
58
  })();
@@ -15,33 +15,23 @@ layout: default
15
15
  {% endif %}
16
16
  {% endif %}
17
17
 
18
- {% if page.heroBgImg %}
19
- {% if site.mediaStorage %}
20
- {% capture imgBgPath %}https://a.pirati.cz/{{ site.mediaStorage }}/img/{{ page.heroBgImg }}{% endcapture %}
21
- {% else %}
22
- {% capture imgBgPath %}{% asset '{{ page.heroBgImg }}' @path %}{% endcapture %}
23
- {% assign imgBgPath = imgBgPath | absolute_url %}
24
- {% endif %}
25
- {% endif %}
26
18
 
27
19
  <div class="__js-root">
28
- <ui-view-provider inline-template :initial="{candidates: true, program: false}" v-slot="{ isCurrentView, toggleView }">
20
+ <ui-view-provider inline-template :initial="{kandidati: true, program: false}" :sync-location="true" location-param="pohled" v-slot="{ isCurrentView, showView }">
29
21
  <main>
30
- {% capture mainContent %}
31
- {% if candidates.number %}
32
- <div class="flag bg-violet-400 text-white head-alt-base mb-6">Volte č. {{ candidates.number }}</div>
33
- {% endif %}
34
- <h1 class="head-alt-md md:head-alt-xl">{{ page.title }}</h1>
35
- {% endcapture %}
36
- {% include hero/advanced.html img=page.img bgImg=imgBgPath mainContent=mainContent subContent=content contentClass="content-block" imgClass="h-32 lg:h-80 lg:m-auto hidden md:block" %}
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 %}
37
28
 
38
29
  <div class="container container--default pt-8 {% unless group.subLinks %}pb-8{% endunless %} lg:py-24">
39
-
40
30
  {% if programCategories.size > 0 %}
41
31
  <div class="text-center">
42
32
  <div class="switch">
43
- <a @click="toggleView('candidates')" class="switch__item" :class="{'switch__item--active': isCurrentView('candidates')}">Kandidáti</a>
44
- <a @click="toggleView('program')" class="switch__item" :class="{'switch__item--active': isCurrentView('program')}">Program</a>
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>
45
35
  </div>
46
36
  </div>
47
37
 
@@ -77,7 +67,7 @@ layout: default
77
67
  </template>
78
68
  {% endif %}
79
69
 
80
- <template v-if="isCurrentView('candidates')">
70
+ <template v-if="isCurrentView('kandidati')">
81
71
  <h1 class="head-alt-md text-center py-8 lg:pt-24 lg:pb-8">{{ candidates.title }}</h1>
82
72
 
83
73
  {% assign leaderCandidate = site.people | where: "uid", candidates.leader.uid | first %}
@@ -101,8 +91,7 @@ layout: default
101
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 %}
102
92
  {% endif %}
103
93
 
104
- {% include candidate-badge.html candidate=candidate candidatePage=candidatePage leader=false rank=candidateRank wrapperClass=classes %}
105
-
94
+ {% include candidate-badge.html candidate=candidate candidatePage=candidatePage leader=false rank=candidateRank wrapperClass=classes hideSocialProfiles=page.hideCandidateSocialProfiles %}
106
95
  {% endfor %}
107
96
  {% endif %}
108
97
  </div>
@@ -140,7 +129,7 @@ layout: default
140
129
  <div class="candidate-table-row__position head-allcaps-heavy-2xs text-right">{{ candidateRank }}</div>
141
130
  {% include avatar.html class="avatar--sm candidate-table-row__avatar" src=img alt=candidate.name %}
142
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>
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>
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>
144
133
  {% if candidate.partyUid %}
145
134
  <div class="candidate-table-row__affiliation">
146
135
  {% include party.html uid=candidate.partyUid %}
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-pirati
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.2.0
4
+ version: 8.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jitka Novotná
8
8
  - Filip Vařecha
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-07-18 00:00:00.000000000 Z
12
+ date: 2020-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -53,7 +53,7 @@ dependencies:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '10.0'
56
- description:
56
+ description:
57
57
  email:
58
58
  - jitka@ucw.cz
59
59
  - filip.varecha@pirati.cz
@@ -87,6 +87,7 @@ files:
87
87
  - _includes/contacts/summary-table.html
88
88
  - _includes/countdown.html
89
89
  - _includes/disqus_comments.html
90
+ - _includes/elections-header.html
90
91
  - _includes/footer.html
91
92
  - _includes/google-analytics.html
92
93
  - _includes/head-custom.html
@@ -302,7 +303,7 @@ homepage: https://github.com/pirati-web/jekyll-theme-pirati#readme
302
303
  licenses:
303
304
  - MIT
304
305
  metadata: {}
305
- post_install_message:
306
+ post_install_message:
306
307
  rdoc_options: []
307
308
  require_paths:
308
309
  - lib
@@ -317,9 +318,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
317
318
  - !ruby/object:Gem::Version
318
319
  version: '0'
319
320
  requirements: []
320
- rubyforge_project:
321
+ rubyforge_project:
321
322
  rubygems_version: 2.7.6
322
- signing_key:
323
+ signing_key:
323
324
  specification_version: 4
324
325
  summary: Basic theme for Czech pirate party
325
326
  test_files: []