jekyll-kde-theme 0.3.2 → 0.4.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 +4 -4
- data/_includes/blog.html +22 -9
- data/_includes/footer.html +21 -0
- data/_includes/head.html +10 -10
- data/_includes/header.html +15 -4
- data/_layouts/post.html +3 -2
- data/_sass/base.scss +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3786a6d801cda90a75672d21b27b79b2f67404c14fb98e2d6912b194e8bdc5e5
|
4
|
+
data.tar.gz: ac04c611ace78f5d141830b824e21e42fa98b34b245556861b48ab8d9df2ba5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5409c724ed22e4bf6a97f000756260b6fe31d6d630186a998a9013ae62d9ba53912be6031a257a270b42da05da873191bd895a7ef10bd8c3873544e55824f5a2
|
7
|
+
data.tar.gz: 315d989261ae5a36fc24e99f20b31370ef15235e094b4c1f03174920575ee0096172a66bd384980985cf1f719172fe3526fe9c81e82a7a2dca4466b30ea43588
|
data/_includes/blog.html
CHANGED
@@ -16,15 +16,28 @@
|
|
16
16
|
<span>« {% if site.prev %}{{site.prev}}{% else %}Prev{% endif %}</span>
|
17
17
|
{% endif %}
|
18
18
|
|
19
|
-
{%
|
20
|
-
{%
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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 %} »</a>
|
data/_includes/footer.html
CHANGED
@@ -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
|
|
data/_includes/header.html
CHANGED
@@ -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.
|
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
data/_sass/base.scss
CHANGED
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.
|
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-
|
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.
|
146
|
+
rubygems_version: 3.0.3
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: Jekyll theme for KDE websites
|