Update quartz.layout.ts

This commit is contained in:
enneaa 2025-03-13 21:41:26 +08:00 committed by GitHub
parent 2602f7f363
commit e8299e2ed2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ export const defaultContentPageLayout: PageLayout = {   
], ],
left: [ left: [
Component.PageTitle(),   Component.PageTitle(),  
Component.MobileOnly(Component.Spacer()),   // Component.MobileOnly(Component.Spacer()),  
Component.Flex({  Component.Flex({ 
components: [  components: [ 
{ {
@ -53,9 +53,9 @@ export const defaultContentPageLayout: PageLayout = {   
category: 'Announcements', category: 'Announcements',
// from data-category-id // from data-category-id
categoryId: 'DIC_kwDOOHb7a84Cn6os', categoryId: 'DIC_kwDOOHb7a84Cn6os',
themeUrl: "https://enneaaa.netlify.app/static/giscus", themeUrl: "https://enneaaa.netlify.app/static/giscus", // corresponds to quartz/static/giscus/
lightTheme: "light-theme", lightTheme: "light-theme", // corresponds to light-theme.css in quartz/static/giscus/
darkTheme: "dark-theme", darkTheme: "dark-theme", // corresponds to dark-theme.css quartz/static/giscus/
} }
}), }),
], ],
@ -66,7 +66,7 @@ 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.DesktopOnly(Component.RecentNotes({ limit: 3, showTags: false })), Component.DesktopOnly(Component.RecentNotes({ limit: 3, showTags: false })),