jekyll-theme-pirati 8.1.0 → 8.2.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: 36af05f7dada0b1bd73b5d669832b2971d505be7f73ca6202142b1e53390f938
4
- data.tar.gz: a96935836900ec028757ee40ec6515c3e8bee10048508d4c42a83dda79649bc4
3
+ metadata.gz: 99d0d8d45fbd8841054a6275e8ba413ebb8e8ee736b64e0356c76994da5af6d2
4
+ data.tar.gz: fe961a52508729eebde723111e1dda0fa42a29e8e7f0d5927d22123f4ae9942e
5
5
  SHA512:
6
- metadata.gz: 3bd8dd3bf90e9285322d0f3d33df1f3594321abc08ef8fb97f5056d4637cfd8a9e7e6629b527eb3e0a82d1c3547c9c29100366cebc1d3a0499b84b2e989bbdfb
7
- data.tar.gz: 6552a452d352a5693fdfd988d69199fb7e64f30e350a33e488f9f53ac4b3c896d2b2c4e26f055aeff3bc49e39616788050d58ddb56eb7bc946cd9925b904a380
6
+ metadata.gz: d7c3df5fc3dc2cdb2d519de330c27c82da69e40b4e1edf957679677692d91cfdea3f2334bef59849efd555c3101f52f485d400e19d5a2a82cb7508757bf2c7ca
7
+ data.tar.gz: fd0884cbef6d3d8f5cadf7607e4afc8b40dd16a768ddac32e2b93a6138c9dadd3ccaed7c16e6f1ae3ca2fd92b8c0aef5a14e758d3109cd7b634e893b6fde0c77
@@ -25,9 +25,16 @@
25
25
  <a href="mailto:{{ include.candidatePage.mail }}" class="block font-light mb-4">{{ include.candidatePage.mail }}</a>
26
26
  {% endif %}
27
27
  <h2 class="head-allcaps-4xs md:head-allcaps-3xs">{{ include.candidate.profession }}</h2>
28
+ {% if include.candidate.city %}
29
+ <h2 class="head-allcaps-4xs md:head-allcaps-3xs">
30
+ {{ include.candidate.city }}
31
+ </h2>
32
+ {% endif %}
28
33
  </div>
29
34
  <div class="candidate-card__affiliation">
30
- {% if include.candidate.age %}<div>{{ include.candidate.age }} let</div>{% endif %}
35
+ {% if include.candidate.age %}
36
+ <div>{{ include.candidate.age }} let</div>
37
+ {% endif %}
31
38
 
32
39
  {% if include.candidate.partyUid %}
33
40
  {% include party.html uid=include.candidate.partyUid %}
@@ -37,11 +44,13 @@
37
44
  {% if include.candidate.description %}
38
45
  <p class="font-light text-sm leading-snug italic mb-4 hidden md:block">{{ include.candidate.description }}</p>
39
46
  {% endif %}
40
- {% if include.candidatePage %}
41
- <div class="social-icon-group space-x-2">
42
- {% include social-icons.html profiles=include.candidatePage.profiles %}
43
- </div>
44
- {% endif %}
47
+ {% unless include.hideSocialProfiles %}
48
+ {% if include.candidatePage %}
49
+ <div class="social-icon-group space-x-2">
50
+ {% include social-icons.html profiles=include.candidatePage.profiles %}
51
+ </div>
52
+ {% endif %}
53
+ {% endunless %}
45
54
  </div>
46
55
  </div>
47
56
  </div>
@@ -1,10 +1,12 @@
1
1
  {% capture label %}
2
2
  {% if include.label %}{{ include.label }}{% elsif include.item.name %}{{ include.item.name }}{% else %}{{ include.item.title }}{% endif %}
3
3
  {% endcapture %}
4
- {% if include.item.url contains 'http' %}
5
- {% assign url = include.item.url %}
6
- {% else %}
7
- {% assign url = include.item.url | relative_url %}
4
+ {% if include.item.url %}
5
+ {% if include.item.url contains 'http' %}
6
+ {% assign url = include.item.url %}
7
+ {% else %}
8
+ {% assign url = include.item.url | relative_url %}
9
+ {% endif %}
8
10
  {% endif %}
9
11
  {% capture avatarClass %}
10
12
  badge__avatar {% if include.avatarClass %}{{ include.avatarClass }}{% else %}avatar--sm{% endif %}
@@ -35,7 +37,11 @@
35
37
 
36
38
  <div class="badge__body">
37
39
  <h2 class="{% if include.headlineClass %}{{ include.headlineClass }}{% else %}head-heavy-2xs{% endif %} badge__title">
38
- <a href="{{ url }}" title="{{ label }}" class="content-block--nostyle">{{ label }}</a>
40
+ {% if url %}
41
+ <a href="{{ url }}" title="{{ label }}" class="content-block--nostyle">{{ label }}</a>
42
+ {% else %}
43
+ {{ label }}
44
+ {% endif %}
39
45
  </h2>
40
46
 
41
47
  {% unless include.showDescription == false %}
@@ -1,14 +1,16 @@
1
1
 
2
- <div class="content-block">
3
- <h2>Lidé</h2>
4
- </div>
2
+ <div class="hidden lg:block">
3
+ <div class="content-block">
4
+ <h2>Lidé</h2>
5
+ </div>
5
6
 
6
- <div class="space-y-4">
7
- {% assign persons = site.people | sample:3 %}
8
- {% for person in persons %}
9
- {% include people/profile-badge.html item=person style='card' showContactInfo=false %}
10
- {% endfor %}
11
- </div>
7
+ <div class="space-y-4">
8
+ {% assign persons = site.people | sample:3 %}
9
+ {% for person in persons %}
10
+ {% include people/profile-badge.html item=person style='card' showContactInfo=false %}
11
+ {% endfor %}
12
+ </div>
12
13
 
13
- {% capture href %}{% if peopleCol.root %}{{ peopleCol.root }}{% else %}{{ '/lide/' | relative_url }}{% endif %}{% endcapture %}
14
- {% include buttons/icon.html icon="ico--chevron-right" class="btn--violet-500 btn--fullwidth btn--hoveractive pt-4" cta="Poznejte celý náš tým" href=href %}
14
+ {% capture href %}{% if peopleCol.root %}{{ peopleCol.root }}{% else %}{{ '/lide/' | relative_url }}{% endif %}{% endcapture %}
15
+ {% include buttons/icon.html icon="ico--chevron-right" class="btn--violet-500 btn--fullwidth btn--hoveractive pt-4" cta="Poznejte celý náš tým" href=href %}
16
+ </div>
@@ -51,7 +51,7 @@
51
51
  <h2>Asistenti</h2>
52
52
  <div class="space-y-4 mt-4">
53
53
  {% for asistent in page.asistenti %}
54
- {% include people/profile-badge.html class="badge--condensed" item=asistent description=asistent.position %}
54
+ {% include people/profile-badge.html class="badge--condensed" item=asistent description=asistent.position hideAvatar=true %}
55
55
  {% endfor %}
56
56
  </div>
57
57
  {% endif %}
@@ -83,7 +83,7 @@ layout: default
83
83
  {% assign leaderCandidate = site.people | where: "uid", candidates.leader.uid | first %}
84
84
 
85
85
  <div class="candidate-card-list grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
86
- {% include candidate-badge.html candidate=candidates.leader candidatePage=leaderCandidate rank=1 wrapperClass="candidate-card__wrapper sm:candidate-card-list__item-wrapper md:candidate-card-list__item-wrapper--border" %}
86
+ {% include candidate-badge.html candidate=candidates.leader candidatePage=leaderCandidate rank=1 wrapperClass="candidate-card__wrapper sm:candidate-card-list__item-wrapper md:candidate-card-list__item-wrapper--border" hideSocialProfiles=page.hideCandidateSocialProfiles %}
87
87
 
88
88
  {% if candidates.head.size %}
89
89
  {% for candidate in candidates.head %}
@@ -139,8 +139,8 @@ layout: default
139
139
  <{% if candidatePage %}a href="{{ candidatePage.url }}"{% else %}div{% endif %} class="candidate-table-row">
140
140
  <div class="candidate-table-row__position head-allcaps-heavy-2xs text-right">{{ candidateRank }}</div>
141
141
  {% include avatar.html class="avatar--sm candidate-table-row__avatar" src=img alt=candidate.name %}
142
- <div class="candidate-table-row__name head-heavy-2xs font-bold">{% if candidatePage %}{{ candidatePage.name }}{% else %}{{ candidate.name }}{% endif %}</div>
143
- <div class="candidate-table-row__bio head-allcaps-3xs">{% if candidate.age %}{{ candidate.age }} let{% endif %}{% if candidate.age and candidate.profession %}, {{ candidate.profession }}{% endif %}</div>
142
+ <div class="candidate-table-row__name head-heavy-2xs font-bold">{% if candidatePage %}{% include people/fullname.html person=candidatePage plain=true %}{% else %}{{ candidate.name }}{% endif %}</div>
143
+ <div class="candidate-table-row__bio head-allcaps-3xs">{% if candidate.age %}{{ candidate.age }} let{% endif %}{% if candidate.profession %}{% if candidate.age %}, {% endif %}{{ candidate.profession }}{% endif %}{% if candidate.city %}{% if candidate.profession or candidate.age %}, {% endif %}{{ candidate.city }}{% endif %}</div>
144
144
  {% if candidate.partyUid %}
145
145
  <div class="candidate-table-row__affiliation">
146
146
  {% include party.html uid=candidate.partyUid %}
@@ -24,7 +24,7 @@ layout: default
24
24
  include hero/simple.html
25
25
  headline=personName
26
26
  description=page.profession
27
- headlineClass="text-center lg:text-left mx-auto"
27
+ headlineClass="text-center lg:text-left mx-auto lg:mx-0"
28
28
  descriptionClass="max-w-xl mx-auto text-center lg:text-left"
29
29
  heroSpacing="pt-16 pb-24 lg:pt-32 pb-24"
30
30
  class="candidate-detail__hero"
@@ -41,8 +41,6 @@ layout: default
41
41
  </section>
42
42
  <section class="lg:w-2/5 xl:w-1/3 pt-8 lg:pt-0 order-first lg:order-last candidate-detail__sidebar">
43
43
  {% include right-bar/rbar.html %}
44
- <!-- Mobile divider -->
45
- <hr class="block lg:hidden" />
46
44
  </section>
47
45
  </div>
48
46
  </main>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-pirati
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.0
4
+ version: 8.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jitka Novotná
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-07-13 00:00:00.000000000 Z
12
+ date: 2020-07-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll