jekyll-theme-pirati 7.3.0 → 7.4.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: c3ab86da123516b4738066b25f08c5581a5b052c3444df47510c4865ff245843
4
- data.tar.gz: 24c7829bbc7ab00250ed14e15463aa9d7d5087504fc3963816ef0da168587371
3
+ metadata.gz: 48c331ffaa282f9b3b31b81881d52ad1dd4f2a3b177fe375837cc9bef1f4aecc
4
+ data.tar.gz: b454daf39132612120d1c8e4ecc76fb1e811282e9e98e55a2d0148e096422f93
5
5
  SHA512:
6
- metadata.gz: 7ecc129fcb33f06c7d4c2a39cd48c9bf9f7ab87206e4ca99007c723b272445f4feac45d74b4dbc5732cd778f7a9a0f6e26b5ef8458b9ed1bd7eec7003654f4fb
7
- data.tar.gz: c6d009802fa4d98f555c6e906fcf1236ff1a05371b8fd7aa32f8e64366b07a510fe59593387f65de8243b4b0ee72b68a7faf31d6baeb9d3839c36f0e2b74f041
6
+ metadata.gz: b2bba92fad43f00298f6a9e1a756cff60496f3aa51a23392200d5a00c05e94a8ba4505ebde5d490a86e8a7cd870d9b9b1acfc5a3af7ab6b0dcb037f08f9f81b3
7
+ data.tar.gz: 37b6271108d32a9e88bee9af9266c80a487fe19499fcf5df6d7070e903f7684aa823bee853b138def5ad73bbaa46322d55e6aaff9948935c7fbc7fcad7dbe55b
@@ -18,7 +18,14 @@ main:
18
18
  match: aktuality
19
19
  - link: /lide/
20
20
  name: O nás
21
- match: lide
21
+ match: lide, regiony
22
+ submenu:
23
+ - link: /lide/
24
+ name: Naši lidé
25
+ match: lide
26
+ - link: /regiony/
27
+ name: Místní sdružení
28
+ match: reriony
22
29
  - link: /komunalni-volby/praha2018
23
30
  name: Komunální volby
24
31
  match: komunalni-volby
@@ -39,6 +46,8 @@ main:
39
46
  name: Kontakt
40
47
  match: kontakt
41
48
 
49
+ # hideSearch: yes
50
+
42
51
  bottom:
43
52
  - class: small-12 medium-4
44
53
  title: Připoj se
@@ -8,6 +8,7 @@
8
8
  </a>
9
9
  </div>
10
10
 
11
+ {% unless site.data.menu.hideSearch %}
11
12
  <div class="c-top-bar__search">
12
13
  <div class="__vue-root" data-app="SiteSearch">
13
14
  <!-- this will get replaced by Vue.js content, placeholder only -->
@@ -17,6 +18,7 @@
17
18
  </div>
18
19
  </div>
19
20
  </div>
21
+ {% endunless %}
20
22
 
21
23
  <div id="responsive-menu" class="c-responsive-menu">
22
24
  <ul class="c-responsive-menu__items" data-dropdown-menu="">
@@ -11,7 +11,7 @@
11
11
  {% endfor %}
12
12
  <div class="c-widget-accordion-content__cta">
13
13
  {% assign peopleCol = site.collections | where: "label", "people" | first %}
14
- <a class="expanded button large u-0margin" href="{% if peopleCol.root %}{{ peopleCol.root }}{% else %}{{ '/kontakty/' | relative_url }}{% endif %}"> Ozvi se nám! </a>
14
+ <a class="expanded button large u-0margin" href="{% if peopleCol.root %}{{ peopleCol.root }}{% else %}{{ '/kontakt/' | relative_url }}{% endif %}"> Ozvi se nám! </a>
15
15
  </div>
16
16
  </div>
17
17
  </li>
@@ -1,20 +1,42 @@
1
- <div class="o-section-block">
2
- <ul class="c-widget-accordion c-widget-accordion--alert" data-accordion="" data-allow-all-closed="true">
1
+ {% if page.youtube %}
2
+ <div class="o-section-block show-for-medium">
3
+ <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
3
4
  <li class="c-widget-accordion-item is-active" data-accordion-item="">
4
- <a href="#" class="c-widget-accordion-link">
5
- <span class="c-widget-accordion__title">Videa</span>
5
+
6
+ {% if page.youtube.title %}
7
+ <a href="#" class="c-widget-accordion-link c-widget-accordion-link--yt">
8
+ <span class="c-widget-accordion__title">{{page.youtube.title}}</span>
6
9
  </a>
10
+ {% endif %}
11
+
7
12
  <div class="c-widget-accordion-content" data-tab-content="">
8
13
  <div class="c-widget-accordion-content-video">
14
+
9
15
  <div class="c-widget-accordion-content__video u-video-wrapper-16-9">
10
- <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/pWK515EHyG0?rel=0&amp;controls=0" style="border: 0;" allowfullscreen=""></iframe>
16
+
17
+ {% if page.youtube.id %}
18
+ <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/{{page.youtube.id}}?rel=0&amp;controls=0" style="border: 0;" allowfullscreen=""></iframe>
19
+ {% endif %}
20
+
21
+ {% if page.youtube.playlist %}
22
+
23
+ <iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list={{page.youtube.playlist}}" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
24
+ {% endif %}
25
+
11
26
  </div>
27
+
28
+ {% if page.youtube.button %}
12
29
  <div class="c-widget-accordion-content__cta">
13
- <a class="alert expanded button large u-0margin" href="https://www.youtube.com/user/CeskaPiratskaStrana/videos" target="_blank" rel="noopener noreferrer"> Další videa na našem
14
- <br> YouTube kanálu </a>
30
+ <a class="expanded button large u-0margin" href={{page.youtube.button.url}} target="_blank" rel="noopener noreferrer">
31
+ {{page.youtube.button.title}}
32
+ </a>
15
33
  </div>
34
+ {% endif %}
35
+
16
36
  </div>
17
37
  </div>
38
+
18
39
  </li>
19
40
  </ul>
20
41
  </div>
42
+ {% endif %}
@@ -1,23 +1,28 @@
1
1
  {% for menu in site.data.menu.main %}
2
- {% if page.url contains menu.match %}
3
- {% if menu.submenu %}
4
- <nav class="c-top-sub-nav">
5
- <div class="row">
6
- <div class="c-top-sub-nav-inner columns">
7
- <div class="c-top-sub-nav__header">
8
- <h2 class="c-top-sub-nav__heading">{{ menu.name }}</h2>
2
+ {% assign matches = menu.match | split: ", " %}
3
+ {% for match in matches %}
4
+ {% if page.url contains match %}
5
+ {% if menu.submenu %}
6
+ <nav class="c-top-sub-nav">
7
+ <div class="row">
8
+ <div class="c-top-sub-nav-inner columns">
9
+ <div class="c-top-sub-nav__header">
10
+ <h2 class="c-top-sub-nav__heading">
11
+ <a href="{{ menu.link }}">{{ menu.name }} </a>
12
+ </h2>
13
+ </div>
14
+ <div class="c-top-sub-nav-divider"></div>
15
+ <ul class="c-top-sub-nav-items">
16
+ {% for submenu in menu.submenu %}
17
+ <li class="c-top-sub-nav__item {% if page.url contains submenu.match %}c-top-sub-nav__item--active{% endif %}">
18
+ <a href="{{ submenu.link }}">{{ submenu.name }} </a>
19
+ </li>
20
+ {% endfor %}
21
+ </ul>
9
22
  </div>
10
- <div class="c-top-sub-nav-divider"></div>
11
- <ul class="c-top-sub-nav-items">
12
- {% for submenu in menu.submenu %}
13
- <li class="c-top-sub-nav__item {% if page.url contains submenu.match %}c-top-sub-nav__item--active{% endif %}">
14
- <a href="{{ submenu.link }}">{{ submenu.name }} </a>
15
- </li>
16
- {% endfor %}
17
- </ul>
18
23
  </div>
19
- </div>
20
- </nav>
24
+ </nav>
25
+ {% endif %}
21
26
  {% endif %}
22
- {% endif %}
27
+ {% endfor %}
23
28
  {% endfor %}
@@ -47,6 +47,14 @@
47
47
  color: $white;
48
48
  }
49
49
  }
50
+
51
+ .c-widget-accordion-link.c-widget-accordion-link--yt {
52
+ background: #cc181e;
53
+
54
+ .c-widget-accordion__title {
55
+ color: $white;
56
+ }
57
+ }
50
58
  }
51
59
 
52
60
  .c-widget-accordion .c-widget-accordion__title {
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: 7.3.0
4
+ version: 7.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jitka Novotná