Added error50x template.
This commit is contained in:
parent
06dfcaac8e
commit
6e9ad9323c
22
web/templates/error50x.jade
Normal file
22
web/templates/error50x.jade
Normal file
@ -0,0 +1,22 @@
|
||||
extends base.jade
|
||||
|
||||
block head
|
||||
:go:func Error50x(mainSite string, code int, errorMsg string)
|
||||
style(type="text/css").
|
||||
#error {
|
||||
font-size: 3.5rem;
|
||||
line-height: 5rem;
|
||||
text-align: center;
|
||||
margin: 6rem 0; }
|
||||
|
||||
#error h1 { font-size: 8rem; }
|
||||
|
||||
block header
|
||||
h1 Internal Server Error
|
||||
|
||||
block body
|
||||
section#error
|
||||
h1 #{code}
|
||||
| #{http.StatusText(code)}
|
||||
if errorMsg != ""
|
||||
| #{errorMsg}
|
@ -11,6 +11,7 @@ import (
|
||||
//go:generate $GOPATH/bin/jade -pkg=web -writer templates/deleted.jade
|
||||
//go:generate $GOPATH/bin/jade -pkg=web -writer templates/uploaded.jade
|
||||
//go:generate $GOPATH/bin/jade -pkg=web -writer templates/error404.jade
|
||||
//go:generate $GOPATH/bin/jade -pkg=web -writer templates/error50x.jade
|
||||
|
||||
//go:embed assets
|
||||
var assetsDir embed.FS
|
||||
|
Loading…
Reference in New Issue
Block a user