make "/blog/" the first page
This commit is contained in:
parent
27456d072c
commit
351cef7ac6
2 changed files with 2 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ module.exports = {
|
|||
},
|
||||
{
|
||||
text: 'Blog',
|
||||
url: '/blog/page-0/'
|
||||
url: '/blog/'
|
||||
},
|
||||
{
|
||||
text: 'Style guide',
|
||||
|
|
|
|||
|
|
@ -5,8 +5,7 @@ layout: blog
|
|||
pagination:
|
||||
data: collections.posts
|
||||
size: 6
|
||||
permalink: 'blog/page-{{ pagination.pageNumber }}/index.html'
|
||||
redirectFrom: ['/blog/', '/blog/page-0/']
|
||||
permalink: 'blog/{% if pagination.pageNumber >=1 %}page-{{ pagination.pageNumber + 1 }}/{% endif %}index.html'
|
||||
---
|
||||
|
||||
This blog has a pagination of {{ pagination.size }} posts per page.
|
||||
|
|
|
|||
Loading…
Reference in a new issue