jekyll-theme-pirati 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -17
- data/_data/menu.yml +53 -0
- data/_includes/candidate_badge.html +6 -15
- data/_includes/footer.html +92 -12
- data/_includes/head.html +24 -25
- data/_includes/header.html +14 -14
- data/_includes/js/main.html +71 -14
- data/_includes/menu.html +43 -51
- data/_includes/people/profile_badge.html +1 -3
- data/_includes/right-bar/bar_cal.html +4 -6
- data/_includes/right-bar/bar_fb.html +3 -3
- data/_includes/right-bar/bar_garant.html +3 -2
- data/_includes/right-bar/bar_people.html +21 -18
- data/_includes/right-bar/bar_person_contact.html +11 -55
- data/_includes/right-bar/rbar.html +3 -3
- data/_layouts/komunalni-volby.html +9 -7
- data/_sass/_base.scss +114 -1
- data/_sass/_settings.scss +1 -1
- data/_sass/components/BasicPage.scss +6 -1
- data/_sass/components/hero.scss +2 -2
- data/_sass/components/icon.scss +5 -1
- data/_sass/components/program.scss +5 -1
- data/_sass/components/top-bar.scss +236 -491
- data/_sass/components/top-sub-nav.scss +1 -1
- data/_sass/objects/media.scss +46 -38
- data/_sass/utilities/utilities.scss +6 -6
- data/assets/css/main.scss +40 -106
- data/assets/js/apps.js +8 -0
- data/assets/js/apps/scroll-top/ScrollTop.vue +83 -0
- data/assets/js/apps/scroll-top/index.js +9 -0
- data/assets/js/apps/site-search/SiteSearch.vue +85 -0
- data/assets/js/apps/site-search/SiteSearchItemTemplate.vue +29 -0
- data/assets/js/apps/site-search/index.js +14 -0
- data/assets/js/index.js +52 -0
- metadata +9 -91
- data/_includes/js/custom.js +0 -245
- data/_includes/js/fb.js +0 -15
- data/_includes/js/piwik.js +0 -11
- data/_includes/js/tw.js +0 -15
- data/_includes/people/item.html +0 -49
- data/_includes/people/list-2col.html +0 -24
- data/_includes/people/list-group.html +0 -12
- data/_includes/title/title_header.html +0 -9
- data/_sass/components/scroll-top.scss +0 -32
- data/_sass/components/welcome-header.scss +0 -188
- data/_sass/foundation/_global.scss +0 -638
- data/_sass/foundation/components/_accordion-menu.scss +0 -32
- data/_sass/foundation/components/_accordion.scss +0 -129
- data/_sass/foundation/components/_badge.scss +0 -55
- data/_sass/foundation/components/_breadcrumbs.scss +0 -95
- data/_sass/foundation/components/_button-group.scss +0 -195
- data/_sass/foundation/components/_button.scss +0 -265
- data/_sass/foundation/components/_callout.scss +0 -105
- data/_sass/foundation/components/_close-button.scss +0 -61
- data/_sass/foundation/components/_drilldown.scss +0 -79
- data/_sass/foundation/components/_dropdown-menu.scss +0 -221
- data/_sass/foundation/components/_dropdown.scss +0 -65
- data/_sass/foundation/components/_flex-video.scss +0 -63
- data/_sass/foundation/components/_flex.scss +0 -28
- data/_sass/foundation/components/_float.scss +0 -27
- data/_sass/foundation/components/_label.scss +0 -55
- data/_sass/foundation/components/_media-object.scss +0 -115
- data/_sass/foundation/components/_menu-icon.scss +0 -9
- data/_sass/foundation/components/_menu.scss +0 -314
- data/_sass/foundation/components/_off-canvas.scss +0 -177
- data/_sass/foundation/components/_orbit.scss +0 -193
- data/_sass/foundation/components/_pagination.scss +0 -162
- data/_sass/foundation/components/_progress-bar.scss +0 -64
- data/_sass/foundation/components/_reveal.scss +0 -172
- data/_sass/foundation/components/_slider.scss +0 -133
- data/_sass/foundation/components/_sticky.scss +0 -38
- data/_sass/foundation/components/_switch.scss +0 -232
- data/_sass/foundation/components/_table.scss +0 -234
- data/_sass/foundation/components/_tabs.scss +0 -165
- data/_sass/foundation/components/_thumbnail.scss +0 -54
- data/_sass/foundation/components/_title-bar.scss +0 -89
- data/_sass/foundation/components/_tooltip.scss +0 -104
- data/_sass/foundation/components/_top-bar.scss +0 -168
- data/_sass/foundation/components/_visibility.scss +0 -132
- data/_sass/foundation/forms/_checkbox.scss +0 -40
- data/_sass/foundation/forms/_error.scss +0 -84
- data/_sass/foundation/forms/_fieldset.scss +0 -54
- data/_sass/foundation/forms/_forms.scss +0 -34
- data/_sass/foundation/forms/_help-text.scss +0 -30
- data/_sass/foundation/forms/_input-group.scss +0 -128
- data/_sass/foundation/forms/_label.scss +0 -48
- data/_sass/foundation/forms/_meter.scss +0 -109
- data/_sass/foundation/forms/_progress.scss +0 -85
- data/_sass/foundation/forms/_range.scss +0 -144
- data/_sass/foundation/forms/_select.scss +0 -67
- data/_sass/foundation/forms/_text.scss +0 -163
- data/_sass/foundation/foundation.scss +0 -102
- data/_sass/foundation/grid/_classes.scss +0 -151
- data/_sass/foundation/grid/_column.scss +0 -126
- data/_sass/foundation/grid/_flex-grid.scss +0 -274
- data/_sass/foundation/grid/_grid.scss +0 -60
- data/_sass/foundation/grid/_gutter.scss +0 -34
- data/_sass/foundation/grid/_layout.scss +0 -51
- data/_sass/foundation/grid/_position.scss +0 -73
- data/_sass/foundation/grid/_row.scss +0 -95
- data/_sass/foundation/grid/_size.scss +0 -24
- data/_sass/foundation/settings/_settings.scss +0 -567
- data/_sass/foundation/typography/_alignment.scss +0 -22
- data/_sass/foundation/typography/_base.scss +0 -443
- data/_sass/foundation/typography/_helpers.scss +0 -77
- data/_sass/foundation/typography/_print.scss +0 -77
- data/_sass/foundation/typography/_typography.scss +0 -28
- data/_sass/foundation/util/_breakpoint.scss +0 -275
- data/_sass/foundation/util/_color.scss +0 -60
- data/_sass/foundation/util/_flex.scss +0 -68
- data/_sass/foundation/util/_mixins.scss +0 -235
- data/_sass/foundation/util/_selector.scss +0 -40
- data/_sass/foundation/util/_unit.scss +0 -90
- data/_sass/foundation/util/_util.scss +0 -11
- data/_sass/foundation/util/_value.scss +0 -107
- data/_sass/jquery-ui.scss +0 -1311
- data/_sass/main.scss +0 -41
- data/_sass/minima.scss +0 -51
- data/_sass/minima/_base.scss +0 -254
- data/_sass/minima/_layout.scss +0 -255
- data/_sass/minima/_syntax-highlighting.scss +0 -71
- data/_sass/scroll-top.scss +0 -31
- data/assets/js/common-libs.min.js +0 -1
- data/assets/js/custom.min.js +0 -1
- data/assets/snippet/profile.html +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0454efbee36e240e13de0d63d4ad072852f01bd92b6993fed562d5a1253f0dd
|
4
|
+
data.tar.gz: d19b12c53cace4070815f6d55d87f5af9eec757105c4016fb5cd9f79d34c4435
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28eab54d03e5e2539ea8b16909a0fc1187379de70ec95d0aee557860f640d079bbbf09f98c8779d4fb991583b32ed0ea160e6afbf6393d71e479721d1ebbacae
|
7
|
+
data.tar.gz: 3c54510400430d57605b2e715f756cfdc58d0a347c79bf9f6a8ffef2ed6721a6fce50e132fe6c8674de38ece4f41f12518bb12ef4a950ab3c0a82e3118259a46
|
data/README.md
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
# jekyll-theme-pirati
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
6
|
-
|
7
|
-
|
3
|
+
Theme of Czech Pirate Party
|
8
4
|
|
9
5
|
## Installation
|
10
6
|
|
@@ -30,11 +26,7 @@ Or install it yourself as:
|
|
30
26
|
|
31
27
|
## Usage
|
32
28
|
|
33
|
-
|
34
|
-
Menu pod ním je v `_includes/header`.
|
35
|
-
Obrázek v hlavičce stránky se mění tak že do assets/header/ vložíte vlastní background.jpg
|
36
|
-
|
37
|
-
Čtěte dokumentaci jekyll a kopirujte z pirátskych webů.
|
29
|
+
For usage see readme of https://github.com/pirati-web/example.pirati.cz
|
38
30
|
|
39
31
|
## Contributing
|
40
32
|
|
@@ -42,14 +34,10 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/jitka/
|
|
42
34
|
|
43
35
|
## Development
|
44
36
|
|
45
|
-
|
46
|
-
|
47
|
-
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
48
|
-
|
49
|
-
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
50
|
-
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-pirati.gemspec` accordingly.
|
37
|
+
See [development](development.md).
|
51
38
|
|
52
39
|
## License
|
53
40
|
|
54
|
-
The theme is available as open source under the terms of the [MIT
|
41
|
+
The theme is available as open source under the terms of the [MIT
|
42
|
+
License](https://opensource.org/licenses/MIT).
|
55
43
|
|
data/_data/menu.yml
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
top:
|
2
|
+
- link: "pirati.cz"
|
3
|
+
url: "https://www.pirati.cz"
|
4
|
+
icon: "fa fa-home"
|
5
|
+
- link: "wiki.pirati.cz"
|
6
|
+
url: "https://wiki.pirati.cz"
|
7
|
+
icon: "fa fa-home"
|
8
|
+
- link: "Pirátské listy"
|
9
|
+
url: "http://www.piratskelisty.cz"
|
10
|
+
icon: "fa fa-newspaper-o"
|
11
|
+
|
12
|
+
main:
|
13
|
+
- link: /aktuality/
|
14
|
+
name: Aktuality
|
15
|
+
match: aktuality
|
16
|
+
- link: /lide/
|
17
|
+
name: O nás
|
18
|
+
match: lide
|
19
|
+
submenu:
|
20
|
+
- link: /lide
|
21
|
+
name: Naši lidé
|
22
|
+
match: lide
|
23
|
+
- link: /komunalni-volby/
|
24
|
+
name: Komunální volby
|
25
|
+
match: komunalni-volby
|
26
|
+
- link: /kontakt/
|
27
|
+
name: Kontakt
|
28
|
+
match: kontakt
|
29
|
+
|
30
|
+
bottom:
|
31
|
+
- class: small-6 medium-4
|
32
|
+
title: Připoj se
|
33
|
+
links:
|
34
|
+
- link: /pripoj-se/
|
35
|
+
name: Dej nám vědět
|
36
|
+
- class: small-6 medium-4
|
37
|
+
title: Makáme
|
38
|
+
links:
|
39
|
+
- link: /lide/
|
40
|
+
name: Lidé
|
41
|
+
- link: /komunalni-volby/
|
42
|
+
name: Volby
|
43
|
+
- link: /aktuality/
|
44
|
+
name: Aktuality
|
45
|
+
- class: small-6 medium-4
|
46
|
+
title: Otevřenost
|
47
|
+
links:
|
48
|
+
- link: https://ucet.pirati.cz
|
49
|
+
name: Transparentní účet
|
50
|
+
- link: https://smlouvy.pirati.cz
|
51
|
+
name: Registr smluv
|
52
|
+
- link: https://wiki.pirati.cz/fo/otevrene_ucetnictvi
|
53
|
+
name: Otevřené účetnictví
|
@@ -1,23 +1,14 @@
|
|
1
|
-
<div class="c-program-candidate-badge
|
1
|
+
<div class="c-program-candidate-badge{% if include.leader %} c-program-candidate-badge--leader{% endif %}">
|
2
2
|
<div class="c-program-candidate-badge__body">
|
3
3
|
<div class="c-program-candidate-badge__avatar">
|
4
4
|
<a href="{{ include.candidate.url | relative_url }}">
|
5
5
|
<span class="c-program-candidate-badge__rank"><span>{{ include.candidate.cityCandidatePosition }}.</span></span>
|
6
|
-
|
7
|
-
{% if include.candidate.img %}
|
8
|
-
<div class="o-media__image o-media__image--lgspace">
|
9
|
-
<object data= "{{ include.candidate.img | prepend: '/assets/img/' | relative_url }}" type="image/jpg">
|
10
|
-
<div class="o-media__image o-media__image--lgspace">
|
11
|
-
<img src="{{ '/assets/img/people/ppp.jpg' | relative_url }}" alt="{{item.title}}">
|
12
|
-
</div>
|
13
|
-
</object>
|
14
|
-
</div>
|
15
|
-
{% else %}
|
16
|
-
<div class="o-media__image o-media__image--lgspace">
|
17
|
-
<img src="{{ '/assets/img/people/ppp.jpg' | relative_url }}" alt="{{item.title}}">
|
18
|
-
</div>
|
19
|
-
{% endif %}
|
20
6
|
|
7
|
+
{% if include.candidate.img %}
|
8
|
+
<img src="{{ include.candidate.img | prepend: '/assets/img/' | relative_url }}" alt="{{ include.candidate.fullname }}" class="c-program-candidate-badge__avatar-image">
|
9
|
+
{% else %}
|
10
|
+
<img src="{{ '/assets/img/people/ppp.jpg' | relative_url }}" alt="{{item.title}}">
|
11
|
+
{% endif %}
|
21
12
|
</a>
|
22
13
|
</div>
|
23
14
|
<div class="c-program-candidate-badge__description">
|
data/_includes/footer.html
CHANGED
@@ -1,23 +1,103 @@
|
|
1
1
|
<div class="text-right show-for-medium-up hide-for-print">
|
2
|
-
<a href="{{ site.
|
3
|
-
|
4
|
-
|
2
|
+
<a href="{{ site.github.url }}edit/{{ site.github.branch }}/{{ page.path }}" class="label secondary" style="background-color:#bbb">
|
3
|
+
<i class="fa fa-pencil"></i>
|
4
|
+
Navrhni úpravu
|
5
|
+
</a>
|
5
6
|
</div>
|
6
7
|
|
7
8
|
<footer class="o-section o-section--tiled o-section--bigger u-inverted u-cf">
|
8
9
|
<div class="o-section-inner">
|
9
10
|
<div class="row">
|
10
|
-
<div class="medium-12 u-stacked-medium-down">
|
11
|
-
<
|
12
|
-
|
13
|
-
<span class="u-mirror-horizontally">©</span> Piráti,
|
14
|
-
Sdílejte a nechte ostatní sdílet za stejných
|
15
|
-
|
11
|
+
<div class="medium-12 large-3 u-stacked-medium-down columns">
|
12
|
+
<img src="{{ 'assets/img/brand/logo-round.svg' | relative_url }}" alt="Česká pirátská strana" class="logo u-center-medium-down u-10paddingTop">
|
13
|
+
<p class="u-0margin u-noWrap u-50paddingTop u-smaller-line-height show-for-large">
|
14
|
+
<span class="u-mirror-horizontally">©</span> Piráti, {{ site.time | date: '%Y' }}. Všechna práva vyhlazena.
|
15
|
+
<br>Sdílejte a nechte ostatní sdílet za stejných
|
16
|
+
<br>podmínek.
|
17
|
+
</div>
|
18
|
+
<div class="medium-12 large-6 u-stacked-medium-down columns">
|
19
|
+
<div class="row u-custom-gutter">
|
20
|
+
{% for linkGroup in site.data.menu.bottom %}
|
21
|
+
<div class="columns {{ linkGroup.class }}">
|
22
|
+
<nav class="c-vertical-navigation u-center-medium-only">
|
23
|
+
{% if linkGroup.title %}
|
24
|
+
<h3 class="c-vertical-navigation__title">{{ linkGroup.title }}</h3>
|
25
|
+
{% endif %}
|
26
|
+
<ul class="c-vertical-navigation-items">
|
27
|
+
{% for linkGroupItem in linkGroup.links %}
|
28
|
+
<li class="c-vertical-navigation__item">
|
29
|
+
<a href="{{ linkGroupItem.link }}">{{ linkGroupItem.name }}</a>
|
30
|
+
</li>
|
31
|
+
{% endfor %}
|
32
|
+
</ul>
|
33
|
+
</nav>
|
34
|
+
</div>
|
35
|
+
{% endfor %}
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
<div class="medium-12 large-3 u-stacked-medium-down columns u-center-medium-down">
|
39
|
+
<nav class="c-vertical-navigation">
|
40
|
+
<h3 class="c-vertical-navigation__title">Buďte s námi v síti</h3>
|
41
|
+
<ul class="c-vertical-navigation-items c-vertical-navigation-items--horizontal">
|
42
|
+
{% if site.facebook.profilePage %}
|
43
|
+
<li class="c-vertical-navigation__item">
|
44
|
+
<a href="{{ site.facebook.profilePage }}" rel="noopener noreferrer" title="Facebook - {{ site.organization.shortName }}">
|
45
|
+
<i class="fa fa-facebook c-icon c-icon--rounded c-icon--facebook" aria-hidden="true"></i>
|
46
|
+
</a>
|
47
|
+
</li>
|
48
|
+
{% endif %}
|
49
|
+
{% if site.twitter.profile %}
|
50
|
+
<li class="c-vertical-navigation__item">
|
51
|
+
<a href="https://www.twitter.com/{{ site.twitter.profile }}" rel="noopener noreferrer" title="Twitter - {{ site.organization.shortName }}">
|
52
|
+
<i class="fa fa-twitter c-icon c-icon--rounded c-icon--twitter" aria-hidden="true"></i>
|
53
|
+
</a>
|
54
|
+
</li>
|
55
|
+
{% endif %}
|
56
|
+
{% if site.instagram.profilePage %}
|
57
|
+
<li class="c-vertical-navigation__item">
|
58
|
+
<a href="{{ site.instagram.profilePage }}" rel="noopener noreferrer" title="Instagram - {{ site.organization.shortName }}">
|
59
|
+
<i class="fa fa-instagram c-icon c-icon--rounded c-icon--instagram" aria-hidden="true"></i>
|
60
|
+
</a>
|
61
|
+
</li>
|
62
|
+
{% endif %}
|
63
|
+
{% if site.gplus.profilePage %}
|
64
|
+
<li class="c-vertical-navigation__item">
|
65
|
+
<a href="{{ site.gplus.profilePage }}" rel="noopener noreferrer" title="Google Plus - {{ site.organization.shortName }}">
|
66
|
+
<i class="fa fa-google-plus c-icon c-icon--rounded c-icon--googlePlus" aria-hidden="true"></i>
|
67
|
+
</a>
|
68
|
+
</li>
|
69
|
+
{% endif %}
|
70
|
+
</ul>
|
71
|
+
</nav>
|
72
|
+
<p class="u-10paddingTop u-maxWidth80percent u-smaller-line-height hide-for-large">
|
73
|
+
<span class="u-mirror-horizontally">©</span> Piráti, {{ site.time | date: '%Y' }}. Všechna práva vyhlazena.
|
74
|
+
<br> Sdílejte a nechte ostatní sdílet za stejných podmínek.
|
16
75
|
</div>
|
17
76
|
</div>
|
18
77
|
</div>
|
19
78
|
</footer>
|
20
79
|
|
21
|
-
|
22
|
-
|
23
|
-
|
80
|
+
{% assign contactPerson = site.people | where_exp: "item","item.uid contains site.organization.contactUid" | first %}
|
81
|
+
|
82
|
+
{% if contactPerson %}
|
83
|
+
<aside class="o-section o-section--bigger c-contact-bar u-inverted u-center-medium-down">
|
84
|
+
<div class="o-section-inner">
|
85
|
+
<div class="row">
|
86
|
+
<div class="small-12 columns">
|
87
|
+
<header class="c-contact-bar-header u-stacked-medium-down">
|
88
|
+
<h3 class="c-contact-bar__heading"> <a href="{{ '/kontakt/' | relative_url }}">Kontakt</a> </h3>
|
89
|
+
</header>
|
90
|
+
<ul class="c-contact-bar-items u-stacked-medium-down">
|
91
|
+
<li class="c-contact-bar__item u-stacked-medium-down">
|
92
|
+
<div class="c-contact-bar__description"> {{ contactPerson.fullname }},
|
93
|
+
<a href="mailto:{{ contactPerson.mail }}">{{ contactPerson.mail }}</a>
|
94
|
+
</div>
|
95
|
+
</li>
|
96
|
+
</ul>
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
</div>
|
100
|
+
</aside>
|
101
|
+
{% endif %}
|
102
|
+
|
103
|
+
<div class="__vue-root" data-app="ScrollTop"></div>
|
data/_includes/head.html
CHANGED
@@ -12,44 +12,43 @@
|
|
12
12
|
<meta name="keywords" content="{{keywords}}" />
|
13
13
|
<!-- Favicons -->
|
14
14
|
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="{{ 'assets/favicon/apple-touch-icon-57x57.png' | relative_url }}">
|
15
|
-
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{'assets/favicon/apple-touch-icon-114x114.png' | relative_url }}">
|
16
|
-
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{'assets/favicon/apple-touch-icon-72x72.png' | relative_url }}">
|
17
|
-
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{'assets/favicon/apple-touch-icon-144x144.png' | relative_url }}">
|
18
|
-
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="{{'assets/favicon/apple-touch-icon-60x60.png' | relative_url }}">
|
19
|
-
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="{{'assets/favicon/apple-touch-icon-120x120.png' | relative_url }}">
|
20
|
-
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="{{'assets/favicon/apple-touch-icon-76x76.png' | relative_url }}">
|
21
|
-
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{'assets/favicon/apple-touch-icon-152x152.png' | relative_url }}">
|
22
|
-
<link rel="icon" type="image/png" href="{{'assets/favicon/favicon-196x196.png' | relative_url }}" sizes="196x196">
|
23
|
-
<link rel="icon" type="image/png" href="{{'assets/favicon/favicon-96x96.png' | relative_url }}" sizes="96x96">
|
24
|
-
<link rel="icon" type="image/png" href="{{'assets/favicon/favicon-16x16.png' | relative_url }}" sizes="16x16">
|
25
|
-
<link rel="icon" type="image/png" href="{{'assets/favicon/favicon-32x32.png' | relative_url }}" sizes="32x32">
|
26
|
-
<link rel="icon" type="image/png" href="{{'assets/favicon/favicon-128.png' | relative_url }}" sizes="128x128">
|
27
|
-
<link rel="alternate" type="application/rss+xml" title="{{ site.
|
28
|
-
<meta name="application-name" content="{{ site.
|
15
|
+
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ 'assets/favicon/apple-touch-icon-114x114.png' | relative_url }}">
|
16
|
+
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ 'assets/favicon/apple-touch-icon-72x72.png' | relative_url }}">
|
17
|
+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ 'assets/favicon/apple-touch-icon-144x144.png' | relative_url }}">
|
18
|
+
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="{{ 'assets/favicon/apple-touch-icon-60x60.png' | relative_url }}">
|
19
|
+
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="{{ 'assets/favicon/apple-touch-icon-120x120.png' | relative_url }}">
|
20
|
+
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="{{ 'assets/favicon/apple-touch-icon-76x76.png' | relative_url }}">
|
21
|
+
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ 'assets/favicon/apple-touch-icon-152x152.png' | relative_url }}">
|
22
|
+
<link rel="icon" type="image/png" href="{{ 'assets/favicon/favicon-196x196.png' | relative_url }}" sizes="196x196">
|
23
|
+
<link rel="icon" type="image/png" href="{{ 'assets/favicon/favicon-96x96.png' | relative_url }}" sizes="96x96">
|
24
|
+
<link rel="icon" type="image/png" href="{{ 'assets/favicon/favicon-16x16.png' | relative_url }}" sizes="16x16">
|
25
|
+
<link rel="icon" type="image/png" href="{{ 'assets/favicon/favicon-32x32.png' | relative_url }}" sizes="32x32">
|
26
|
+
<link rel="icon" type="image/png" href="{{ 'assets/favicon/favicon-128.png' | relative_url }}" sizes="128x128">
|
27
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.organization.name }} RSS" href="{{ '/feed.xml' | relative_url }}">
|
28
|
+
<meta name="application-name" content="{{ site.organization.name }}">
|
29
29
|
<meta name="msapplication-TileColor" content="#000000">
|
30
|
-
<meta name="msapplication-TileImage" content="{{'assets/favicon/mstile-144x144.png' | relative_url }}">
|
31
|
-
<meta name="msapplication-square70x70logo" content="{{'assets/favicon/mstile-70x70.png' | relative_url }}">
|
32
|
-
<meta name="msapplication-square150x150logo" content="{{'assets/favicon/mstile-150x150.png' | relative_url }}">
|
33
|
-
<meta name="msapplication-wide310x150logo" content="{{'assets/favicon/mstile-310x150.png' | relative_url }}">
|
34
|
-
<meta name="msapplication-square310x310logo" content="{{'assets/favicon/mstile-310x310.png' | relative_url }}">
|
35
|
-
<meta property="og:url" content="{{page.url | absolute_url }}" />
|
30
|
+
<meta name="msapplication-TileImage" content="{{ 'assets/favicon/mstile-144x144.png' | relative_url }}">
|
31
|
+
<meta name="msapplication-square70x70logo" content="{{ 'assets/favicon/mstile-70x70.png' | relative_url }}">
|
32
|
+
<meta name="msapplication-square150x150logo" content="{{ 'assets/favicon/mstile-150x150.png' | relative_url }}">
|
33
|
+
<meta name="msapplication-wide310x150logo" content="{{ 'assets/favicon/mstile-310x150.png' | relative_url }}">
|
34
|
+
<meta name="msapplication-square310x310logo" content="{{ 'assets/favicon/mstile-310x310.png' | relative_url }}">
|
35
|
+
<meta property="og:url" content="{{ page.url | absolute_url }}" />
|
36
36
|
<meta property="og:type" content="website" />
|
37
37
|
<meta property="og:title" content="{{title}}" />
|
38
38
|
<meta property="og:description" content="{{description }}" />
|
39
39
|
{% if page.layout == 'post' %}
|
40
|
-
<meta property="og:image" content="{{page.image | relative_url }}" />
|
40
|
+
<meta property="og:image" content="{{ page.image | relative_url }}" />
|
41
41
|
{% elsif page.img %}
|
42
|
-
<meta property="og:image" content="{{
|
42
|
+
<meta property="og:image" content="{{ 'assets/{{ page.img | relative_url }}" />
|
43
43
|
{% else %}
|
44
|
-
<meta property="og:image" content="{{'
|
44
|
+
<meta property="og:image" content="{{ 'assets/img/brand/logo-round.png' | relative_url }}" />
|
45
45
|
{% endif %}
|
46
46
|
<!-- Fonts -->
|
47
47
|
{% if page.layout != 'blank' %}
|
48
48
|
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&subset=latin-ext" rel="stylesheet">
|
49
49
|
<link href="https://fonts.googleapis.com/css?family=Fira+Sans:300i,400,500,700&subset=latin-ext" rel="stylesheet">
|
50
50
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
|
51
|
-
<link href="
|
52
|
-
<link rel="stylesheet" href="{{'assets/css/main.css' | relative_url }}">
|
51
|
+
<link rel="stylesheet" href="{{ 'assets/css/main.css' | relative_url }}">
|
53
52
|
{% endif %}
|
54
53
|
<!-- API Mapy.cz that has to be in the header -->
|
55
54
|
{% if page.mapycz_api %}
|
data/_includes/header.html
CHANGED
@@ -1,61 +1,61 @@
|
|
1
|
-
<div class='thetop'></div>
|
2
1
|
<aside class="o-section o-section--smaller c-header-bar u-inverted u-inverted--darker u-center-860-down">
|
3
2
|
<div class="row">
|
4
3
|
<div class="o-section-inner" style="padding: 3px;">
|
5
4
|
<div class="medium-12 columns">
|
6
5
|
<ul class="c-header-bar-items">
|
7
|
-
{% if site.
|
6
|
+
{% if site.facebook.profilePage %}
|
8
7
|
<li class="c-header-bar__item c-header-bar__item--smallerSpace">
|
9
|
-
<a href="{{site.
|
8
|
+
<a href="{{ site.facebook.profilePage }}" rel="noopener noreferrer" target="_blank" title="Naše stránka na Facebooku">
|
10
9
|
<i class="fa fa-facebook" aria-hidden="true"></i>
|
11
10
|
</a></li>
|
12
11
|
{% endif %}
|
13
|
-
{% if site.
|
12
|
+
{% if site.twitter.profile %}
|
14
13
|
<li class="c-header-bar__item c-header-bar__item--smallerSpace">
|
15
|
-
<a href="{{site.
|
14
|
+
<a href="{{ site.twitter.profile }}" rel="noopener noreferrer" target="_blank" title="Náš účet na Twitteru">
|
16
15
|
<i class="fa fa-twitter" aria-hidden="true"></i>
|
17
16
|
</a>
|
18
17
|
</li>
|
19
18
|
{% endif %}
|
20
|
-
{% if site.
|
19
|
+
{% if site.organization.name %}
|
21
20
|
<li class="c-header-bar__item c-header-bar__item--smallerSpace">
|
22
21
|
<a href="{{'/feed.xml' | relative_url }}" rel="noopener noreferrer" target="_blank" title="Články tohoto webu v RSS">
|
23
22
|
<i class="fa fa-rss" aria-hidden="true"></i>
|
24
23
|
</a>
|
25
24
|
</li>
|
26
25
|
{% endif %}
|
27
|
-
{% if site.
|
26
|
+
{% if site.instagram.profilePage %}
|
28
27
|
<li class="c-header-bar__item c-header-bar__item--smallerSpace">
|
29
|
-
<a href={{ site.
|
28
|
+
<a href={{ site.instagram.profilePage }} rel="noopener noreferrer" target="_blank" title="Instagram - Česká pirátská strana">
|
30
29
|
<i class="fa fa-instagram" aria-hidden="true"></i>
|
31
30
|
</a>
|
32
31
|
</li>
|
33
32
|
{% endif %}
|
34
|
-
{% if site.
|
33
|
+
{% if site.gplus.profilePage %}
|
35
34
|
<li class="c-header-bar__item c-header-bar__item--smallerSpace">
|
36
|
-
<a href={{ site.
|
35
|
+
<a href={{ site.gplus.profilePage }} rel="noopener noreferrer" target="_blank" title="Google Plus - Česká pirátská strana">
|
37
36
|
<i class="fa fa-google-plus" aria-hidden="true"></i>
|
38
37
|
</a>
|
39
38
|
</li>
|
40
39
|
{% endif %}
|
41
|
-
{% if site.
|
40
|
+
{% if site.flicker.profilePage %}
|
42
41
|
<li class="c-header-bar__item c-header-bar__item--smallerSpace">
|
43
|
-
<a href={{ site.
|
42
|
+
<a href={{ site.flicker.profilePage }} rel="noopener noreferrer" target="_blank" title="Flickr - Česká pirátská strana">
|
44
43
|
<i class="fa fa-flickr" aria-hidden="true"></i>
|
45
44
|
</a>
|
46
45
|
</li>
|
47
46
|
{% endif %}
|
48
47
|
</ul>
|
49
48
|
<div class="c-header-bar-divider"></div>
|
49
|
+
|
50
50
|
<ul class="c-header-bar-items c-header-bar-items--bigLh">
|
51
|
-
|
51
|
+
{% for item in site.data.menu.top %}
|
52
52
|
<li class="c-header-bar__item">
|
53
53
|
<a href="{{ item.url }}" rel="noopener noreferrer" target="_blank">
|
54
54
|
<i class="{{ item.icon }}" aria-hidden="true"></i>
|
55
55
|
<span class="c-header-bar__itemDescription">{{ item.link }}</span>
|
56
56
|
</a>
|
57
57
|
</li>
|
58
|
-
|
58
|
+
{% endfor %}
|
59
59
|
</ul>
|
60
60
|
</div>
|
61
61
|
</div>
|
data/_includes/js/main.html
CHANGED
@@ -1,18 +1,75 @@
|
|
1
|
+
{% if jekyll.environment == 'production' %}
|
2
|
+
<!-- Stylesheets for JS files -->
|
3
|
+
{% for file in site.data.webpackManifest.manifest.css %}
|
4
|
+
<link rel="stylesheet" href="{{ file | relative_url }}">
|
5
|
+
{% endfor %}
|
6
|
+
<!-- JS files -->
|
7
|
+
{% for file in site.data.webpackManifest.manifest.js %}
|
8
|
+
<script src="{{ file | relative_url }}"></script>
|
9
|
+
{% endfor %}
|
10
|
+
{% else %}
|
11
|
+
<script src="{{ site.js_base_url }}vendor.main.js"></script>
|
12
|
+
<script src="{{ site.js_base_url }}main.js"></script>
|
13
|
+
{% endif %}
|
14
|
+
|
15
|
+
{% if site.facebook.loadSDK %}
|
1
16
|
<script>
|
2
|
-
/*
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
var
|
17
|
+
/* Facebook */
|
18
|
+
window.fbAsyncInit = function() {
|
19
|
+
FB.init({
|
20
|
+
appId : '{{ site.facebook.appId }}',
|
21
|
+
xfbml : true,
|
22
|
+
version : 'v2.5'
|
23
|
+
});
|
24
|
+
};
|
25
|
+
|
26
|
+
(function(d, s, id){
|
27
|
+
var js, fjs = d.getElementsByTagName(s)[0];
|
28
|
+
if (d.getElementById(id)) {return;}
|
29
|
+
js = d.createElement(s); js.id = id;
|
30
|
+
js.src = "//connect.facebook.net/en_US/sdk.js";
|
31
|
+
fjs.parentNode.insertBefore(js, fjs);
|
32
|
+
}(document, 'script', 'facebook-jssdk'));
|
33
|
+
</script>
|
34
|
+
{% endif %}
|
35
|
+
|
36
|
+
{% if site.twitter.loadSDK %}
|
37
|
+
<script>
|
38
|
+
/* Twitter */
|
39
|
+
window.twttr = (function(d, s, id) {
|
40
|
+
var js, fjs = d.getElementsByTagName(s)[0],
|
41
|
+
t = window.twttr || {};
|
42
|
+
if (d.getElementById(id)) return t;
|
43
|
+
js = d.createElement(s);
|
44
|
+
js.id = id;
|
45
|
+
js.src = "https://platform.twitter.com/widgets.js";
|
46
|
+
fjs.parentNode.insertBefore(js, fjs);
|
47
|
+
t._e = [];
|
48
|
+
t.ready = function(f) {
|
49
|
+
t._e.push(f);
|
50
|
+
};
|
51
|
+
return t;
|
52
|
+
}(document, "script", "twitter-wjs"));
|
53
|
+
</script>
|
54
|
+
{% endif %}
|
55
|
+
|
56
|
+
{% if site.piwik.loadSDK %}
|
57
|
+
<script>
|
58
|
+
var _paq = _paq || [];
|
59
|
+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
60
|
+
_paq.push(['trackPageView']);
|
61
|
+
_paq.push(['enableLinkTracking']);
|
62
|
+
(function() {
|
63
|
+
var u="//piwik.pirati.cz/";
|
64
|
+
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
65
|
+
_paq.push(['setSiteId', '{{ site.piwik.siteId }}']);
|
66
|
+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
67
|
+
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
68
|
+
})();
|
69
|
+
|
13
70
|
</script>
|
14
|
-
<script src="{{'assets/js/common-libs.min.js' | relative_url}}"></script>
|
15
|
-
<script src="{{'assets/js/custom.min.js' | relative_url}}"></script>
|
16
71
|
<!-- Piwik -->
|
17
|
-
<noscript><p><img src="//piwik.pirati.cz/piwik.php?idsite=
|
72
|
+
<noscript><p><img src="//piwik.pirati.cz/piwik.php?idsite={{ site.piwik.siteId }}&rec=1" style="border:0;" alt="" /></p></noscript>
|
18
73
|
<!-- End Piwik Code -->
|
74
|
+
{% endif %}
|
75
|
+
|