feat: 404 page emitter

This commit is contained in:
Jacky Zhao
2023-09-06 21:02:21 -07:00
parent 7e1be1d5b2
commit c9ddec07aa
7 changed files with 75 additions and 4 deletions

View File

@ -1,7 +1,8 @@
import ArticleTitle from "./ArticleTitle"
import Content from "./pages/Content"
import TagContent from "./pages/TagContent"
import FolderContent from "./pages/FolderContent"
import NotFound from "./pages/404"
import ArticleTitle from "./ArticleTitle"
import Darkmode from "./Darkmode"
import Head from "./Head"
import PageTitle from "./PageTitle"
@ -36,4 +37,5 @@ export {
DesktopOnly,
MobileOnly,
RecentNotes,
NotFound,
}

View File

@ -0,0 +1,12 @@
import { QuartzComponentConstructor } from "../types"
function NotFound() {
return (
<article class="popover-hint">
<h1>404</h1>
<p>Either this page is private or doesn't exist.</p>
</article>
)
}
export default (() => NotFound) satisfies QuartzComponentConstructor