By default if a markdown file has attribute (front-matter) type: index, Peco will generate post list and handle pagination for this page.
For example both type and layout attributes of index.md are set to index by default so you get prop page.postspage.pagination in the layout component theme/layouts/index.vue.
In this way, you can only control pagination from your markdown file via front-matter.
Expected
Not sure, just want to make it more user-friendly.
💬 Request for Comments
Current
By default if a markdown file has attribute (front-matter)
type: index
, Peco will generate post list and handle pagination for this page.For example both
type
andlayout
attributes ofindex.md
are set toindex
by default so you get proppage.posts
page.pagination
in the layout componenttheme/layouts/index.vue
.In this way, you can only control pagination from your markdown file via front-matter.
Expected
Not sure, just want to make it more user-friendly.