mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 21:34:06 -06:00
Update quartz.layout.ts
This commit is contained in:
parent
40997e8492
commit
fb34dbd120
@ -6,10 +6,10 @@ export const sharedPageComponents: SharedLayout = {
|
|||||||
head: Component.Head(),
|
head: Component.Head(),
|
||||||
header: [],
|
header: [],
|
||||||
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",
|
"Scroll to top ↑": "#",
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
@ -22,45 +22,30 @@ export const defaultContentPageLayout: PageLayout = {
|
|||||||
Component.TagList(),
|
Component.TagList(),
|
||||||
],
|
],
|
||||||
left: [
|
left: [
|
||||||
Component.PageTitle(),
|
Component.PageTitle(),
|
||||||
Component.MobileOnly(Component.Spacer()),
|
Component.MobileOnly(Component.Spacer()),
|
||||||
Component.Flex({
|
Component.Search(),
|
||||||
components: [
|
Component.Darkmode(),
|
||||||
{
|
Component.DesktopOnly(Component.RecentNotes({ limit: 3, showTags: false })),
|
||||||
Component: Component.Search(),
|
Component.Explorer(),
|
||||||
grow: true,
|
|
||||||
},
|
|
||||||
{ Component: Component.Darkmode() },
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
Component.RecentNotes({
|
|
||||||
title: "最近笔记",
|
|
||||||
limit: 3,
|
|
||||||
showTags: false,
|
|
||||||
}),
|
|
||||||
Component.Explorer(),
|
|
||||||
],
|
],
|
||||||
right: [
|
right: [
|
||||||
Component.DesktopOnly(Component.TableOfContents()),
|
Component.DesktopOnly(Component.TableOfContents()),
|
||||||
Component.Backlinks(),
|
Component.Backlinks(),
|
||||||
Component.Graph(),
|
Component.Graph(),
|
||||||
],
|
],
|
||||||
afterBody: [],
|
afterBody: [],
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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()),
|
||||||
Component.Search(),
|
Component.Search(),
|
||||||
Component.Darkmode(),
|
Component.Darkmode(),
|
||||||
Component.RecentNotes({
|
Component.DesktopOnly(Component.RecentNotes({ limit: 3, showTags: false })),
|
||||||
title: "最近笔记",
|
|
||||||
limit: 3,
|
|
||||||
showTags: false,
|
|
||||||
}),
|
|
||||||
Component.Explorer(),
|
Component.Explorer(),
|
||||||
],
|
],
|
||||||
right: [],
|
right: [],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user