cyjake / darko

🐰A Node.js port of Jekyll
82 stars 16 forks source link

previous & next post support #6

Closed cyjake closed 9 years ago

cyjake commented 9 years ago

There shall be page.previous & page.next variables, which point to the corresponding post in site.posts.

Darko returns something like [object Object] currently. This can't be right.

References:

cyjake commented 9 years ago

To take a wild guess, [object Object] might be caused by the Promisified nature of liquid-node. When it fails to solve the value of some variable, it might return an Error.

Needs proof.

cyjake commented 9 years ago

Fixed in darko@0.3.1