jekyll-theme-pirati 7.6.2 → 7.7.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: 8b9ceca11b797dc79627a96b3f59d57072fb27ebf567d73b3c34ead8bc035e60
4
- data.tar.gz: a48815af6f928a0e02128f5e13645adef9c58e64d89ff83ef20d72f061eaaa12
3
+ metadata.gz: 573944f836836fb81e21fbb110724eaaf509f3927373a29f12dae087a1e86be9
4
+ data.tar.gz: 71c4e0e2dcb03f4d2a81056c9e150103fb74603dc327b19bfc8c5e6e73a2e3be
5
5
  SHA512:
6
- metadata.gz: 714f8d053aad3414d47a1f2f32ffdf06f4bc6ca2712acab7911be02bb1d76ab78d3b0fa66a36090aa6a126987146db92ae2d4b216afb169650d8ab8fb4c74b1a
7
- data.tar.gz: f33bb582218e415fc316620b426a7a3d1f990f87dac4badff383ff9158c0c999b0415a3c854c2e460e943c215993e19c917fdc94866bf6159d73ad7bd2a0c188
6
+ metadata.gz: dd8c121ec23b490c14f4c155178282b5a838b9e8315e47946e326731d7d90c0636d64ceabe36b7829c4e7280a34afe1f8e7bc81dc0f58e21f60c07d6491630cb
7
+ data.tar.gz: 861c8a93de623ffe2821942b1c69ef2ed18667ca71c29e1df79a3ad69459564f3def60fb1f0900ce0b5f4797aaca828f420207b533d2a081f429c9543e225d5c
@@ -25,7 +25,10 @@ main:
25
25
  match: lide
26
26
  - link: /regiony/
27
27
  name: Místní sdružení
28
- match: reriony
28
+ match: regiony
29
+ - link: /regiony/index2.html
30
+ name: Jiný rozcestník
31
+ match: index2
29
32
  - link: /komunalni-volby/praha2018
30
33
  name: Komunální volby
31
34
  match: komunalni-volby
@@ -0,0 +1,16 @@
1
+ {% assign posts = "" | split: ", " %}
2
+ {% for tag in include.tags %}
3
+ {% assign tagPosts = site.posts | where_exp: "item","item.tags contains tag" %}
4
+ {% assign posts = posts | concat: tagPosts %}
5
+ {% endfor %}
6
+ {% assign posts = posts | sort: "date" | reverse %}
7
+
8
+ <section class="o-section o-section--spaceBot">
9
+ <div class="o-section-inner o-section-inner--leftBlock">
10
+ {% for article in posts limit: include.limit %} {% include articles/horizontal-article.html article=article %}
11
+ {% endfor %}
12
+ <div class="c-BlogPosting-excerpt-nextBox">
13
+ <a href="{{'/aktuality/' | relative_url}}" rel="next" class="button expanded large">Další články</a>
14
+ </div>
15
+ </div>
16
+ </section>
@@ -1,11 +1,15 @@
1
1
  <!-- include.article -->
2
2
  <article itemtype="http://schema.org/BlogPosting" class="c-article-listing c-article-listing--vertical" itemscope="">
3
- <link itemprop="mainEntityOfPage" href="{{ include.article.url | absolute_url }}">
3
+ <link itemprop="mainEntityOfPage" href="{{ include.article.url }}">
4
4
 
5
5
  <div class="c-article-listing__photobox">
6
- <a href="{{ include.article.url | relative_url }}">
6
+ <a href="{{ include.article.url }}">
7
7
  <div itemprop="image" itemtype="http://schema.org/ImageObject" class="c-article-listing__image {% if include.article.youtubeVideoId %}c-article-listing__image--videoicon{% endif %}" itemscope="">
8
- {% capture imgPath %}{% asset '{{ include.article.image }}' magick:resize='751x422^' magick:gravity='center' magick:crop='751x422+0+0' @path %}{% endcapture %}
8
+ {% if site.mediaStorage %}
9
+ {% capture imgPath %}https://a.pirati.cz/resize/348x232/{{ site.mediaStorage }}/img/{{ include.article.image }}{% endcapture %}
10
+ {% else %}
11
+ {% capture imgPath %}{% asset '{{ include.article.image }}' magick:resize='751x422^' magick:gravity='center' magick:crop='751x422+0+0' @path %}{% endcapture %}
12
+ {% endif %}
9
13
  <img src="{{ imgPath }}" alt="{{ include.article.title }}">
10
14
  <meta itemprop="url" content="{{ imgPath }}">
11
15
  </div>
@@ -2,7 +2,15 @@
2
2
  <a class="c-program-candidate-badge__body" href="{{ include.candidatePage.url | relative_url }}">
3
3
  <span class="c-program-candidate-badge__rank"><span>{{ include.rank }}</span></span>
4
4
  <div class="c-program-candidate-badge__avatar">
5
- {% capture img %}{% if include.candidatePage.img %}{% asset '{{ include.candidatePage.img }}' magick:resize='225x225^' magick:gravity='center' magick:crop='225x225+0+0' @path %}{% else %}{{ 'assets/img/people/unknown-pirate.svg' | relative_url }}{% endif %}{% endcapture %}
5
+ {% if include.candidatePage.img %}
6
+ {% if site.mediaStorage %}
7
+ {% capture img %}https://a.pirati.cz/resize/225x225/{{ site.mediaStorage }}/img/{{ include.candidatePage.img }}{% endcapture %}
8
+ {%- else -%}
9
+ {% capture img %}{% asset '{{ include.candidatePage.img }}' magick:resize='225x225^' magick:gravity='center' magick:crop='225x225+0+0' @path %}{% endcapture %}
10
+ {%- endif -%}
11
+ {% else %}
12
+ {% capture img %}https://a.pirati.cz/common/img/people/unknown-pirate.svg{% endcapture %}
13
+ {% endif %}
6
14
  <img src="{{ img }}" alt="{% include people/fullname.html person=include.candidatePage plain=true %}" class="c-program-candidate-badge__avatar-image">
7
15
  </div>
8
16
  <div class="c-program-candidate-badge__description">
@@ -43,11 +43,19 @@
43
43
  <meta property="og:title" content="{{ title }}" />
44
44
  <meta property="og:description" content="{{ description }}" />
45
45
  {% if page.layout == 'post' %}
46
- {% capture img_path %}{% asset '{{ page.image }}' @path %}{% endcapture %}
47
- <meta property="og:image" content="{{ img_path | absolute_url }}" />
46
+ {% if site.mediaStorage %}
47
+ {% capture imgPath %}https://a.pirati.cz/{{ site.mediaStorage }}/img/{{ include.image }}{% endcapture %}
48
+ {% else %}
49
+ {% capture img_path %}{% asset '{{ page.image }}' @path %}{% endcapture %}
50
+ {% endif %}
51
+ <meta property="og:image" content="{{ img_path | absolute_url }}" />
48
52
  {% elsif page.img %}
49
- {% capture img_path %}{% asset '{{ page.img }}' @path %}{% endcapture %}
50
- <meta property="og:image" content="{{ img_path | absolute_url }}" />
53
+ {% if site.mediaStorage %}
54
+ {% capture imgPath %}https://a.pirati.cz/{{ site.mediaStorage }}/img/{{ include.img }}{% endcapture %}
55
+ {% else %}
56
+ {% capture img_path %}{% asset '{{ page.img }}' @path %}{% endcapture %}
57
+ {% endif %}
58
+ <meta property="og:image" content="{{ img_path | absolute_url }}" />
51
59
  {% else %}
52
60
  <meta property="og:image" content="{{ 'assets/img/brand/logo-round.png' | absolute_url }}" />
53
61
  {% endif %}
@@ -1,7 +1,12 @@
1
1
  <div class="o-section-block o-section-block-fill">
2
2
  <div class="c-headline-media">
3
- {% capture imgPath %}{% asset '{{ include.image }}' magick:resize='751x422^' magick:gravity='center' magick:crop='751x422+0+0' @path %}{% endcapture %}
3
+ {% if site.mediaStorage %}
4
+ {% capture imgPath %}https://a.pirati.cz/crop/751x422/{{ site.mediaStorage }}/img/{{ include.image }}{% endcapture %}
5
+ {% else %}
6
+ {% capture imgPath %}{% asset '{{ include.image }}' magick:resize='751x422^' magick:gravity='center' magick:crop='751x422+0+0' @path %}{% endcapture %}
7
+ {% endif %}
4
8
  <div class="c-headline-media__background" style="background-image: url({{ imgPath }})"></div>
9
+
5
10
  <div class="row c-headline-media__body">
6
11
  <div class="small-12 columns">
7
12
  {% comment %}If youtube video id is provided, it takes precendece over the image{% endcomment %}
@@ -9,7 +9,7 @@
9
9
  {% include articles/horizontal-article.html article=article %}
10
10
  {% endfor %}
11
11
  <div class="c-BlogPosting-excerpt-nextBox">
12
- <a href="{{'/aktuality/' | relative_url}}" rel="next" class="button expanded large">Další články</a>
12
+ <a href="{{ '/aktuality/' }}" rel="next" class="button expanded large">Další články</a>
13
13
  </div>
14
14
  </div>
15
15
  </section>
@@ -8,17 +8,23 @@
8
8
  {% endif %}
9
9
  <div class="c-profile-badge {% if include.style == 'card' %}c-profile-badge--card{% endif %} {% if include.class %}{{ include.class }}{% endif %}">
10
10
  <div class="c-profile-badge__avatar">
11
- {%- capture img -%}
12
11
  {%- if include.item.img -%}
13
- {%- if include.imgSize != 'big' -%}
14
- {% asset '{{ include.item.img }}' magick:resize='100x100^' magick:gravity='center' magick:crop='100x100+0+0' @path %}
15
- {%- else -%}
16
- {% asset '{{ include.item.img }}' magick:resize='165x165^' magick:gravity='center' magick:crop='165x165+0+0' @path %}
17
- {%- endif -%}
18
- {%- else -%}
19
- {{ 'assets/img/people/unknown-pirate.svg' | relative_url }}
20
- {%- endif -%}
21
- {%- endcapture -%}
12
+ {% if site.mediaStorage %}
13
+ {%- if include.imgSize != 'big' -%}
14
+ {% capture img %}https://a.pirati.cz/crop/100x100/{{ site.mediaStorage }}/img/{{ include.item.img }}{% endcapture %}
15
+ {%- else -%}
16
+ {% capture img %}https://a.pirati.cz/crop/165x165/{{ site.mediaStorage }}/img/{{ include.item.img }}{% endcapture %}
17
+ {%- endif -%}
18
+ {%- else -%}
19
+ {%- if include.imgSize != 'big' -%}
20
+ {% capture img %}{% asset '{{ include.item.img }}' magick:resize='100x100^' magick:gravity='center' magick:crop='100x100+0+0' @path %}{% endcapture %}
21
+ {%- else -%}
22
+ {% capture img %}{% asset '{{ include.item.img }}' magick:resize='165x165^' magick:gravity='center' magick:crop='165x165+0+0' @path %}{% endcapture %}
23
+ {%- endif -%}
24
+ {%- endif -%}
25
+ {% else %}
26
+ {% capture img %}https://a.pirati.cz/common/img/people/unknown-pirate.svg{% endcapture %}
27
+ {% endif %}
22
28
  <a class="c-profile-badge__anchor" href="{{ url }}"><img src="{{ img }}" alt="{{ label }}" class="c-profile-badge__image {% if include.imgStyle == 'round' %}c-profile-badge__image--round{% endif %} {% if include.imgSize != 'big' %}c-profile-badge__image--smaller{% endif %}"></a>
23
29
  </div>
24
30
 
@@ -0,0 +1,5 @@
1
+ <section class="pk-election-crossroad row u-uniform-size-row">
2
+ {% for place in include.places %}
3
+ {% include regions/item.html img=place.img name=place.name area=place.area link=place.link president=place.president fb=place.fb %}
4
+ {% endfor %}
5
+ </section>
@@ -0,0 +1,26 @@
1
+ <div class="large-4 medium-6 small-12 columns end" style="padding-bottom: 2em;">
2
+ <div class="c-content-card">
3
+ <div class="c-content-card-img">
4
+ <a href={{include.link}}> {% asset {{include.img}} alt=include.name %} </a>
5
+ </div>
6
+ <div class="c-content-card-content-box">
7
+ <h3 class="c-content-card-title">
8
+ <a href="{{include.link}}"> {{ include.name}} </a>
9
+ </h3>
10
+ <ul>
11
+ <li>Působnost: {{ include.area }}</li>
12
+ {% assign person = site.people | where_exp:"item","item.uid contains include.president" | first %}
13
+ {% if person %}
14
+ <li>Předseda: <a href={{person.url}}> {{person.name}}</a> </li>
15
+ {% else %}
16
+ <li>Předseda: {{include.president}} </li>
17
+ {% endif %}
18
+ {% if include.fb %}
19
+ <li>
20
+ <i class="fa fa-facebook" aria-hidden="true"></i>
21
+ <a href="https://www.facebook.com/{{include.fb}}"> {{include.fb}}</a> </li>
22
+ {% endif %}
23
+ </ul>
24
+ </div>
25
+ </div>
26
+ </div>
@@ -0,0 +1,32 @@
1
+
2
+ {% if page.board %}
3
+ <aside class="o-section">
4
+ <div class="o-section-inner o-section-inner--rightBlock">
5
+ <div class="o-section-block">
6
+ <div class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
7
+ <div class="c-widget-accordion-content" data-tab-content="">
8
+ {% if page.boardName %}
9
+ <h3> {{ page.boardName }} </h3>
10
+ {% else %}
11
+ <h3>Předsednictvo</h3>
12
+ {% endif %}
13
+ <ul>
14
+ {% for chair in page.board %}
15
+ {% if chair.uid %}
16
+ {% assign person = site.people | where_exp: "item","item.uid contains chair.uid" | first %}
17
+ <li> {{chair.position}}: <strong> <a href="{{person.url}}" > {{ person.name }} </a> </strong> </li>
18
+ {% else %}
19
+ <li> {{chair.position}}: <strong> {{ chair.name }} </strong> </li>
20
+ {% endif %}
21
+ {% endfor %}
22
+
23
+ </ul>
24
+ {% if page.boardTurn %}
25
+ konec mandátu: <a href="{{ page.boardTurn.electionUrl }}" style="text-decoration:underline"> {{ page.boardTurn.endDate }} </a></li>
26
+ {% endif %}
27
+ </div>
28
+ </div>
29
+ </div>
30
+ </div>
31
+ </aside>
32
+ {% endif %}
@@ -1,22 +1,30 @@
1
- {% if page.profiles.flickr and page.img %}
2
- <div class="c-widget-accordion-content__cta">
3
- </div>
4
- <div class="o-section-block">
5
- <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
6
- <li class="c-widget-accordion-item is-active" data-accordion-item="">
7
- <div class="c-widget-accordion-content" data-tab-content="">
8
- {% asset '{{ page.img }}' alt='{{ page.name }}' magick:resize="350x" class='c-person-image' %}
9
- <div class="c-widget-accordion-content__cta">
10
- {% assign peopleCol = site.collections | where: "label", "people" | first %}
11
- <a class="expanded button large u-0margin" href="{{page.profiles.flickr}}"> Zobrazit více fotografií </a>
1
+ {% if page.img %}
2
+
3
+ {% if site.mediaStorage %}
4
+ {% capture img %}https://a.pirati.cz/resize/225x225/{{ site.mediaStorage }}/img/{{ page.img }}{% endcapture %}
5
+ {%- else -%}
6
+ {% capture img %}{% asset '{{ page.img }}' alt='{{ page.name }}' magick:resize="350x" class='c-person-image' %}{% endcapture %}
7
+ {%- endif -%}
8
+
9
+ {% if page.profiles.flickr %}
10
+ <div class="c-widget-accordion-content__cta"> </div>
11
+ <div class="o-section-block">
12
+ <ul class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
13
+ <li class="c-widget-accordion-item is-active" data-accordion-item="">
14
+ <div class="c-widget-accordion-content" data-tab-content="">
15
+ <img src="{{ img }}" alt="{{ page.name }}">
16
+ <div class="c-widget-accordion-content__cta">
17
+ {% assign peopleCol = site.collections | where: "label", "people" | first %}
18
+ <a class="expanded button large u-0margin" href="{{page.profiles.flickr}}"> Zobrazit více fotografií </a>
19
+ </div>
12
20
  </div>
13
- </div>
14
- </li>
15
- </ul>
16
- </div>
21
+ </li>
22
+ </ul>
23
+ </div>
17
24
  {% else %}
18
- {% if page.img %}
19
- {% asset '{{ page.img }}' alt='{{ page.name }}' magick:resize="350x" class='c-person-image' %}
20
- {% endif %}
25
+ <img src="{{ img }}" alt="{{ page.name }}">
26
+ {% endif %}
27
+
28
+
21
29
  {% endif %}
22
30
 
@@ -0,0 +1,12 @@
1
+ <aside class="o-section">
2
+ <div class="o-section-inner o-section-inner--rightBlock">
3
+ <div class="o-section-block">
4
+ <div class="c-widget-accordion" data-accordion="" data-allow-all-closed="true">
5
+ <div class="c-widget-accordion-content" data-tab-content="">
6
+ <h3>Kontakty</h3>
7
+ {% include right-bar/rbar_profiles.html %}
8
+ </div>
9
+ </div>
10
+ </div>
11
+ </div>
12
+ </aside>
@@ -0,0 +1,6 @@
1
+
2
+ {% assign posts = site.posts | where_exp: "item","item.authorId contains page.uid" | sort:"date" %}
3
+
4
+ {% if posts %}
5
+ {% include right-bar/rbar_articles.html posts=posts title="Seznam článku" %}
6
+ {% endif %}
@@ -0,0 +1,10 @@
1
+ {% assign posts = "" | split: ", " %}
2
+ {% for tag in page.tags %}
3
+ {% assign tagPosts = site.posts | where_exp: "item","item.tags contains tag" %}
4
+ {% assign posts = posts | concat: tagPosts %}
5
+ {% endfor %}
6
+ {% assign posts = posts | sort: "date" | reverse %}
7
+
8
+ {% if posts %}
9
+ {% include right-bar/rbar_articles.html posts=posts title="Seznam článku" %}
10
+ {% endif %}
@@ -37,6 +37,18 @@
37
37
  {% if rbar contains 'map' %}
38
38
  {% include right-bar/bar_map.html %}
39
39
  {% endif %}
40
+ {% if rbar contains 'personArticles' %}
41
+ {% include right-bar/bar_person_articles.html %}
42
+ {% endif %}
43
+ {% if rbar contains 'board' %}
44
+ {% include right-bar/bar_board.html %}
45
+ {% endif %}
46
+ {% if rbar contains 'tagArticles' %}
47
+ {% include right-bar/bar_tag_articles.html %}
48
+ {% endif %}
49
+ {% if rbar contains 'pageContact' %}
50
+ {% include right-bar/bar_page_contact.html %}
51
+ {% endif %}
40
52
 
41
53
  {% comment %}Allows to append custom right bars variants{% endcomment %}
42
54
  {% include right-bar/custom-bars.html rbar=rbar %}
@@ -0,0 +1,21 @@
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>
21
+ </div>
@@ -10,7 +10,7 @@ layout: default
10
10
  <div class="o-section-inner">
11
11
  <div class="medium-12 columns">
12
12
  <!-- Article -->
13
- <link itemprop="mainEntityOfPage" href="{{ page.url | absolute_url }}">
13
+ <link itemprop="mainEntityOfPage" href="{{ page.url }}">
14
14
  <header class="c-page-header">
15
15
  <h1 itemprop="headline" class="c-page-title"> {{ page.title }} </h1>
16
16
  <div class="c-metadata-block">
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ <div class="o-section">
6
+ <div class="c-content-block c-emphasized-text">{{ content }}</div>
7
+ </div>
8
+
9
+ {% include regions/crossroad2.html places=page.regions %}
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.6.2
4
+ version: 7.7.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: 2019-09-18 00:00:00.000000000 Z
12
+ date: 2020-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -73,6 +73,7 @@ files:
73
73
  - _includes/articles/horizontal-article.html
74
74
  - _includes/articles/list-responsive.html
75
75
  - _includes/articles/pagination.html
76
+ - _includes/articles/tag-filtered-news.html
76
77
  - _includes/articles/vertical-article.html
77
78
  - _includes/candidate-badge.html
78
79
  - _includes/contacts/residence.html
@@ -104,21 +105,28 @@ files:
104
105
  - _includes/program/list.html
105
106
  - _includes/program/priorities.html
106
107
  - _includes/regions/crossroad.html
108
+ - _includes/regions/crossroad2.html
109
+ - _includes/regions/item.html
110
+ - _includes/right-bar/bar_board.html
107
111
  - _includes/right-bar/bar_cal.html
108
112
  - _includes/right-bar/bar_fb.html
109
113
  - _includes/right-bar/bar_foto.html
110
114
  - _includes/right-bar/bar_garant.html
111
115
  - _includes/right-bar/bar_kodo.html
112
116
  - _includes/right-bar/bar_map.html
117
+ - _includes/right-bar/bar_page_contact.html
113
118
  - _includes/right-bar/bar_people.html
119
+ - _includes/right-bar/bar_person_articles.html
114
120
  - _includes/right-bar/bar_person_contact.html
115
121
  - _includes/right-bar/bar_program.html
122
+ - _includes/right-bar/bar_tag_articles.html
116
123
  - _includes/right-bar/bar_textbox.html
117
124
  - _includes/right-bar/bar_tw.html
118
125
  - _includes/right-bar/bar_video.html
119
126
  - _includes/right-bar/custom-bars.html
120
127
  - _includes/right-bar/program-extras.html
121
128
  - _includes/right-bar/rbar.html
129
+ - _includes/right-bar/rbar_articles.html
122
130
  - _includes/right-bar/rbar_profiles.html
123
131
  - _includes/social.html
124
132
  - _includes/submenu.html
@@ -138,6 +146,7 @@ files:
138
146
  - _layouts/program-post.html
139
147
  - _layouts/redirected.html
140
148
  - _layouts/regions.html
149
+ - _layouts/regions2.html
141
150
  - _layouts/taglist.html
142
151
  - _sass/_base.scss
143
152
  - _sass/_fonts.scss