Update quartz.layout.ts

This commit is contained in:
enneaa 2025-03-13 02:06:37 +08:00 committed by GitHub
parent 2bbdc27c40
commit 92a17ee584
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,22 +28,22 @@ export const defaultContentPageLayout: PageLayout = {   
components: [  components: [ 
{ {
Component: Component.Search(),  Component: Component.Search(), 
grow: true,  grow: true,  
}, },
{ Component: Component.Darkmode() },  { Component: Component.Darkmode() }, 
], ],
}), }),
Component.Explorer(),   
Component.RecentNotes({    Component.RecentNotes({   
title: "最近笔记", title: "最近笔记",
limit: 5, limit: 5,
showTags: true showTags: true
}),  }), 
Component.Explorer(),   
], ],
right: [ right: [
Component.DesktopOnly(Component.TableOfContents()),   Component.DesktopOnly(Component.TableOfContents()),   
Component.Backlinks(),     Component.Backlinks(),    
Component.Graph(),       Component.Graph(),       
],  ], 
afterBody: [], afterBody: [],
} }
@ -53,15 +53,15 @@ 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.RecentNotes({   
Component.RecentNotes({  
title: "最近笔记", title: "最近笔记",
limit: 5, limit: 5,
showTags: true showTags: true
}),  }), 
Component.Explorer(),   
], ],
right: [], right: [],
} }