generated from Enveloppe/Enveloppe-Quartz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7a1fb0
commit b781cc5
Showing
135 changed files
with
6,597 additions
and
5,865 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,22 +11,10 @@ const iconsOptions: IconFolderOptions = { | |
}, | ||
}; | ||
|
||
|
||
export const sharedPageComponents: SharedLayout = { | ||
head: Component.Head(), | ||
header: [ | ||
Component.MobileOnly( | ||
Component.ExplorerBurger({ | ||
folderDefaultState: "open", | ||
folderClickBehavior: "collapse",// link, collapse | ||
iconSettings: iconsOptions, | ||
}), | ||
), | ||
Component.MobileOnly(Component.PageTitle()), | ||
Component.MobileOnly(Component.Spacer()), | ||
Component.Search(), | ||
Component.Darkmode(), | ||
], | ||
header: [], | ||
afterBody: [], | ||
footer: Component.Footer({ | ||
links: { | ||
"Email": "mailto:[email protected]", | ||
|
@@ -45,29 +33,30 @@ export const defaultContentPageLayout: PageLayout = { | |
Component.TagList(), | ||
], | ||
left: [ | ||
Component.DesktopOnly(Component.PageTitle()), | ||
Component.DesktopOnly( | ||
Component.ExplorerBurger({ | ||
folderClickBehavior: "collapse",// link, collapse | ||
folderDefaultState: "collapsed", | ||
useSavedState: true, | ||
title: "", | ||
iconSettings: iconsOptions, | ||
}), | ||
), | ||
Component.PageTitle(), | ||
Component.MobileOnly(Component.Spacer()), | ||
Component.Search(), | ||
Component.Darkmode(), | ||
Component.DesktopOnly(Component.Explorer()), | ||
], | ||
right: [ | ||
Component.DesktopOnly(Component.Graph()), | ||
Component.TableOfContents(), | ||
Component.DesktopOnly(Component.Backlinks()), | ||
Component.Graph(), | ||
Component.DesktopOnly(Component.TableOfContents()), | ||
Component.Backlinks(), | ||
], | ||
} | ||
|
||
// components for pages that display lists of pages (e.g. tags or folders) | ||
export const defaultListPageLayout: PageLayout = { | ||
beforeBody: defaultContentPageLayout.beforeBody, | ||
left: defaultContentPageLayout.left, | ||
right: [], | ||
beforeBody: [Component.Breadcrumbs(), Component.ArticleTitle(), Component.ContentMeta()], | ||
left: [ | ||
Component.PageTitle(), | ||
Component.MobileOnly(Component.Spacer()), | ||
Component.Search(), | ||
Component.Darkmode(), | ||
Component.DesktopOnly(Component.Explorer()), | ||
], | ||
right: [], | ||
} | ||
|
||
// Graph | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/usr/bin/env node | ||
import workerpool from "workerpool" | ||
const cacheFile = "./.quartz-cache/transpiled-worker.mjs" | ||
const { parseFiles } = await import(cacheFile) | ||
const { parseMarkdown, processHtml } = await import(cacheFile) | ||
workerpool.worker({ | ||
parseFiles, | ||
parseMarkdown, | ||
processHtml, | ||
}) |
Oops, something went wrong.