Prevent 404.html from prettifying into 404/index.html
authorAnthony Fok <foka@debian.org>
Fri, 6 Mar 2015 11:47:04 +0000 (04:47 -0700)
committerbep <bjorn.erik.pedersen@gmail.com>
Fri, 6 Mar 2015 12:12:01 +0000 (13:12 +0100)
commitc4c19ad303cb11616a7291bdbeec997e59b6d24e
treee7d71eafc8f8a6b000bb1489659ed3c88afceaa4
parent3343cacc0e5a94ca50537cb5612b5549be2d9ca0
Prevent 404.html from prettifying into 404/index.html

Restore @realchaseadams's commit 348e123
"Force `UglyUrls` option to force `404.html` file name"
which got lost after some refactoring (commit 8db3c0b).

Remove the equivalent "force `UglyUrls`" code for `sitemap.xml`
because the refactored code now calls `renderAndWriteXML()`
which uses `WriteDestFile()` which does not prettify a filename.

Fixes #939
hugolib/site.go