digital-garden/.quartz/quartz.layout.ts

65 lines
2.0 KiB
TypeScript
Raw Normal View History

2024-09-04 20:08:38 +03:00
import {PageLayout, SharedLayout} from "./quartz/cfg"
2024-09-02 08:40:46 +03:00
import * as Component from "./quartz/components"
// components shared across all pages
export const sharedPageComponents: SharedLayout = {
2024-09-04 20:08:38 +03:00
head: Component.Head(),
header: [],
afterBody: [
2024-09-05 00:46:14 +03:00
Component.Backlinks(),
2024-09-08 16:04:45 +03:00
// Component.SocialShare(),
2024-09-04 20:08:38 +03:00
Component.Remark({
options: {
host: 'https://comments.struchkov.dev',
siteId: 'gardenru',
locale: 'ru',
}
}),
2024-09-06 00:46:35 +03:00
Component.YandexMetrika(),
2024-09-03 12:18:07 +03:00
],
2024-09-06 00:46:35 +03:00
footer: Component.Footer({
links: {
"About Me": "https://mark.struchkov.dev/cv/",
"B.log": "https://struchkov.dev",
2024-09-18 19:10:42 +03:00
"Telegram": "https://t.me/struchkov_dev",
2024-09-06 00:46:35 +03:00
},
}),
2024-09-02 08:40:46 +03:00
}
2024-09-05 00:46:14 +03:00
const githubSourceConfig = {
repoLink: "https://github.com/upagge/digital-garden",
branch: "master"
}
2024-09-02 08:40:46 +03:00
// components for pages that display a single page (e.g. a single note)
export const defaultContentPageLayout: PageLayout = {
2024-09-04 20:08:38 +03:00
beforeBody: [
2024-09-06 23:10:25 +03:00
Component.Breadcrumbs({showCurrentPage: false}),
2024-09-04 20:08:38 +03:00
Component.ArticleTitle(),
2024-09-07 20:20:39 +03:00
Component.ContentMeta({showReadingTime: false}),
2024-09-06 23:10:25 +03:00
Component.TagList()
2024-09-04 20:08:38 +03:00
],
left: [
Component.PageTitle(),
Component.MobileOnly(Component.Spacer()),
Component.Search(),
2024-09-06 00:46:35 +03:00
Component.DesktopOnly(Component.RecentNotes({ showTags: false, limit: 4 })),
2024-09-06 00:50:23 +03:00
Component.DesktopOnly(Component.Ads()),
2024-09-04 20:08:38 +03:00
Component.Darkmode(),
],
right: [
Component.DesktopOnly(Component.TableOfContents()),
2024-09-05 21:51:55 +03:00
Component.DesktopOnly(Component.GithubSource(githubSourceConfig)),
2024-09-04 20:08:38 +03:00
],
2024-09-02 08:40:46 +03:00
}
// components for pages that display lists of pages (e.g. tags or folders)
export const defaultListPageLayout: PageLayout = {
2024-09-04 20:08:38 +03:00
beforeBody: [Component.Breadcrumbs(), Component.ArticleTitle(), Component.ContentMeta()],
left: [
Component.PageTitle(),
Component.MobileOnly(Component.Spacer()),
Component.Search(),
Component.Darkmode(),
],
right: [],
2024-09-02 08:40:46 +03:00
}