make "/blog/" the first page

This commit is contained in:
madrilene 2024-02-12 11:20:14 +01:00
parent 27456d072c
commit 351cef7ac6
2 changed files with 2 additions and 3 deletions

View file

@ -14,7 +14,7 @@ module.exports = {
}, },
{ {
text: 'Blog', text: 'Blog',
url: '/blog/page-0/' url: '/blog/'
}, },
{ {
text: 'Style guide', text: 'Style guide',

View file

@ -5,8 +5,7 @@ layout: blog
pagination: pagination:
data: collections.posts data: collections.posts
size: 6 size: 6
permalink: 'blog/page-{{ pagination.pageNumber }}/index.html' permalink: 'blog/{% if pagination.pageNumber >=1 %}page-{{ pagination.pageNumber + 1 }}/{% endif %}index.html'
redirectFrom: ['/blog/', '/blog/page-0/']
--- ---
This blog has a pagination of {{ pagination.size }} posts per page. This blog has a pagination of {{ pagination.size }} posts per page.