-
Notifications
You must be signed in to change notification settings - Fork 289
/
_config.yml
57 lines (51 loc) · 1.94 KB
/
_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing these this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: Paginate Example - 01 Typical Blog
email: jekyll@sverrirs.com
description: > # this means to ignore newlines until "baseurl:"
Shows how the jekyll-paginate-v2 gem can be used on a typical blog created in Jekyll.
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
github_username: sverrirs
# Build settings
markdown: kramdown
theme: minima
gems:
- jekyll-paginate-v2
exclude:
- Gemfile
- Gemfile.lock
# Produces a cleaner folder structure when using categories
permalink: /:year/:month/:title.html
# Explicitly turn off the old code
paginate: nil
paginate_path: nil
# Pagination Settings
pagination:
enabled: true
per_page: 3
offset: 2
permalink: '/page/:num/'
title: ':title - page :num of :max'
limit: 0
sort_field: 'date'
sort_reverse: true
############################################################
# Old jekyll-paginate pagination logic
# Uncomment thew two entries below to demonstrate how this new gem
# retains backwards compatibility with the old pagination logic
# AS OF JANUARY 2018 this code does not work anymore!
#paginate: 3
#paginate_path: "/legacy/page:num/"