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

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: d9044f8036be0c47d808f0f53cdc4b06dc93df35267a253ecceb2e62f27ab3e7
4
+ data.tar.gz: 79c854f9d003fe367087b9fd8ec575ff4933f4426905200f36c91dd7c4d24384
5
5
  SHA512:
6
- metadata.gz: 474266efad7b4bc511fb22c2c794f2b1226fb18a730b854e9757b9e2357e0f8a00defd8fd7edfd0ba94a85e3328e4df9e4e395267848b491d8ecf4359bcc16ee
7
- data.tar.gz: be5283d79dbc92b3413e398309c6d86d7cdfdc608727dacf6145ec7308b815134951138965ed74c82199cada5d69133f3c849dcf99429e3c3b338313c87fe952
6
+ metadata.gz: de9790679ff07d73c21ec77fff4812a14748204c32fa42229d89c58b8337e712464448e9390e4e26122d8768ab0480fa49d32ba86a5449c800d41e6bcba9c9c3
7
+ data.tar.gz: cdba6a5cd1ccf5e0715fb2ae0dc750536f6b0c1c32b8a8dfa1a11797e1f88de9f6fbd813b04f355dcf70770b070bf6188641629161dc9fe8ffd02d1301c305b4
@@ -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"
@@ -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>
@@ -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>
@@ -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>
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.alpha2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jitka Novotná