add the page path to the template

The page path should override the document path, since the document path
does not really apply once all the content is rendered.

Fixes #29