mirror of
https://gitlab.com/MisterBiggs/brain-quartz.git
synced 2025-06-15 17:26:40 +00:00
personalize more
This commit is contained in:
parent
168bf9c3c1
commit
ab3bff9c09
@ -23,7 +23,7 @@ const config: QuartzConfig = {
|
|||||||
typography: {
|
typography: {
|
||||||
header: "Schibsted Grotesk",
|
header: "Schibsted Grotesk",
|
||||||
body: "Source Sans Pro",
|
body: "Source Sans Pro",
|
||||||
code: "IBM Plex Mono",
|
code: "JetBrains Mono",
|
||||||
},
|
},
|
||||||
colors: {
|
colors: {
|
||||||
lightMode: {
|
lightMode: {
|
||||||
|
@ -33,8 +33,6 @@ export const defaultContentPageLayout: PageLayout = {
|
|||||||
Component: Component.Search(),
|
Component: Component.Search(),
|
||||||
grow: true,
|
grow: true,
|
||||||
},
|
},
|
||||||
{ Component: Component.Darkmode() },
|
|
||||||
{ Component: Component.ReaderMode() },
|
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
Component.RecentNotes(),
|
Component.RecentNotes(),
|
||||||
|
@ -1,16 +1,27 @@
|
|||||||
import { i18n } from "../../i18n"
|
import { i18n } from "../../i18n"
|
||||||
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "../types"
|
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "../types"
|
||||||
|
import Graph from "../Graph"
|
||||||
|
|
||||||
const NotFound: QuartzComponent = ({ cfg }: QuartzComponentProps) => {
|
const NotFound: QuartzComponent = ({ cfg }: QuartzComponentProps) => {
|
||||||
// If baseUrl contains a pathname after the domain, use this as the home link
|
// If baseUrl contains a pathname after the domain, use this as the home link
|
||||||
const url = new URL(`https://${cfg.baseUrl ?? "example.com"}`)
|
const url = new URL(`https://${cfg.baseUrl ?? "example.com"}`)
|
||||||
const baseDir = url.pathname
|
const baseDir = url.pathname
|
||||||
|
|
||||||
|
|
||||||
|
const GraphComponent = Graph({
|
||||||
|
localGraph: {
|
||||||
|
depth: -1, // Shows all nodes
|
||||||
|
scale: 0.9, // You might want to adjust scale for the full graph
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<article class="popover-hint">
|
<article class="popover-hint">
|
||||||
<h1>404</h1>
|
<h1>404</h1>
|
||||||
<p>{i18n(cfg.locale).pages.error.notFound}</p>
|
<p>{i18n(cfg.locale).pages.error.notFound}</p>
|
||||||
<a href={baseDir}>{i18n(cfg.locale).pages.error.home}</a>
|
<a href={baseDir}>{i18n(cfg.locale).pages.error.home}</a>
|
||||||
|
<br /><br />
|
||||||
|
<GraphComponent cfg={cfg} />
|
||||||
</article>
|
</article>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 162 KiB |
Binary file not shown.
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 288 KiB |
Loading…
x
Reference in New Issue
Block a user