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
303824c0f8
commit
d0a9b0fe65
@ -1,15 +1,10 @@
|
|||||||
import { PageLayout, SharedLayout } from "./quartz/cfg"
|
import { PageLayout, SharedLayout } from "./quartz/cfg"
|
||||||
import * as Component from "./quartz/components"
|
import * as Component from "./quartz/components"
|
||||||
|
|
||||||
// components shared across all pages
|
// components shared across all pages
|
||||||
export const sharedPageComponents: SharedLayout = {
|
export const sharedPageComponents: SharedLayout = {
|
||||||
head: Component.Head(),
|
head: Component.Head(),
|
||||||
header: [],
|
header: [],
|
||||||
left: [Component.RecentNotes({
|
|
||||||
title: "最近笔记",
|
|
||||||
limit: 5,
|
|
||||||
showTags: true
|
|
||||||
})],
|
|
||||||
afterBody: [],
|
afterBody: [],
|
||||||
footer: Component.Footer({
|
footer: Component.Footer({
|
||||||
links: {
|
links: {
|
||||||
@ -38,11 +33,16 @@ export const defaultContentPageLayout: PageLayout = {
|
|||||||
{ Component: Component.Darkmode() },
|
{ Component: Component.Darkmode() },
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
Component.Explorer(),
|
Component.Explorer(),
|
||||||
|
Component.RecentNotes({
|
||||||
|
title: "最近笔记",
|
||||||
|
limit: 5,
|
||||||
|
showTags: true
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
right: [
|
right: [
|
||||||
Component.DesktopOnly(Component.TableOfContents()),
|
Component.DesktopOnly(Component.TableOfContents()),
|
||||||
Component.Graph(),
|
Component.Graph(),
|
||||||
],
|
],
|
||||||
afterBody: [
|
afterBody: [
|
||||||
Component.Backlinks(),
|
Component.Backlinks(),
|
||||||
@ -54,10 +54,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.Explorer(),
|
||||||
|
Component.RecentNotes({
|
||||||
|
title: "最近笔记",
|
||||||
|
limit: 5,
|
||||||
|
showTags: true
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
right: [],
|
right: [],
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user