Changes
3 changed files (+17/-3)
-
-
@@ -56,6 +56,7 @@ new JSONCanvasParser(),new ObsidianMarkdownParser({ frontmatter: true }), ); const pageBuilder = new DefaultThemeBuilder({ siteName: "Macana", copyright: "© 2024 Shota FUJI. This document is licensed under CC BY 4.0", faviconSvg: ["Assets", "logo.svg"], faviconPng: ["Assets", "logo-64x64.png"],
-
-
-
@@ -150,6 +150,13 @@ }export interface DefaultThemeBuilderConstructorParameters { /** * Website's name, title. * * The default theme display this text inside <title> tag. */ siteName: string; /** * Copyright text to display at website footer. * The page buidler does not add/subtract to the text: do not forget to * include "Copyright" or "©".
-
@@ -177,15 +184,17 @@ #copyright: string;#faviconSvg?: readonly string[]; #faviconPng?: readonly string[]; #siteLogo?: readonly string[]; #siteName: string; constructor( { copyright, faviconSvg, faviconPng, siteLogo }: { copyright, faviconSvg, faviconPng, siteLogo, siteName }: DefaultThemeBuilderConstructorParameters, ) { this.#copyright = copyright; this.#faviconPng = faviconPng; this.#faviconSvg = faviconSvg; this.#siteLogo = siteLogo; this.#siteName = siteName; } async build(
-
@@ -364,6 +373,7 @@ () => (// Adds 1 to depth due to `<name>/index.html` conversion. <PathResolverProvider depth={pathPrefix.length + 1}> <Html.JSONCanvasView title={this.#siteName} tree={tree} copyright={this.#copyright} content={content}
-
@@ -440,6 +450,7 @@ () => (// Adds 1 to depth due to `<name>/index.html` conversion. <PathResolverProvider depth={pathPrefix.length + 1}> <Html.ObsidianMarkdownView title={this.#siteName} document={item} language={item.metadata.language || parentLanguage} assets={assets}
-
-
-
@@ -88,6 +88,8 @@ );} interface ViewProps { title: string; document: Document; language: string;
-
@@ -98,7 +100,7 @@ children: JSX.ElementChildrenAttribute["children"];} function View( { assets, language, document, children }: ViewProps, { assets, language, document, children, title }: ViewProps, ) { const path = usePathResolver();
-
@@ -107,7 +109,7 @@ <html lang={language}><head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>{document.metadata.title}</title> <title>{document.metadata.title} - {title}</title> <link rel="stylesheet" href={path.resolve(assets.globalCss)}
-