Fixed template bug.

The page file extension was added both in the template and in the formatter,
causing all pages to get a double extension.