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
b37a51d968
commit
e64ca175bf
@ -5,6 +5,7 @@ import * as Component from "./quartz/components"
|
|||||||
export const sharedPageComponents: SharedLayout = {
|
export const sharedPageComponents: SharedLayout = {
|
||||||
head: Component.Head(),
|
head: Component.Head(),
|
||||||
header: [],
|
header: [],
|
||||||
|
afterBody: [],
|
||||||
left: [Component.RecentNotes({
|
left: [Component.RecentNotes({
|
||||||
title: "最近笔记",
|
title: "最近笔记",
|
||||||
limit: 5,
|
limit: 5,
|
||||||
@ -19,9 +20,9 @@ export const sharedPageComponents: SharedLayout = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 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(),
|
||||||
],
|
],
|
||||||
@ -31,16 +32,17 @@ export const defaultContentPageLayout: PageLayout = {
|
|||||||
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.Graph(),
|
Component.Graph(),
|
||||||
|
Component.DesktopOnly(Component.TableOfContents()),
|
||||||
],
|
],
|
||||||
afterBody: [
|
afterBody: [
|
||||||
Component.Backlinks(),
|
Component.Backlinks(),
|
||||||
@ -57,16 +59,15 @@ export const defaultContentPageLayout: PageLayout = {
|
|||||||
categoryId: 'DIC_kwDOOHb7a84Cn6os',
|
categoryId: 'DIC_kwDOOHb7a84Cn6os',
|
||||||
themeUrl: "https://enneaaa.netlify.app/static/giscus",
|
themeUrl: "https://enneaaa.netlify.app/static/giscus",
|
||||||
lightTheme: "light-theme",
|
lightTheme: "light-theme",
|
||||||
darkTheme: "dark-theme",
|
darkTheme: "dark-theme",
|
||||||
inputPosition: "top",
|
inputPosition: "top",
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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)
|
||||||
export const defaultListPageLayout: PageLayout = {
|
export const defaultListPageLayout: PageLayout = {
|
||||||
beforeBody: [Component.ArticleTitle(), Component.ContentMeta()],
|
beforeBody: [Component.ArticleTitle(), Component.ContentMeta()],
|
||||||
left: [
|
left: [
|
||||||
Component.PageTitle(),
|
Component.PageTitle(),
|
||||||
Component.MobileOnly(Component.Spacer()),
|
Component.MobileOnly(Component.Spacer()),
|
||||||
@ -74,5 +75,4 @@ export const defaultListPageLayout: PageLayout = {
|
|||||||
Component.Darkmode(),
|
Component.Darkmode(),
|
||||||
],
|
],
|
||||||
right: [],
|
right: [],
|
||||||
afterBody: [],
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user