jekyll-kde-theme 0.2.10 → 0.3.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 +42 -1
- data/_includes/blog.html +34 -0
- data/_includes/footer.html +24 -12
- data/_includes/header.html +7 -5
- data/_sass/base.scss +17 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ee9a54a4ebfd76b1edeae13cee4c4705f883bf71707cc1fe82179d71042ab29
|
4
|
+
data.tar.gz: c35c8e38ead72a523a85cc30dc91ce4e6f1fd4d3af0115a1cd106e8065977245
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fb1a0048ed1b5ad12aff04bbc32774a0481ac92dddebbb1fb4b7678987490c855ed818c12e8d86a54b5330ab2abe7bc56112a3d75a8ce2830e0e5a12c83d728
|
7
|
+
data.tar.gz: 47025a5951e37aced8dee5e3916d2b199875da3f184f0582018205b0ae582933ba6fc77527f2b8b51414eaff9b6ed7547c0045e20ab08b2f1695345081fd87d0
|
data/README.md
CHANGED
@@ -36,13 +36,54 @@ css-include: /css/main.css
|
|
36
36
|
* Feature 1
|
37
37
|
* Feature 2
|
38
38
|
```
|
39
|
-
|
39
|
+
|
40
|
+
|
41
|
+
### Blog
|
42
|
+
|
43
|
+
In `_config.yml`, put
|
44
|
+
```
|
45
|
+
paginate: 3
|
46
|
+
```
|
47
|
+
|
48
|
+
And in the `index.html` page, you can include the blog component.
|
49
|
+
|
50
|
+
```
|
51
|
+
{% include blog.html %}
|
52
|
+
```
|
40
53
|
|
41
54
|
### Options
|
42
55
|
|
43
56
|
Following options are available in `_config.yml`
|
44
57
|
|
45
58
|
* `app_icon`: Path to the icon displayed in the navbar
|
59
|
+
* `navigation`: Navigation menu settings
|
60
|
+
* `navigation.top[].title`: Title for the top navigation menu item
|
61
|
+
* `navigation.top[].url`: URL for the top navigation menu item
|
62
|
+
* `navigation.bottom[].name`: Section title for the bottom links
|
63
|
+
* `navigation.bottom[].items[].title`: Title for the bottom links
|
64
|
+
* `navigation.bottom[].items[].url`: URL for the bottom links
|
65
|
+
|
66
|
+
`navigation` option example:
|
67
|
+
|
68
|
+
```yaml
|
69
|
+
navigation:
|
70
|
+
top:
|
71
|
+
- title: Changelog
|
72
|
+
url: /changelog.html
|
73
|
+
- title: Download
|
74
|
+
url: /download.html
|
75
|
+
bottom:
|
76
|
+
- name: Community
|
77
|
+
items:
|
78
|
+
- title: Konsole Forums
|
79
|
+
url: https://forum.kde.org/viewforum.php?f=227&sid=2e54340bf2c58589fec0f3406a4ce171
|
80
|
+
- name: News & Press
|
81
|
+
items:
|
82
|
+
- title: Announcements
|
83
|
+
url: https://www.kde.org/announcements/
|
84
|
+
- title: KDE.news
|
85
|
+
url: https://dot.kde.org/
|
86
|
+
```
|
46
87
|
|
47
88
|
## Build example
|
48
89
|
|
data/_includes/blog.html
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
<div class="announcement-feed mb-3">
|
2
|
+
<h2>Announcements</h2>
|
3
|
+
{% for post in paginator.posts %}
|
4
|
+
<h3>{{ post.title }}<i>{{ post.date | date_to_string }}</i></h3>
|
5
|
+
<q>{{ post.excerpt | strip_html | truncatewords:30 }}</q>
|
6
|
+
<a href="{{ post.url }}" class="learn-more">Read full announcement</a>
|
7
|
+
{% endfor %}
|
8
|
+
|
9
|
+
{% if paginator.total_pages > 1 %}
|
10
|
+
<div class="pagination justify-content-center mt-3">
|
11
|
+
{% if paginator.previous_page %}
|
12
|
+
<a class="ml-1 mr-1" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a>
|
13
|
+
{% else %}
|
14
|
+
<span>« Prev</span>
|
15
|
+
{% endif %}
|
16
|
+
|
17
|
+
{% for page in (1..paginator.total_pages) %}
|
18
|
+
{% if page == paginator.page %}
|
19
|
+
<span class="ml-1 mr-1">{{ page }}</span>
|
20
|
+
{% elsif page == 1 %}
|
21
|
+
<a class="ml-1 mr-1" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
|
22
|
+
{% else %}
|
23
|
+
<a class="ml-1 mr-1" href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
|
24
|
+
{% endif %}
|
25
|
+
{% endfor %}
|
26
|
+
|
27
|
+
{% if paginator.next_page %}
|
28
|
+
<a class="ml-1 mr-1" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next »</a>
|
29
|
+
{% else %}
|
30
|
+
<span>Next »</span>
|
31
|
+
{% endif %}
|
32
|
+
</div>
|
33
|
+
{% endif %}
|
34
|
+
</div>
|
data/_includes/footer.html
CHANGED
@@ -23,17 +23,31 @@
|
|
23
23
|
|
24
24
|
<section id="kLinks">
|
25
25
|
<div class="row">
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
{% if site.navigation.bottom %}
|
27
|
+
{% for section in site.navigation.bottom %}
|
28
|
+
<nav class="col-sm">
|
29
|
+
<h3>{{ section.name }}</h3>
|
30
|
+
{% for item in section.items %}
|
31
|
+
<a href="{{ item.url }}">{{ item.title }}</a>
|
32
|
+
{% endfor %}
|
33
|
+
</nav>
|
34
|
+
{% endfor %}
|
35
|
+
{% else %}
|
36
|
+
{% comment %}
|
37
|
+
Default bottom navigation
|
38
|
+
{% endcomment %}
|
39
|
+
<nav class="col-sm">
|
40
|
+
<h3>Community</h3>
|
41
|
+
<a href="https://forum.kde.org">Forums</a>
|
42
|
+
</nav>
|
30
43
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
44
|
+
<nav class="col-sm">
|
45
|
+
<h3>News & Press</h3>
|
46
|
+
<a href="https://www.kde.org/announcements/">Announcements</a>
|
47
|
+
<a href="https://dot.kde.org/">KDE.news</a>
|
48
|
+
<a href="https://planetkde.org/">Planet KDE</a>
|
49
|
+
</nav>
|
50
|
+
{% endif %}
|
37
51
|
</div>
|
38
52
|
</section>
|
39
53
|
|
@@ -74,6 +88,4 @@
|
|
74
88
|
</div>
|
75
89
|
|
76
90
|
<!-- Standard JS Files, bootstrap Async -->
|
77
|
-
<script src="{{ "/assets/nav.js" | relative_url }}" defer></script>
|
78
|
-
<script src="{{ "/assets/preview.js" | relative_url }}" defer></script>
|
79
91
|
<script src="https://cdn.kde.org/aether-devel/bootstrap.js"></script>
|
data/_includes/header.html
CHANGED
@@ -18,7 +18,13 @@
|
|
18
18
|
<a class="nav-link {% if page.url == '/' %}active{% endif %}"
|
19
19
|
href="/" aria-haspopup="true" aria-expanded="false">{{ site.title }}</a>
|
20
20
|
</li>
|
21
|
-
|
21
|
+
|
22
|
+
{% if site.navigation.top %}
|
23
|
+
{% assign sorted = site.navigation.top %}
|
24
|
+
{% else %}
|
25
|
+
{% assign sorted = site.pages | sort: "sorted" %}
|
26
|
+
{% endif %}
|
27
|
+
|
22
28
|
{% for nav in sorted %}
|
23
29
|
{% if nav.title and (nav.title != "Changelog" or (site.changelogs | size) != 0) %}
|
24
30
|
<li class="nav-item">
|
@@ -26,11 +32,7 @@
|
|
26
32
|
</li>
|
27
33
|
{% endif %}
|
28
34
|
{% endfor %}
|
29
|
-
<li class="nav-item">
|
30
|
-
<a class="nav-link" href="https://www.kde.org/donate">Donate</a>
|
31
|
-
</li>
|
32
35
|
</ul>
|
33
36
|
</div>
|
34
37
|
</nav>
|
35
38
|
</header>
|
36
|
-
|
data/_sass/base.scss
CHANGED
@@ -550,3 +550,20 @@ main.navfix {
|
|
550
550
|
height: 48px;
|
551
551
|
width: auto;
|
552
552
|
}
|
553
|
+
|
554
|
+
.announcement-feed {
|
555
|
+
h3 {
|
556
|
+
font-size: inherit;
|
557
|
+
font-weight: bold;
|
558
|
+
i {
|
559
|
+
color: #b0b8b8;
|
560
|
+
font-size: 90%;
|
561
|
+
font-weight: normal;
|
562
|
+
padding-left: 5px;
|
563
|
+
}
|
564
|
+
}
|
565
|
+
|
566
|
+
q {
|
567
|
+
diplay: block;
|
568
|
+
}
|
569
|
+
}
|
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.3.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-
|
11
|
+
date: 2019-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jekyll-paginate
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,6 +75,7 @@ extra_rdoc_files: []
|
|
61
75
|
files:
|
62
76
|
- LICENSE.txt
|
63
77
|
- README.md
|
78
|
+
- _includes/blog.html
|
64
79
|
- _includes/footer.html
|
65
80
|
- _includes/head.html
|
66
81
|
- _includes/header.html
|