jekyll-kde-theme 0.3.2 → 0.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: dd797dcc14ab827652d59e997d6c4ca1231c21530e426fb1547ecfd165096812
4
- data.tar.gz: 88a0991e7ce7f4ec4f7ae18c0be99679154390c7bfd7271f4f686bec1396a018
3
+ metadata.gz: 3786a6d801cda90a75672d21b27b79b2f67404c14fb98e2d6912b194e8bdc5e5
4
+ data.tar.gz: ac04c611ace78f5d141830b824e21e42fa98b34b245556861b48ab8d9df2ba5d
5
5
  SHA512:
6
- metadata.gz: d59aac94dae4301360ca3e0cabbd73e3f58bc1040be2f041ac076b41d68aed69378d0ba4f4962e9a8bab40121611636b242c85b7733658156597fb208802a131
7
- data.tar.gz: e06c3adc843a30a58d1c132755d3a2efc327f1708560092abdcf66975623ed973aea8cee87c5a672ec2d28fe2109b31f78b6b87c82ce3bc12a46d51d1178ae80
6
+ metadata.gz: 5409c724ed22e4bf6a97f000756260b6fe31d6d630186a998a9013ae62d9ba53912be6031a257a270b42da05da873191bd895a7ef10bd8c3873544e55824f5a2
7
+ data.tar.gz: 315d989261ae5a36fc24e99f20b31370ef15235e094b4c1f03174920575ee0096172a66bd384980985cf1f719172fe3526fe9c81e82a7a2dca4466b30ea43588
data/_includes/blog.html CHANGED
@@ -16,15 +16,28 @@
16
16
  <span>&laquo; {% if site.prev %}{{site.prev}}{% else %}Prev{% endif %}</span>
17
17
  {% endif %}
18
18
 
19
- {% for page in (1..paginator.total_pages) %}
20
- {% if page == paginator.page %}
21
- <span class="ml-1 mr-1">{{ page }}</span>
22
- {% elsif page == 1 %}
23
- <a class="ml-1 mr-1" href="/">{{ page }}</a>
24
- {% else %}
25
- <a class="ml-1 mr-1" href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
26
- {% endif %}
27
- {% endfor %}
19
+ {% if paginator.total_pages > 20 %}
20
+ {% for page in (1..paginator.total_pages) %}
21
+ {% assign relative_to_current = paginator.page | minus: page | replace: '-', '' | divided_by: 1 %}
22
+ {% if page == paginator.page %}
23
+ <span class="ml-1 mr-1">{{ page }}</span>
24
+ {% elsif relative_to_current < 5 and page == 1 %}
25
+ <a class="ml-1 mr-1" href="{{ '/' | relative_url }}">{{ page }}</a>
26
+ {% elsif relative_to_current < 5 %}
27
+ <a class="ml-1 mr-1" href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
28
+ {% endif %}
29
+ {% endfor %}
30
+ {% else %}
31
+ {% for page in (1..paginator.total_pages) %}
32
+ {% if page == paginator.page %}
33
+ <span class="ml-1 mr-1">{{ page }}</span>
34
+ {% elsif page == 1 %}
35
+ <a class="ml-1 mr-1" href="{{ '/' | relative_url }}">{{ page }}</a>
36
+ {% else %}
37
+ <a class="ml-1 mr-1" href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
38
+ {% endif %}
39
+ {% endfor %}
40
+ {% endif %}
28
41
 
29
42
  {% if paginator.next_page %}
30
43
  <a class="ml-1 mr-1" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">{% if site.next %}{{site.next}}{% else %}Next{% endif %} &raquo;</a>
@@ -90,3 +90,24 @@
90
90
 
91
91
  <!-- Standard JS Files, bootstrap Async -->
92
92
  <script src="https://cdn.kde.org/aether-devel/bootstrap.js"></script>
93
+
94
+ {% if site.matomo %}
95
+
96
+
97
+ <!-- Matomo -->
98
+ <script type="text/javascript">
99
+ var _paq = window._paq || [];
100
+ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
101
+ _paq.push(['trackPageView']);
102
+ _paq.push(['enableLinkTracking']);
103
+ (function() {
104
+ var u="https://stats.kde.org/";
105
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
106
+ _paq.push(['setSiteId', '{{ site.matomo }}']);
107
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
108
+ g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
109
+ })();
110
+ </script>
111
+ <noscript>
112
+ <!-- End Matomo Code -->
113
+ {% endif %}
data/_includes/head.html CHANGED
@@ -8,22 +8,22 @@
8
8
  {% if page.summary %}
9
9
  <meta name="description" content="{{ page.summary | escape }}">
10
10
  {% endif %}
11
- {%if page.tags %}
11
+ {% if page.tags %}
12
12
  <meta name="keywords" content="{{ page.tags | join: ', ' | escape }}"/>
13
- {%endif %}
13
+ {% endif %}
14
14
 
15
15
  <!-- Icons -->
16
- <link href="/assets/aether/media/192x192.png" rel="icon" sizes="192x192" />
17
- <link href="/assets/aether/media/180x180.png" rel="apple-touch-icon" sizes="180x180" />
18
- <link href="/assets/aether/media/128x128.svg" rel="icon" sizes="128x128" />
19
- <link href="/assets/aether/media/64x64.svg" rel="icon" sizes="64x64" />
20
- <link href="/assets/aether/media/32x32.svg" rel="icon" sizes="32x32" />
21
- <link href="/assets/aether/media/24x24.svg" rel="icon" sizes="24x24" />
22
- <link href="/assets/aether/media/16x16.svg" rel="icon" sizes="16x16" />
16
+ <link href="{{ '/assets/aether/media/192x192.png' | relative_url }}" rel="icon" sizes="192x192" />
17
+ <link href="{{ '/assets/aether/media/180x180.png' | relative_url }}" rel="apple-touch-icon" sizes="180x180" />
18
+ <link href="{{ '/assets/aether/media/128x128.svg' | relative_url }}" rel="icon" sizes="128x128" />
19
+ <link href="{{ '/assets/aether/media/64x64.svg' | relative_url }}" rel="icon" sizes="64x64" />
20
+ <link href="{{ '/assets/aether/media/32x32.svg' | relative_url }}" rel="icon" sizes="32x32" />
21
+ <link href="{{ '/assets/aether/media/24x24.svg' | relative_url }}" rel="icon" sizes="24x24" />
22
+ <link href="{{ '/assets/aether/media/16x16.svg' | relative_url }}" rel="icon" sizes="16x16" />
23
23
 
24
24
  <!-- Bootstrap core CSS -->
25
25
  <link rel="stylesheet" href="https://cdn.kde.org/aether/css/bootstrap.min.css">
26
26
 
27
- <link rel="stylesheet" href="/css/main.css">
27
+ <link rel="stylesheet" href="{{ '/css/main.css' | relative_url }}">
28
28
  </head>
29
29
 
@@ -1,7 +1,7 @@
1
1
  <header class="header clearfix">
2
2
  <nav id="kHeaderNav" class="navbar navbar-expand-lg container-fluid">
3
- <a class="navbar-brand {% if page.url == '/' %}navbar-brand-active{% endif %}" href="/index.html" id="KontactGlobalLogo">
4
- <img src="{% if site.app_icon %}{{ site.app_icon }}{% else %}/assets/img/app_icon.png{% endif %}">
3
+ <a class="navbar-brand {% if page.url == '/' %}navbar-brand-active{% endif %}" href="{{ '/index.html' | relative_url }}" id="KontactGlobalLogo">
4
+ <img src="{% if site.app_icon %}{{ site.app_icon | relative_url }}{% else %}{{ '/assets/img/app_icon.png' | relative_url }}{% endif %}">
5
5
  </a>
6
6
  <button class="navbar-toggler" type="button" data-toggle="collapse"
7
7
  data-target="#kMainNavbar" aria-controls="kMainNavbar"
@@ -18,7 +18,7 @@
18
18
  <ul class="navbar-nav mr-auto">
19
19
  <li class="nav-item">
20
20
  <a class="nav-link {% if page.url == '/' %}active{% endif %}"
21
- href="/" aria-haspopup="true" aria-expanded="false">{{ site.title }}</a>
21
+ href="{{ '/' | relative_url }}" aria-haspopup="true" aria-expanded="false">{{ site.title }}</a>
22
22
  </li>
23
23
 
24
24
  {% if site.navigation.top %}
@@ -28,7 +28,18 @@
28
28
  {% endif %}
29
29
 
30
30
  {% for nav in sorted %}
31
- {% if nav.title and (nav.title != "Changelog" or (site.changelogs | size) != 0) %}
31
+ {% if nav.subnav %}
32
+ <li class="nav-item dropdown">
33
+ <a class="nav-link dropdown-toggle" href="#" id="navbar{{nav.title|slugify}}" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
34
+ {{ nav.title }}
35
+ </a>
36
+ <div class="dropdown-menu" aria-labelledby="navbar{{nav.title|slugify}}">
37
+ {% for subnav in nav.subnav %}
38
+ <a class="dropdown-item" href="{{ subnav.url }}">{{ subnav.title }}</a>
39
+ {% endfor %}
40
+ </div>
41
+ </li>
42
+ {% elsif nav.title and (nav.title != "Changelog" or (site.changelogs | size) != 0) %}
32
43
  <li class="nav-item">
33
44
  <a class="nav-link {% if page.url == nav.url %}active{% endif %}" href="{{ nav.url }}">{{ nav.title }}</a>
34
45
  </li>
data/_layouts/post.html CHANGED
@@ -3,5 +3,6 @@ layout: default
3
3
  ---
4
4
 
5
5
  <main class="container">
6
- {{ content }}
7
- </div>
6
+ <h1>{{ page.title }}</h1>
7
+ {{ content }}
8
+ </main>
data/_sass/base.scss CHANGED
@@ -567,3 +567,4 @@ main.navfix {
567
567
  diplay: block;
568
568
  }
569
569
  }
570
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-kde-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Schwan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-19 00:00:00.000000000 Z
11
+ date: 2019-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubygems_version: 3.0.4
146
+ rubygems_version: 3.0.3
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: Jekyll theme for KDE websites