jekyll-theme-pirati 8.0.0.pre.alpha1 → 8.0.0.pre.alpha6

This diff has not been reviewed by any users.
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: ba98699afb11d0340d3bf357a989e07048fecc24f01112f94f8fe03a91c66ce3
4
- data.tar.gz: d9348eed384c2d07b1b615877a853f81c4ff868a4eaeccb7613ae3bab155b041
3
+ metadata.gz: 8cab2e7fbdf068f4cbde5b0af8427faa3bb11a5b8b4aaf1e44cad60c43c5a6f6
4
+ data.tar.gz: 7185bd2519205901ae1a7ca37e8c178dafb7b70e3bec1eb714b85e84a4c64867
5
5
  SHA512:
6
- metadata.gz: 474266efad7b4bc511fb22c2c794f2b1226fb18a730b854e9757b9e2357e0f8a00defd8fd7edfd0ba94a85e3328e4df9e4e395267848b491d8ecf4359bcc16ee
7
- data.tar.gz: be5283d79dbc92b3413e398309c6d86d7cdfdc608727dacf6145ec7308b815134951138965ed74c82199cada5d69133f3c849dcf99429e3c3b338313c87fe952
6
+ metadata.gz: b68ba785b54c18f3f7f6935d665fb3d1e16e32643270d9bfcc72835b64fd6e6bf6f32242e3df089f29650bcd98f8c673b1626f8e83aaf9c05159926ba7a3a869
7
+ data.tar.gz: ee376b8d8f8a189c46105663e02eccfaa74c2924ec90df5a3522a952ab47a243cc6fc0bedca1c8311fba7a79444e83431a5909fdabce1026e2c403a64ab190e7
@@ -2,7 +2,7 @@ top:
2
2
  - link: "pirati.cz"
3
3
  url: "https://www.pirati.cz"
4
4
  icon: "ico--home"
5
- - link: "wiki.pirati.cz"
5
+ - link: "piratskyobchod.cz"
6
6
  url: "https://piratskyobchod.cz"
7
7
  icon: "ico--cart"
8
8
  - link: "Pirátské listy"
@@ -15,7 +15,18 @@
15
15
 
16
16
  <div class="article-card-cover__details">
17
17
  <div class="article-card-sharing">
18
- {% comment %} {{> molecules-small-colored-social-icon-group }} {% endcomment %}
18
+ <div class="social-icon-group">
19
+ <a
20
+ href="https://www.facebook.com/sharer/sharer.php?u={{ include.article.url | absolute_url }}"
21
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
22
+ class="social-icon social-icon--fill bg-brands-facebook text-white text-sm social-icon--4"
23
+ ><i class="ico--facebook"></i></a>
24
+ <a
25
+ href="https://twitter.com/intent/tweet?text={{ include.article.title }}&url={{ include.article.url | absolute_url }}"
26
+ onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
27
+ class="social-icon social-icon--fill bg-brands-twitter text-white text-sm social-icon--4"
28
+ ><i class="ico--twitter"></i></a>
29
+ </div>
19
30
  </div>
20
31
 
21
32
  <div class="article-card-meta" class="c-metadata-block-section__item" >
@@ -1,4 +1,4 @@
1
- <div class="__js-root">
1
+ <div class="__js-root {{ include.classes }}">
2
2
  {% if site.env.GOOGLE_CALENDAR_APIKEY and include.calendarId %}
3
3
  <ui-calendar-google-provider v-slot="{ events, onShowMore, hasMore }" :calendar-id="'{{ include.calendarId }}'" :api-key="'{{ site.env.GOOGLE_CALENDAR_APIKEY }}'">
4
4
  <ui-calendar-renderer
@@ -22,7 +22,7 @@
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
- <div class="font-light mb-4">{{ include.candidatePage.mail }}</div>
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
28
  </div>
@@ -1,4 +1,4 @@
1
- <section
1
+ <header
2
2
  class="hero py-8 lg:py-16 {{ include.class }} {% if include.bgImg %}hero--image{% endif %}"
3
3
  {% if include.bgImg %}style="--image-url: url({{ include.bgImg }})"{% endif %}
4
4
  >
@@ -62,4 +62,4 @@
62
62
  </div>
63
63
  {% endif %}
64
64
  </div>
65
- </section>
65
+ </header>
@@ -1,13 +1,13 @@
1
- <section
2
- class="hero {% if include.bgImg %}hero--image{% endif %} py-16"
1
+ <header
2
+ class="hero {% if include.bgImg %}hero--image{% endif %} {% unless include.heroSpacing %}py-16{% else %}{{ include.heroSpacing }}{% endunless %} {{ include.class }}"
3
3
  {% if include.bgImg %}style="--image-url: url({{ include.bgImg }})"{% endif %}
4
4
  >
5
5
  <div class="container container--default">
6
6
  <h1 class="head-alt-md md:head-alt-lg max-w-2xl">
7
7
  {{ include.headline }}
8
8
  </h1>
9
- <h2 class="head-xs mt-2">
9
+ <h2 class="head-xs mt-2 {{ include.descriptionClass }}">
10
10
  {{ include.description }}
11
11
  </h2>
12
12
  </div>
13
- </section>
13
+ </header>
@@ -4,7 +4,7 @@
4
4
 
5
5
  {% capture subContent %}
6
6
  {% if include.cta %}
7
- {% include buttons/icon.html icon="ico--chevron-right" class="btn--hoveractive btn--fullwidth md:btn--autowidth text-lg" cta=include.cta %}
7
+ {% include buttons/icon.html href=include.href icon="ico--chevron-right" class="btn--hoveractive btn--fullwidth md:btn--autowidth text-lg" cta=include.cta %}
8
8
  {% endif %}
9
9
  {% endcapture %}
10
10
 
@@ -34,7 +34,9 @@
34
34
  {% endunless %}
35
35
 
36
36
  <div class="badge__body">
37
- <h2 class="{% if include.headlineClass %}{{ include.headlineClass }}{% else %}head-heavy-2xs{% endif %} badge__title">{{ label }}</h2>
37
+ <h2 class="{% if include.headlineClass %}{{ include.headlineClass }}{% else %}head-heavy-2xs{% endif %} badge__title">
38
+ <a href="{{ url }}" title="{{ label }}">{{ label }}</a>
39
+ </h2>
38
40
 
39
41
  {% unless include.showDescription == false %}
40
42
  <p class="badge__occupation">
@@ -6,7 +6,7 @@
6
6
  <div class="space-y-4">
7
7
  {% assign persons = site.people | sample:3 %}
8
8
  {% for person in persons %}
9
- {% include people/profile-badge.html item=person style='card' showContactInfo=false class='c-profile-badge--stacked c-profile-badge--bottomalign' headlineClass='t-h6-super' %}
9
+ {% include people/profile-badge.html item=person style='card' showContactInfo=false %}
10
10
  {% endfor %}
11
11
  </div>
12
12
 
@@ -1,21 +1,14 @@
1
- <div class="o-section-block--spaceBot show-for-large">
2
- <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
3
- <li class="c-widget-accordion-item is-active" data-accordion-item="">
4
- <a href="#toc" class="c-widget-accordion-link">
5
- <span class="c-widget-accordion__title">{{ include.title }}</span>
6
- </a>
7
- <div class="c-widget-accordion-content" data-tab-content="" id="toc">
8
- <ul class="c-widget-accordion-list"> <ul>
9
- {% assign posts = include.posts | sort: "date" | reverse %}
10
- {% for post in posts limit: 30 %}
11
- <li>
12
- <a href="{{ post.url }}">
13
- {{ post.title }}
14
- </a>
15
- </li>
16
- {% endfor %}
17
- </ul> </ul>
18
- </div>
19
- </li>
20
- </ul>
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>
21
14
  </div>
@@ -35,7 +35,7 @@ layout: default
35
35
  {% endcapture %}
36
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" %}
37
37
 
38
- <div class="container container--default pt-8 lg:py-24">
38
+ <div class="container container--default pt-8 {% unless group.subLinks %}pb-8{% endunless %} lg:py-24">
39
39
 
40
40
  {% if programCategories.size > 0 %}
41
41
  <div class="text-center">
@@ -9,18 +9,18 @@ layout: default
9
9
  {% capture imgPath %}{% asset '{{ page.heroImg }}' @path %}{% endcapture %}
10
10
  {% assign imgPath = imgPath | absolute_url %}
11
11
  {% endif %}
12
+ {% elsif page.img %}
13
+ {% if site.mediaStorage %}
14
+ {% capture imgPath %}https://a.pirati.cz/{{ site.mediaStorage }}/img/{{ page.img }}{% endcapture %}
15
+ {% else %}
16
+ {% capture imgPath %}{% asset '{{ page.img }}' @path %}{% endcapture %}
17
+ {% assign imgPath = imgPath | absolute_url %}
18
+ {% endif %}
12
19
  {% endif %}
13
20
 
14
21
  {% capture personName %}{% include people/fullname.html person=page %}{% endcapture %}
15
22
 
16
- <header class="hero hero--image pt-24 pb-24 lg:pt-32 pb-24 candidate-detail__hero" style="{% if imgPath %}--image-url: url({{ imgPath }}){% else %}background: linear-gradient(var(--color-cyan-500),var(--color-cyan-500)){% endif %}">
17
- <div class="container container--default text-center lg:text-left">
18
- <h1 class="head-alt-md md:head-alt-xl max-w-2xl">{{ personName }}</h1>
19
- {% if page.description %}
20
- <h2 class="head-xs mt-2 max-w-xl">{{ page.description }}</h2>
21
- {% endif %}
22
- </div>
23
- </header>
23
+ {% include hero/simple.html headline=personName description=page.description descriptionClass="max-w-xl" heroSpacing="pt-24 pb-24 lg:pt-32 pb-24" class="candidate-detail__hero" bgImg=imgPath %}
24
24
 
25
25
  <div class="container container--default py-8 lg:pb-24">
26
26
  <main>
@@ -31,32 +31,36 @@ layout: default
31
31
  {% endif %}
32
32
 
33
33
  <div class="lg:flex lg:space-x-8 xl:space-x-16">
34
- <div class="lg:w-3/5 xl:w-2/3 content-block">
35
- {{ content }}
34
+ <div class="lg:w-3/5 xl:w-2/3">
35
+ <div class="content-block">
36
+ {{ content }}
37
+ </div>
36
38
  {% if page.calendarId or page.calendarPage %}
37
- <h2>{{ page.calendarTitle | default: "Kalendář akcí" }}</h2>
38
- {% include calendar.html calendarId=page.calendarId title=page.calendarTitle calendarPage=page.calendarPage hideBanner=true %}
39
+ <h2 class="head-heavy-sm mb-4 mt-4">{{ page.calendarTitle | default: "Kalendář akcí" }}</h2>
40
+ {% include calendar.html calendarId=page.calendarId title=page.calendarTitle calendarPage=page.calendarPage hideBanner=true classes="mb-4" %}
39
41
  {% endif %}
40
42
  </div>
41
43
  <div class="pt-8 lg:w-2/5 xl:w-1/3 lg:pt-0">
42
44
  <div class="lg:card lg:elevation-10">
43
- <div class="lg:card__body content-block" itemprop="address" itemtype="https://schema.org/PostalAddress" itemscope>
45
+ <div class="lg:card__body" itemprop="address" itemtype="https://schema.org/PostalAddress" itemscope>
46
+ <div class="content-block">
44
47
  <h2>Kde to najdu?</h2>
45
- {% if page.mapIframeLink %}
46
- <iframe src="{{ page.mapIframeLink }}" width="100%" height="300" id="mapa-mobile" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
47
- {% endif %}
48
- {% if page.address %}
49
- <p>
50
- {{ page.address | newline_to_br }}
51
- </p>
52
- {% endif %}
53
- {% if page.addressNote %}
54
- <p><small>{{ page.addressNote }}</small></p>
55
- {% endif %}
56
- <hr>
57
- {% if page.contactPersons %}
58
- <h2>Kontakt</h2>
48
+ {% if page.mapIframeLink %}
49
+ <iframe src="{{ page.mapIframeLink }}" width="100%" height="300" id="mapa-mobile" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
50
+ {% endif %}
51
+ {% if page.address %}
52
+ <p>
53
+ {{ page.address | newline_to_br }}
54
+ </p>
55
+ {% endif %}
56
+ {% if page.addressNote %}
57
+ <p><small>{{ page.addressNote }}</small></p>
58
+ {% endif %}
59
+ <hr>
60
+ </div>
59
61
 
62
+ {% if page.contactPersons %}
63
+ <h2 class="head-heavy-sm mb-2">Kontakt</h2>
60
64
  {% for contact in page.contactPersons %}
61
65
  {% assign person = site.people | where_exp:"item","item.uid contains contact.id" | first %}
62
66
  {% if forloop.first %}
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  layout: page
3
+ nocols: true
3
4
  ---
4
5
 
5
6
  {{ content }}
@@ -14,15 +15,17 @@ layout: page
14
15
  {% endcapture %}
15
16
  {% assign sortedtags = tags | split:' ' | uniq | sort %}
16
17
 
17
- <div class="c-multicolumn c-multicolumn--three c-multicolumn--responsive">
18
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
18
19
  {% for tag in sortedtags %}
19
- <section>
20
- <h2 id="{{ tag }}">{{ tag }}</h3>
21
- <ul>
22
- {% for post in site.tags[tag] %}
23
- <li><a class="c-emphasized-anchor" href="{{ post.url }}">{{ post.title }}</a></li>
24
- {% endfor %}
25
- </ul>
20
+ <section class="card">
21
+ <div class="card__body p-4">
22
+ <h2 class="head-heavy-xs mb-2" id="{{ tag }}">{{ tag }}</h3>
23
+ <ul class="unordered-list unordered-list--linked unordered-list--dense leading-normal font-light text-sm">
24
+ {% for post in site.tags[tag] %}
25
+ <li><a href="{{ post.url }}">{{ post.title }}</a></li>
26
+ {% endfor %}
27
+ </ul>
28
+ </div>
26
29
  </section>
27
30
  {% endfor %}
28
31
  </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.0.0.pre.alpha1
4
+ version: 8.0.0.pre.alpha6
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-09 00:00:00.000000000 Z
12
+ date: 2020-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll