jekyll-theme-pirati 8.3.0 → 8.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c32e07b4dd38c81020860c70b1375006019adf5a8f396c98433ef81f2e1a1b7
4
- data.tar.gz: 5fa295a29f5f7c77e9a853149c06c3cb0356dc124d42eab87e6f38ea38e0d18e
3
+ metadata.gz: 2dbfde991de21ef4a5db73761ddb4b85fd4c69d497e47fe959fdd8263d87814d
4
+ data.tar.gz: d381268cc7b5b24169e514528dee49421e88ee41addfa558c3a6ded0e6b06a5b
5
5
  SHA512:
6
- metadata.gz: 3eb4832cd877487a241168c482fc8e16bdd8eeb7c237a6293eb8dd74105ff2a9d82b650a02e2b5a51b52a86475a60b223812b534b65e7b8184215ed0ee7fc463
7
- data.tar.gz: 511c35ad6f4cbab814375efe11d05c66cec390e36b2df021d8709105e07a24bea04173fa4e24762cf74899f17987b580792c9c95bda68b6cb486ddf0d6a6d4a0
6
+ metadata.gz: 060feea377f69bb7c95d613cc2b7ff4fafc2d5da0dc540db8cd0facebf85ede0edec0b5b7bfeaa611c0763d4d5043791f642716cda969662e3c54cec74a3f2ef
7
+ data.tar.gz: 466bb391e754273f024fbe8e2c247bb113dae35f8947f28c49e7caa3453dbe29a72de6f4637bc4e71c797f645a854b1cf973be3a55017c225f2f5d8be23ebb65
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
 
@@ -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" %}
@@ -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 %}
@@ -102,7 +92,6 @@ layout: default
102
92
  {% endif %}
103
93
 
104
94
  {% include candidate-badge.html candidate=candidate candidatePage=candidatePage leader=false rank=candidateRank wrapperClass=classes hideSocialProfiles=page.hideCandidateSocialProfiles %}
105
-
106
95
  {% endfor %}
107
96
  {% endif %}
108
97
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-pirati
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.3.0
4
+ version: 8.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jitka Novotná
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-07-29 00:00:00.000000000 Z
12
+ date: 2020-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -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