jekyll-theme-pirati 8.0.0 → 8.3.0

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: 5a5801710828048e585dd7086e5d3d271400425d6c16c05ac12a88b65c8e2bf5
4
- data.tar.gz: 2a3ba90e59f55be5ca3e15ce2f44ae27ed28598adca5bada793e1d25d0a777a8
3
+ metadata.gz: 3c32e07b4dd38c81020860c70b1375006019adf5a8f396c98433ef81f2e1a1b7
4
+ data.tar.gz: 5fa295a29f5f7c77e9a853149c06c3cb0356dc124d42eab87e6f38ea38e0d18e
5
5
  SHA512:
6
- metadata.gz: fb5467c9e14bf052124b728ab5b935b62015326aeeefa3fa72bf8da9978cb0e960e8126b8659a75a150d54eb896920e96a186c12a8675d4c28ffaef491c23ccc
7
- data.tar.gz: e1526060d20b7ac0502318351229b2c85e8a6b8d8179c296583c3653ef6b4eb92cf83b1071901785af147cb0c2ea5738c59ff09bb25ae84b9234e0cf481fc184
6
+ metadata.gz: 3eb4832cd877487a241168c482fc8e16bdd8eeb7c237a6293eb8dd74105ff2a9d82b650a02e2b5a51b52a86475a60b223812b534b65e7b8184215ed0ee7fc463
7
+ data.tar.gz: 511c35ad6f4cbab814375efe11d05c66cec390e36b2df021d8709105e07a24bea04173fa4e24762cf74899f17987b580792c9c95bda68b6cb486ddf0d6a6d4a0
@@ -22,12 +22,19 @@
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
+ {% endif %}
27
+ <h2 class=" candidate-card__bio-item">{{ include.candidate.profession }}</h2>
28
+ {% if include.candidate.city %}
29
+ <h2 class="head-allcaps-4xs mt-4">
30
+ {{ include.candidate.city }}
31
+ </h2>
26
32
  {% endif %}
27
- <h2 class="head-allcaps-4xs md:head-allcaps-3xs">{{ include.candidate.profession }}</h2>
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,7 +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
- {% comment %} {{> molecules-basic-social-icon-group }} {% endcomment %}
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 %}
41
54
  </div>
42
55
  </div>
43
56
  </div>
@@ -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 ">
@@ -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 %}
@@ -1,13 +1,6 @@
1
1
  <div class="flex flex-wrap item-center">
2
2
  <div class="social-icon-group space-x-0/5">
3
- {% if page.profiles.wikipedia %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.wikipedia }}"><i class="ico--wikipedia"></i></a>{% endif %}
4
- {% if page.profiles.facebook %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.facebook }}"><i class="ico--facebook"></i></a>{% endif %}
5
- {% if page.profiles.twitter %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.twitter }}"><i class="ico--twitter"></i></a>{% endif %}
6
- {% if page.profiles.github %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.github }}"><i class="ico--github"></i></a>{% endif %}
7
- {% if page.profiles.forum %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.forum }}"><i class="ico--bubbles"></i></a>{% endif %}
8
- {% if page.profiles.redmine %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.redmine }}"><i class="ico--tasks"></i></a>{% endif %}
9
- {% if page.profiles.web %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.web }}"><i class="ico--globe"></i></a>{% endif %}
10
- {% if page.profiles.blog %}<a class="social-icon" target="_blank" rel="noreferrer noopener" href="{{ page.profiles.blog }}"><i class="ico--write"></i></a>{% endif %}
3
+ {% include social-icons.html profiles=page.profiles %}
11
4
  </div>
12
5
 
13
6
  {% if page.profiles.flickr %}
@@ -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 %}
@@ -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 %}
@@ -101,7 +101,7 @@ layout: default
101
101
  {% 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
102
  {% endif %}
103
103
 
104
- {% include candidate-badge.html candidate=candidate candidatePage=candidatePage leader=false rank=candidateRank wrapperClass=classes %}
104
+ {% include candidate-badge.html candidate=candidate candidatePage=candidatePage leader=false rank=candidateRank wrapperClass=classes hideSocialProfiles=page.hideCandidateSocialProfiles %}
105
105
 
106
106
  {% endfor %}
107
107
  {% endif %}
@@ -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 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
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,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.0.0
4
+ version: 8.3.0
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-12 00:00:00.000000000 Z
12
+ date: 2020-07-29 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
@@ -140,6 +140,7 @@ files:
140
140
  - _includes/right-bar/rbar_profiles.html
141
141
  - _includes/sharebox.html
142
142
  - _includes/social-icon-group.html
143
+ - _includes/social-icons.html
143
144
  - _includes/social.html
144
145
  - _includes/tables/zebra.html
145
146
  - _includes/youtube.html
@@ -301,7 +302,7 @@ homepage: https://github.com/pirati-web/jekyll-theme-pirati#readme
301
302
  licenses:
302
303
  - MIT
303
304
  metadata: {}
304
- post_install_message:
305
+ post_install_message:
305
306
  rdoc_options: []
306
307
  require_paths:
307
308
  - lib
@@ -316,9 +317,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
317
  - !ruby/object:Gem::Version
317
318
  version: '0'
318
319
  requirements: []
319
- rubyforge_project:
320
+ rubyforge_project:
320
321
  rubygems_version: 2.7.6
321
- signing_key:
322
+ signing_key:
322
323
  specification_version: 4
323
324
  summary: Basic theme for Czech pirate party
324
325
  test_files: []