JSRocksHQ / harmonic

The next static site generator
http://harmonicjs.com/
MIT License
283 stars 26 forks source link

Pagination support #5

Open jaydson opened 10 years ago

jaydson commented 10 years ago

Harmonic must have pagination support for posts.

jaydson commented 10 years ago

This can be done using client-side API. See: https://github.com/es6rocks/harmonic/commit/020d5aad44d54fbbd041a8702715b3076a9697c9

jaydson commented 9 years ago

Reopening due to the issue #88 Harmonic also must to support back-end pagination.

//cc @UltCombo

UltCombo commented 9 years ago

Yes, we need pagination. Should we do it in the front-end or back-end?

UltCombo commented 9 years ago

If we do it in the back-end, how should the post pages' URLs look?

http://es6rocks.com/2
http://es6rocks.com/page/2
http://es6rocks.com/posts/page/2
jaydson commented 9 years ago

We already have client-side pagination support. It's not the best approach, but we can handle it. My personal blog is already using it: http://jaydson.org

For back-end pagination, i think we should support custom URL's.

UltCombo commented 9 years ago

Oh I see. The default template/ES6Rocks template does not have any kind of pagination at the moment though, I think we should prioritize this first and at least add some kind of pagination to it.

UltCombo commented 9 years ago

ES6Rocks.com's new theme has client-side pagination/infinite scroll, nice! Not sure how high of a priority this issue is now.

jaydson commented 9 years ago

Yep, we need to prioritize this.

UltCombo commented 9 years ago

@jaydson think you will be able to work on this? Or document/discuss how those custom URLs functionality should work.

jaydson commented 9 years ago

Sure, i'll work on this and try to organize the issues we already have.

UltCombo commented 9 years ago

thanks! :D

jaydson commented 9 years ago

Hum, this issue is old, but remains important.

UltCombo commented 9 years ago

True, we haven't decided how to generate the output and how to integrate it in the themes.