summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorbep <bjorn.erik.pedersen@gmail.com>2015-03-07 15:18:00 +0100
committerbep <bjorn.erik.pedersen@gmail.com>2015-03-07 15:18:00 +0100
commit602ceec06d0ee2065d39b42a646ba72ab443fb81 (patch)
tree144b8753164213e9810ffb844d62f8895e9e035c /target
parent851badcb7e819ad425c7eee2f30eee9a73bc37ea (diff)
Handle 404 thread safely
Replaces hack that temporarily changes a global flag. Fixes #955 Fixes #939
Diffstat (limited to 'target')
-rw-r--r--target/page.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/page.go b/target/page.go
index b02e13925..389089edc 100644
--- a/target/page.go
+++ b/target/page.go
@@ -46,7 +46,7 @@ func (pp *PagePub) Translate(src string) (dest string, err error) {
dir = filepath.Join(pp.PublishDir, dir)
}
- if pp.UglyUrls || file == "index.html" {
+ if pp.UglyUrls || file == "index.html" || file == "404.html" {
return filepath.Join(dir, fmt.Sprintf("%s%s", name, ext)), nil
}