summaryrefslogtreecommitdiffstats
path: root/commands/commands_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-09-13 11:33:42 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-09-14 14:25:33 +0200
commita5cda5ca4dc9ced8179eb6bcccb1bbdc567afe17 (patch)
treea71f8bb6f4490ba65ff6ace20a205914de5e6350 /commands/commands_test.go
parent5e2b28d6e64cfb5d45ad557e1482b63e4ec84292 (diff)
server: Add 404 support
Diffstat (limited to 'commands/commands_test.go')
-rw-r--r--commands/commands_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/commands/commands_test.go b/commands/commands_test.go
index 97d81ec6e..d37ec1f0d 100644
--- a/commands/commands_test.go
+++ b/commands/commands_test.go
@@ -370,6 +370,11 @@ Single: {{ .Title }}
`)
+ writeFile(t, filepath.Join(dir, "layouts", "404.html"), `
+404: {{ .Title }}|Not Found.
+
+`)
+
writeFile(t, filepath.Join(dir, "layouts", "_default", "list.html"), `
List: {{ .Title }}