${statusCode ? `${statusCode}: ` : ""}${title}
${body || `Path: ${escape(pathname)}`}
import { escape } from "html-escaper"; import { baseCSS } from "./css.js"; function template({ title, pathname, statusCode = 404, tabTitle, body }) { return `
Path: ${escape(pathname)}`}
In your site
you have your base path set to ${base}. Do you want to go there instead?
Come to our Discord if you need help.
` }); } function notFoundTemplate(pathname, message = "Not found") { return template({ pathname, statusCode: 404, title: message, tabTitle: `404: ${message}` }); } export { template as default, notFoundTemplate, subpathNotUsedTemplate };