import { escape } from "html-escaper"; import { baseCSS } from "./css.js"; function template({ title, pathname, statusCode = 404, tabTitle, body }) { return ` ${tabTitle}

${statusCode ? `${statusCode}: ` : ""}${title}

${body || `
Path: ${escape(pathname)}
`}
`; } function subpathNotUsedTemplate(base, pathname) { return template({ pathname, statusCode: 404, title: "Not found", tabTitle: "404: Not Found", body: `

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