mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 06:44:07 -06:00
Update quartz.layout.ts
This commit is contained in:
parent
adc405cdc7
commit
303824c0f8
@ -2,66 +2,50 @@ import { PageLayout, SharedLayout } from "./quartz/cfg"
|
|||||||
import * as Component from "./quartz/components"
|
import * as Component from "./quartz/components"
|
||||||
|
|
||||||
// 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: [],
|
||||||
left: [Component.RecentNotes({
|
left: [Component.RecentNotes({
|
||||||
title: "最近笔记",
|
title: "最近笔记",
|
||||||
limit: 5,
|
limit: 5,
|
||||||
showTags: true
|
showTags: true
|
||||||
})],
|
})],
|
||||||
afterBody: [],
|
afterBody: [],
|
||||||
footer: Component.Footer({
|
footer: Component.Footer({
|
||||||
links: {
|
links: {
|
||||||
GitHub: "https://github.com/jackyzha0/quartz",
|
GitHub: "https://github.com/jackyzha0/quartz",
|
||||||
"Discord Community": "https://discord.gg/cRFFHYye7t",
|
"Discord Community": "https://discord.gg/cRFFHYye7t",
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
// components for pages that display a single page (e.g. a single note)
|
// components for pages that display a single page (e.g. a single note)
|
||||||
export const defaultContentPageLayout: PageLayout = {
|
export const defaultContentPageLayout: PageLayout = {
|
||||||
beforeBody: [
|
beforeBody: [
|
||||||
Component.ArticleTitle(),
|
Component.ArticleTitle(),
|
||||||
Component.ContentMeta(),
|
Component.ContentMeta(),
|
||||||
Component.TagList(),
|
Component.TagList(),
|
||||||
],
|
],
|
||||||
left: [
|
left: [
|
||||||
Component.PageTitle(),
|
Component.PageTitle(),
|
||||||
Component.MobileOnly(Component.Spacer()),
|
Component.MobileOnly(Component.Spacer()),
|
||||||
Component.Flex({
|
Component.Flex({
|
||||||
components: [
|
components: [
|
||||||
{
|
{
|
||||||
Component: Component.Search(),
|
Component: Component.Search(),
|
||||||
grow: true,
|
grow: true,
|
||||||
},
|
},
|
||||||
{ Component: Component.Darkmode() },
|
{ Component: Component.Darkmode() },
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
Component.Explorer(),
|
||||||
],
|
],
|
||||||
right: [
|
right: [
|
||||||
Component.DesktopOnly(Component.TableOfContents()),
|
Component.DesktopOnly(Component.TableOfContents()),
|
||||||
Component.Graph(),
|
Component.Graph(),
|
||||||
],
|
],
|
||||||
afterBody: [
|
afterBody: [
|
||||||
Component.Backlinks(),
|
Component.Backlinks(),
|
||||||
Component.Comments({
|
|
||||||
provider: 'giscus',
|
|
||||||
options: {
|
|
||||||
// from data-repo
|
|
||||||
repo: 'enneaa/giscus',
|
|
||||||
// from data-repo-id
|
|
||||||
repoId: 'R_kgDOOHb7aw',
|
|
||||||
// from data-category
|
|
||||||
category: 'Announcements',
|
|
||||||
// from data-category-id
|
|
||||||
categoryId: 'DIC_kwDOOHb7a84Cn6os',
|
|
||||||
themeUrl: "https://enneaaa.netlify.app/static/giscus",
|
|
||||||
lightTheme: "light-theme",
|
|
||||||
darkTheme: "dark-theme",
|
|
||||||
inputPosition: "top",
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,6 +57,7 @@ export const defaultListPageLayout: PageLayout = {
|
|||||||
Component.MobileOnly(Component.Spacer()),
|
Component.MobileOnly(Component.Spacer()),
|
||||||
Component.Search(),
|
Component.Search(),
|
||||||
Component.Darkmode(),
|
Component.Darkmode(),
|
||||||
|
Component.Explorer(),
|
||||||
],
|
],
|
||||||
right: [],
|
right: [],
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user