docpad / docpad-plugin-paged

Adds support to DocPad for rendering a document into multiple pages.
Other
28 stars 11 forks source link

Fixed Support for paged files outside of root of file system. #4

Closed ericleslie closed 11 years ago

ericleslie commented 11 years ago

I made these changes to restore support for paged files that lived in a sub-directory. Previously if the blog was in /blog/ all the URLs generated by getPagedUrl would point to /blog/.

These changes work in docpad@6.30.x.

ericleslie commented 11 years ago

It seems the output of .get('firstPageUrl') has changed from 6.30 to 6.31. I will look into this further.

benjamind commented 11 years ago

Aha could be....

Thanks for the submission though, great to see people using and contributing to this.

balupton commented 11 years ago

Please try out DocPad v6.44 with Paged v2.2 as there has been huge improvements in this area. Happy to re-open if it is still an issue.

ericleslie commented 11 years ago

I've updated everything and have run into some problems. Here's the gist error output. Is there anything I can do to debug this further?

https://gist.github.com/ericleslie/5910415

balupton commented 11 years ago

No worries, so v2.2.0 has some b/c breaks, one of them is that the document prototype extensions are now template helpers, that means @document.hasPrevPage() now becomes @hasPrevPage(). Also getPagedUrl has been renamed to getPageUrl. See the changelog and the readme examples for more information.