File tree 9 files changed +87
-3
lines changed
9 files changed +87
-3
lines changed Original file line number Diff line number Diff line change 1
1
source "https://rubygems.org"
2
2
3
3
gem "bulma-clean-theme"
4
+ gem "jekyll-paginate-v2"
Original file line number Diff line number Diff line change 37
37
jekyll-feed (0.15.1 )
38
38
jekyll (>= 3.7 , < 5.0 )
39
39
jekyll-paginate (1.1.0 )
40
+ jekyll-paginate-v2 (3.0.0 )
41
+ jekyll (>= 3.0 , < 5.0 )
40
42
jekyll-sass-converter (1.5.2 )
41
43
sass (~> 3.4 )
42
44
jekyll-seo-tag (2.7.1 )
@@ -74,6 +76,7 @@ PLATFORMS
74
76
75
77
DEPENDENCIES
76
78
bulma-clean-theme
79
+ jekyll-paginate-v2
77
80
78
81
BUNDLED WITH
79
82
2.2.5
Original file line number Diff line number Diff line change 1
1
theme : bulma-clean-theme
2
2
title : Shutter - Screenshot Tool
3
3
description : Shutter - Screenshot Tool website
4
- paginate : 5
5
- paginate_path : " /blog/page:num"
6
4
permalink : pretty
7
5
footer_menu : footer_menu
8
6
@@ -26,3 +24,25 @@ defaults:
26
24
27
25
plugins :
28
26
- jekyll-feed
27
+ - jekyll-paginate-v2
28
+
29
+ autopages :
30
+ enabled : true
31
+ categories :
32
+ enabled : false
33
+ collections :
34
+ enabled : false
35
+ tags :
36
+ layouts :
37
+ - autopage_tags.html
38
+ enabled : true
39
+
40
+ pagination :
41
+ enabled : true
42
+ per_page : 10
43
+ permalink : ' /page:num/'
44
+ sort_field : ' date'
45
+ sort_reverse : true
46
+ trail :
47
+ before : 5
48
+ after : 5
Original file line number Diff line number Diff line change 30
30
link : /contact/
31
31
- name : Blog
32
32
link : /blog/
33
+ dropdown :
34
+ - name : Releases
35
+ link : /tag/release/
36
+ - name : News
37
+ link : /tag/news/
33
38
- name : <i class="fas fa-rss-square"></i>
34
39
link : /feed.xml
Original file line number Diff line number Diff line change
1
+ <!-- replaced page loop with one compatible with jekyll-paginate-v2 -->
2
+ < nav class ="pagination is-centered ">
3
+ {% if paginator.previous_page %}
4
+ < a href ="{{ site.baseurl }}{{ paginator.previous_page_path }} " class ="pagination-previous is-info "> Previous</ a >
5
+ {% else %}
6
+ < p class ="pagination-previous " disabled > Previous</ p >
7
+ {% endif %}
8
+ {% if paginator.next_page %}
9
+ < a href ="{{ site.baseurl }}{{ paginator.next_page_path }} " class ="pagination-next is-info "> Next</ a >
10
+ {% else %}
11
+ < p class ="pagination-next " disabled > Next</ p >
12
+ {% endif %}
13
+ < ul class ="pagination-list ">
14
+ {% for trail in paginator.page_trail %}
15
+ {% if page.url == trail.path %}
16
+ < li > < a class ="pagination-link is-current "> {{ trail.num }}</ a > </ li >
17
+ {% else %}
18
+ < li > < a href ="{{ trail.path | prepend: site.baseurl | remove: "index.html " }}" class="pagination-link "> {{ trail.num }}</ a > </ li >
19
+ {% endif %}
20
+ {% endfor %}
21
+ </ ul >
22
+ </ nav >
Original file line number Diff line number Diff line change
1
+ < a class ="tag is-primary " href ="{{ site.baseurl }}/tag/{{ tag }}/ "> {{ tag }}</ a >
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <!-- verbatim copy of theme's blog.html due to https://github.com/sverrirs/jekyll-paginate-v2/issues/88 -->
6
+ < div class ="columns is-multiline ">
7
+ < div class ="column is-12 ">
8
+ {% include pagination.html %}
9
+ </ div >
10
+ {% for post in paginator.posts %}
11
+ < div class ="column is-12 ">
12
+ {% include post-card.html %}
13
+ </ div >
14
+ {% endfor %}
15
+ < div class ="column is-12 ">
16
+ {% include pagination.html %}
17
+ </ div >
18
+ < div class ="column is-12 ">
19
+ {% include subscribe.html %}
20
+ </ div >
21
+ </ div >
Original file line number Diff line number Diff line change 1
1
---
2
2
layout: blog
3
3
title: Blog
4
+ pagination:
5
+ enabled: true
4
6
---
Original file line number Diff line number Diff line change 40
40
from = " /preview/*"
41
41
to = " /screenshots"
42
42
43
+ [[redirects ]]
44
+ from = " /category/news"
45
+ to = " /tag/news"
46
+ [[redirects ]]
47
+ from = " /category/release"
48
+ to = " /tag/release"
49
+ [[redirects ]]
50
+ from = " /category/*"
51
+ to = " /blog"
52
+
43
53
[[redirects ]]
44
54
from = " /2018/09/quick-bug-fix-in-0-94-2"
45
55
to = " /releases/0.94.2"
46
56
force = true
47
-
48
57
[[redirects ]]
49
58
from = " /2018/09/new-bug-fix-release-0-94-1"
50
59
to = " /releases/0.94.1"
You can’t perform that action at this time.
0 commit comments