mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-16 11:08:49 +00:00
Basic error checking
This commit is contained in:
18
src/site/pug/friendlyerror.pug
Normal file
18
src/site/pug/friendlyerror.pug
Normal file
@@ -0,0 +1,18 @@
|
||||
//- Needs title, message, statusCode
|
||||
|
||||
include includes/timeline_page.pug
|
||||
include includes/next_page_button.pug
|
||||
|
||||
- const numberFormat = new Intl.NumberFormat().format
|
||||
|
||||
doctype html
|
||||
html
|
||||
head
|
||||
meta(charset="utf-8")
|
||||
meta(name="viewport" content="width=device-width, initial-scale=1")
|
||||
title= `${title} | Bibliogram`
|
||||
link(rel="stylesheet" type="text/css" href="/static/css/main.css")
|
||||
body.error-page
|
||||
h1.code= statusCode
|
||||
p.message= message
|
||||
a(href="javascript:history.back()").back ← Go back?
|
||||
Reference in New Issue
Block a user