Only uglify 404.html on server root
authorbep <bjorn.erik.pedersen@gmail.com>
Thu, 14 May 2015 19:37:53 +0000 (21:37 +0200)
committerbep <bjorn.erik.pedersen@gmail.com>
Thu, 14 May 2015 19:37:45 +0000 (21:37 +0200)
commitbe1a566203292bff51298afd4c8c46bd6df7cc0a
tree5c6bd0446ad8791ab882826a59c967526faad626
parentbe1287fba05fb87e80aaf3c277dd7c74408375e2
Only uglify 404.html on server root

`404.html` needs to be that and not `/404/` in the root.

There seem to be content pages in the wild with the name `404` (Hugo docs),
so this commit adds an extra check so only root 404 pages ignore the `uglifyURLs`setting.

Fixes #1140
target/page.go