Docpad error 'length' of undefined

63 Views Asked by At

My config

After "docpad run" produces errors

What could be the problem?

I tried to remove "docpad-paged", but don't result.

1

There are 1 best solutions below

3
On BEST ANSWER

I see that getPageUrl is complaining that there is not a post for the Id -1 here

You need to change this line to

<% for pageNumber in [[email protected]] by 1: %>

the change here is by 1 as it will prevent coffee-script automatically going from 0 to -1 when there are no pages to loop.