Skip to content

Commit df6a341

Browse files
🧩✨:enable jekyll-paginate-v2 plugin #1281
PR URL: #1281 Reviewed-by: OpenINF-bot <[email protected]> --------- Signed-off-by: Derek Lewis <[email protected]> Acked-by: Grimes <[email protected]>
1 parent d3210b4 commit df6a341

File tree

3 files changed

+67
-5
lines changed

3 files changed

+67
-5
lines changed

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ group :jekyll_plugins do
1313
gem "jekyll-relative-links"
1414
gem "jekyll-sitemap"
1515
gem "jekyll-seo-tag"
16-
# gem 'jekyll-paginate-v2'
17-
# gem 'jekyll-auto-authors'
16+
gem "jekyll-paginate-v2"
17+
# gem "jekyll-auto-authors"
1818
end
1919

2020
gem "webrick"

Gemfile.lock

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ GEM
5050
safe_yaml (~> 1.0)
5151
terminal-table (>= 1.8, < 4.0)
5252
webrick (~> 1.7)
53+
jekyll-paginate-v2 (3.0.0)
54+
jekyll (>= 3.0, < 5.0)
5355
jekyll-redirect-from (0.16.0)
5456
jekyll (>= 3.3, < 5.0)
5557
jekyll-relative-links (0.7.0)
@@ -143,6 +145,7 @@ DEPENDENCIES
143145
csv
144146
dotenv
145147
jekyll
148+
jekyll-paginate-v2
146149
jekyll-redirect-from
147150
jekyll-relative-links
148151
jekyll-seo-tag
@@ -154,4 +157,4 @@ DEPENDENCIES
154157
webrick
155158

156159
BUNDLED WITH
157-
2.5.9
160+
2.5.13

_config.yml

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ twitter_username: OpenINF
99
github_username: OpenINF
1010
repository: OpenINF/open.inf.is
1111

12-
# Site build settings
12+
# Site build settings.
1313
markdown: kramdown
1414
plugins:
1515
- jekyll-redirect-from
1616
- jekyll-relative-links
1717
- jekyll-sitemap
1818
- jekyll-seo-tag
19+
- jekyll-paginate-v2
1920

20-
## Content collections
21+
## Content collections.
2122
# @see https://jekyllrb.com/docs/collections
2223
collections_dir: collections
2324
collections:
@@ -65,6 +66,64 @@ defaults:
6566
body_classes:
6667
- hide-butterbar
6768

69+
##
70+
# Site configuration for the Jekyll 3 Pagination Gem.
71+
# The values here represent the defaults if nothing is set.
72+
# @see https://github.com/sverrirs/jekyll-paginate-v2/blob/HEAD/README-GENERATOR.md#site-configuration
73+
pagination:
74+
# Site-wide kill switch, disabled here it doesn't run at all
75+
enabled: true
76+
77+
# Set to 'true' to enable pagination debugging. This can be enabled in the site config or only for individual pagination pages
78+
debug: false
79+
80+
# The default document collection to paginate if nothing is specified ('posts' is default)
81+
collection: 'posts'
82+
83+
# How many objects per paginated page, used to be `paginate` (default: 0, means all)
84+
per_page: 10
85+
86+
# The permalink structure for the paginated pages (this can be any level deep)
87+
permalink: '/page/:num/' # Pages are index.html inside this folder (default)
88+
#permalink: '/page/:num.html' # Pages are simple html files
89+
#permalink: '/page/:num' # Pages are html files, linked jekyll extensionless permalink style.
90+
91+
# Optional the title format for the paginated pages (supports :title for original page title, :num for pagination page number, :max for total number of pages)
92+
title: ':title - page :num'
93+
94+
# Limit how many paginated pages to create (default: 0, means all)
95+
limit: 0
96+
97+
# Optional, defines the field that the posts should be sorted on (omit to default to 'date')
98+
sort_field: 'date'
99+
100+
# Optional, sorts the posts in reverse order (omit to default decending or sort_reverse: true)
101+
sort_reverse: true
102+
103+
# Optional, the default category to use, omit or just leave this as 'posts' to get a backwards-compatible behavior (all posts)
104+
category: 'posts'
105+
106+
# Optional, the default tag to use, omit to disable
107+
tag: ''
108+
109+
# Optional, the default locale to use, omit to disable (depends on a field 'locale' to be specified in the posts,
110+
# in reality this can be any value, suggested are the Microsoft locale-codes (e.g. en_US, en_GB) or simply the ISO-639 language code )
111+
locale: ''
112+
113+
# Optional,omit or set both before and after to zero to disable.
114+
# Controls how the pagination trail for the paginated pages look like.
115+
trail:
116+
before: 2
117+
after: 2
118+
119+
# Optional, the default file extension for generated pages (e.g html, json, xml).
120+
# Internally this is set to html by default
121+
extension: html
122+
123+
# Optional, the default name of the index file for generated pages (e.g. 'index.html')
124+
# Without file extension
125+
indexpage: 'index'
126+
68127
# Exclude from processing.
69128
exclude:
70129
- AUTHORS

0 commit comments

Comments
 (0)