diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-09-13 11:33:42 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-09-14 14:25:33 +0200 |
commit | a5cda5ca4dc9ced8179eb6bcccb1bbdc567afe17 (patch) | |
tree | a71f8bb6f4490ba65ff6ace20a205914de5e6350 /commands/commands_test.go | |
parent | 5e2b28d6e64cfb5d45ad557e1482b63e4ec84292 (diff) |
server: Add 404 support
Diffstat (limited to 'commands/commands_test.go')
-rw-r--r-- | commands/commands_test.go | 5 |
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 }} |