mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-26 22:34:06 -06:00
Update quartz.layout.ts
This commit is contained in:
parent
f722b11202
commit
9668be4be1
@ -5,11 +5,11 @@ import * as Component from "./quartz/components"
|
|||||||
export const sharedPageComponents: SharedLayout = {
|
export const sharedPageComponents: SharedLayout = {
|
||||||
head: Component.Head(),
|
head: Component.Head(),
|
||||||
header: [],
|
header: [],
|
||||||
afterBody: [],
|
afterBody: [],
|
||||||
left: [Component.RecentNotes({
|
left: [Component.RecentNotes({
|
||||||
title: "最近笔记",
|
title: "最近笔记",
|
||||||
limit: 5,
|
limit: 5,
|
||||||
showTags: true
|
showTags: true
|
||||||
})],
|
})],
|
||||||
footer: Component.Footer({
|
footer: Component.Footer({
|
||||||
links: {
|
links: {
|
||||||
@ -22,31 +22,30 @@ 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: [
|
||||||
{
|
{
|
||||||
Component: Component.Search(),
|
Component: Component.Search(),
|
||||||
grow: true,
|
grow: true,
|
||||||
},
|
},
|
||||||
{ Component: Component.Darkmode() },
|
{ Component: Component.Darkmode() },
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
Component.Explorer(),
|
|
||||||
],
|
],
|
||||||
right: [
|
right: [
|
||||||
Component.Graph(),
|
|
||||||
Component.DesktopOnly(Component.TableOfContents()),
|
Component.DesktopOnly(Component.TableOfContents()),
|
||||||
|
Component.Graph(),
|
||||||
],
|
],
|
||||||
afterBody: [
|
afterBody: [
|
||||||
Component.Backlinks(),
|
Component.Backlinks(),
|
||||||
Component.Comments({
|
Component.Comments({
|
||||||
provider: 'giscus',
|
provider: 'giscus',
|
||||||
options: {
|
options: {
|
||||||
// from data-repo
|
// from data-repo
|
||||||
@ -56,7 +55,7 @@ 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://enneaaa.netlify.app/static/giscus",
|
themeUrl: "https://enneaaa.netlify.app/static/giscus",
|
||||||
lightTheme: "light-theme",
|
lightTheme: "light-theme",
|
||||||
darkTheme: "dark-theme",
|
darkTheme: "dark-theme",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user