mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2026-03-02 02:41:34 +00:00
Basic error checking
This commit is contained in:
parent
c2ac1b2259
commit
9f5fa84f9a
9 changed files with 156 additions and 49 deletions
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?
|
||||
Loading…
Add table
Add a link
Reference in a new issue