Update quartz.layout.ts

This commit is contained in:
enneaa 2025-03-18 20:13:34 +08:00 committed by GitHub
parent fbdd9f33da
commit 4e56758bc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,7 @@ 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.Breadcrumbs(), // Component.Breadcrumbs(), 
Component.ArticleTitle(), Component.ArticleTitle(),
Component.ContentMeta(), Component.ContentMeta(),
], ],
@ -59,15 +59,15 @@ export const defaultContentPageLayout: PageLayout = {   
// from data-category // from data-category
category: 'Announcements', category: 'Announcements',
// from data-category-id // from data-category-id
categoryId: 'DIC_kwDOOHb7a84Cn6os', categoryId: 'DIC_kwDOOHb7a84Cn6os', 
themeUrl: "https://enneaa.netlify.app/static/giscus", // corresponds to quartz/static/giscus/   themeUrl: "https://www.catmuse.me/static/giscus",   
lightTheme: "light", // corresponds to light-theme.css in quartz/static/giscus/ lightTheme: "light",
darkTheme: "dark", // corresponds to dark-theme.css quartz/static/giscus/  darkTheme: "dark",  
mapping: "title", mapping: "title",
inputPosition: "bottom", inputPosition: "bottom",
} }
}), }),
Component.MobileOnly(Component.RecentNotes({ Component.MobileOnly(Component.RecentNotes({ 
title: "最近更新", title: "最近更新",
showTags: false, showTags: false,
limit: 5, limit: 5,