sintaxi / harp

Static Web Server/Generator/Bundler
http://harpjs.com
5k stars 343 forks source link

Page Navigation #339

Closed siamak closed 10 years ago

siamak commented 10 years ago

How add Page navigation in pages? please help

kennethormandy commented 10 years ago

Hey @siamakmokhtari,

We’ll do our best to help. Can you explain the problem you’re having a bit more?

Thanks!

Edit Sorry, didn’t mean to close that.

siamak commented 10 years ago

I want to seprate pages with page-navigation like Wordpress. For example in iahr.com/page-1 or /page-2 ...

silentrob commented 10 years ago

In Harp, each page is a new page, and it mirrors your folder structure. Have a look at this doc for more information. http://harpjs.com/docs/development/public

So in your example, just create a page-1.html and that will be public.

kennethormandy commented 10 years ago

Just to follow up on this, if you’re really set on having pagination, you can also use List.js client side.