Skip to content

Commit 1712c3a

Browse files
author
calderbuild
committed
fix: blog pagination by moving blog.html to blog/index.html
jekyll-paginate requires the paginator source file to live at the paginate_path root. Changed paginate_path to /blog/page:num/ and moved blog.html to blog/index.html (removed permalink).
1 parent 13a34bd commit 1712c3a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ highlighter: rouge
1717
permalink: /blog/:year/:month/:day/:title/
1818
future: true
1919
paginate: 10
20-
paginate_path: "/page:num/"
20+
paginate_path: "/blog/page:num/"
2121

2222
plugins:
2323
- jekyll-paginate

blog.html renamed to blog/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
layout: default
33
title: Blog
44
description: All articles
5-
permalink: /blog/
65
---
76

87
<section class="blog-section">

0 commit comments

Comments
 (0)