mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-26 14:24:05 -06:00
Update quartz.layout.ts
This commit is contained in:
parent
d0a9b0fe65
commit
2bbdc27c40
@ -15,15 +15,15 @@ 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(),
|
||||||
],
|
],
|
||||||
left: [
|
left: [
|
||||||
Component.PageTitle(),
|
Component.PageTitle(),
|
||||||
Component.MobileOnly(Component.Spacer()),
|
Component.MobileOnly(Component.Spacer()),
|
||||||
Component.Flex({
|
Component.Flex({
|
||||||
components: [
|
components: [
|
||||||
{
|
{
|
||||||
@ -33,31 +33,30 @@ export const defaultContentPageLayout: PageLayout = {
|
|||||||
{ Component: Component.Darkmode() },
|
{ Component: Component.Darkmode() },
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
Component.Explorer(),
|
Component.Explorer(),
|
||||||
Component.RecentNotes({
|
Component.RecentNotes({
|
||||||
title: "最近笔记",
|
title: "最近笔记",
|
||||||
limit: 5,
|
limit: 5,
|
||||||
showTags: true
|
showTags: true
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
right: [
|
right: [
|
||||||
Component.DesktopOnly(Component.TableOfContents()),
|
Component.DesktopOnly(Component.TableOfContents()),
|
||||||
Component.Graph(),
|
Component.Backlinks(),
|
||||||
|
Component.Graph(),
|
||||||
],
|
],
|
||||||
afterBody: [
|
afterBody: [],
|
||||||
Component.Backlinks(),
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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.Explorer(),
|
Component.Explorer(),
|
||||||
Component.RecentNotes({
|
Component.RecentNotes({
|
||||||
title: "最近笔记",
|
title: "最近笔记",
|
||||||
limit: 5,
|
limit: 5,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user