From ae1606081f172a78242f998f427e5b5a87a55368 Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Thu, 16 Jun 2022 23:19:50 -0600 Subject: [PATCH] just link home on error page instead of showing full navbar --- nirvash.go | 2 +- templates/header_err.html | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 templates/header_err.html diff --git a/nirvash.go b/nirvash.go index d91c5c5..f7c90ea 100644 --- a/nirvash.go +++ b/nirvash.go @@ -41,7 +41,7 @@ func main() { }, Fallback: *template.Must(template.ParseFiles( pathConcat(templateRoot, "error.html"), - pathConcat(templateRoot, "header.html"), + pathConcat(templateRoot, "header_err.html"), pathConcat(templateRoot, "footer.html"))), } diff --git a/templates/header_err.html b/templates/header_err.html new file mode 100644 index 0000000..9a86220 --- /dev/null +++ b/templates/header_err.html @@ -0,0 +1,18 @@ +{{define "header"}} + + + + + + + + Nirvash — CMS + + +

Nirvash CMS

+ +{{end}} \ No newline at end of file