server: Add 404 support

This commit is contained in:
Bjørn Erik Pedersen 2022-09-13 11:33:42 +02:00
parent 5e2b28d6e6
commit a5cda5ca4d
5 changed files with 131 additions and 23 deletions

View file

@ -368,6 +368,11 @@ Content
Single: {{ .Title }}
`)
writeFile(t, filepath.Join(dir, "layouts", "404.html"), `
404: {{ .Title }}|Not Found.
`)
writeFile(t, filepath.Join(dir, "layouts", "_default", "list.html"), `