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',
|
text: 'Blog',
|
||||||
url: '/blog/page-0/'
|
url: '/blog/'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Style guide',
|
text: 'Style guide',
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue