mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-30 15:40:05 +03:00
server: Add 404 support
This commit is contained in:
parent
5e2b28d6e6
commit
a5cda5ca4d
5 changed files with 131 additions and 23 deletions
|
@ -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"), `
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue