1
0

Added error50x template.

This commit is contained in:
Alexander Andreev 2023-05-24 23:20:05 +04:00
parent 06dfcaac8e
commit 6e9ad9323c
Signed by: Arav
GPG Key ID: D22A817D95815393
2 changed files with 23 additions and 0 deletions

View 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}

View File

@ -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/deleted.jade
//go:generate $GOPATH/bin/jade -pkg=web -writer templates/uploaded.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/error404.jade
//go:generate $GOPATH/bin/jade -pkg=web -writer templates/error50x.jade
//go:embed assets //go:embed assets
var assetsDir embed.FS var assetsDir embed.FS