upash / peco

nothing here, move on..
MIT License
209 stars 12 forks source link

[RFC] Simplify the way to generate post list #6

Closed egoist closed 6 years ago

egoist commented 6 years ago

💬 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 and layout attributes of index.md are set to index by default so you get prop page.posts page.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.