mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-22 22:15:42 -05:00
chore: updated plugins
This commit is contained in:
parent
30625a9135
commit
43ece24243
@ -8,7 +8,7 @@ import * as Plugin from "./quartz/plugins"
|
|||||||
*/
|
*/
|
||||||
const config: QuartzConfig = {
|
const config: QuartzConfig = {
|
||||||
configuration: {
|
configuration: {
|
||||||
pageTitle: "Quartz 4",
|
pageTitle: "Quartz 5",
|
||||||
pageTitleSuffix: "",
|
pageTitleSuffix: "",
|
||||||
enableSPA: true,
|
enableSPA: true,
|
||||||
enablePopovers: true,
|
enablePopovers: true,
|
||||||
|
|||||||
@ -1,32 +1,17 @@
|
|||||||
import { PageLayout, SharedLayout } from "./quartz/cfg"
|
import { PageLayout, SharedLayout } from "./quartz/cfg"
|
||||||
import * as Component from "./quartz/components"
|
import * as Component from "./quartz/components"
|
||||||
import { QuartzComponent } from "./quartz/components/types"
|
import { QuartzComponent } from "./quartz/components/types"
|
||||||
import { Explorer, Graph, Search, TableOfContents, Backlinks, Comments } from "./.quartz/plugins"
|
import * as Plugin from "./.quartz/plugins"
|
||||||
|
|
||||||
const explorerComponent = Explorer() as QuartzComponent
|
|
||||||
const graphComponent = Graph() as QuartzComponent
|
|
||||||
const searchComponent = Search() as QuartzComponent
|
|
||||||
const tocComponent = TableOfContents() as QuartzComponent
|
|
||||||
const backlinksComponent = Backlinks() as QuartzComponent
|
|
||||||
const commentsComponent = Comments({
|
|
||||||
provider: "giscus",
|
|
||||||
options: {
|
|
||||||
repo: "jackyzha0/quartz",
|
|
||||||
repoId: "MDEwOlJlcG9zaXRvcnkzODcyMTMyMDg",
|
|
||||||
category: "Announcements",
|
|
||||||
categoryId: "DIC_kwDOFxRnMM4CaYBe",
|
|
||||||
mapping: "pathname",
|
|
||||||
strict: false,
|
|
||||||
reactionsEnabled: true,
|
|
||||||
inputPosition: "top",
|
|
||||||
},
|
|
||||||
}) as QuartzComponent
|
|
||||||
|
|
||||||
// components shared across all pages
|
// components shared across all pages
|
||||||
export const sharedPageComponents: SharedLayout = {
|
export const sharedPageComponents: SharedLayout = {
|
||||||
head: Component.Head(),
|
head: Component.Head(),
|
||||||
header: [],
|
header: [],
|
||||||
afterBody: [commentsComponent],
|
afterBody: [
|
||||||
|
// Plugin.Comments({
|
||||||
|
// provider: "giscus",
|
||||||
|
// options: {}) as QuartzComponent,
|
||||||
|
],
|
||||||
footer: Component.Footer({
|
footer: Component.Footer({
|
||||||
links: {
|
links: {
|
||||||
GitHub: "https://github.com/jackyzha0/quartz",
|
GitHub: "https://github.com/jackyzha0/quartz",
|
||||||
@ -52,16 +37,20 @@ export const defaultContentPageLayout: PageLayout = {
|
|||||||
Component.Flex({
|
Component.Flex({
|
||||||
components: [
|
components: [
|
||||||
{
|
{
|
||||||
Component: searchComponent,
|
Component: Plugin.Search() as QuartzComponent,
|
||||||
grow: true,
|
grow: true,
|
||||||
},
|
},
|
||||||
{ Component: Component.Darkmode() },
|
{ Component: Component.Darkmode() },
|
||||||
{ Component: Component.ReaderMode() },
|
{ Component: Component.ReaderMode() },
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
explorerComponent,
|
Plugin.Explorer() as QuartzComponent,
|
||||||
|
],
|
||||||
|
right: [
|
||||||
|
Plugin.Graph() as QuartzComponent,
|
||||||
|
Component.DesktopOnly(Plugin.TableOfContents() as QuartzComponent),
|
||||||
|
Plugin.Backlinks() as QuartzComponent,
|
||||||
],
|
],
|
||||||
right: [graphComponent, Component.DesktopOnly(tocComponent), backlinksComponent],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// components for pages that display lists of pages (e.g. tags or folders)
|
// components for pages that display lists of pages (e.g. tags or folders)
|
||||||
@ -73,13 +62,13 @@ export const defaultListPageLayout: PageLayout = {
|
|||||||
Component.Flex({
|
Component.Flex({
|
||||||
components: [
|
components: [
|
||||||
{
|
{
|
||||||
Component: searchComponent,
|
Component: Plugin.Search() as QuartzComponent,
|
||||||
grow: true,
|
grow: true,
|
||||||
},
|
},
|
||||||
{ Component: Component.Darkmode() },
|
{ Component: Component.Darkmode() },
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
explorerComponent,
|
Plugin.Explorer() as QuartzComponent,
|
||||||
],
|
],
|
||||||
right: [],
|
right: [],
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user