Quartz sync: May 5, 2025, 4:56 PM
This commit is contained in:
@@ -2,23 +2,21 @@ import { QuartzConfig } from "./quartz/cfg"
|
|||||||
import * as Plugin from "./quartz/plugins"
|
import * as Plugin from "./quartz/plugins"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Quartz 4 Configuration
|
* Quartz 4.0 Configuration
|
||||||
*
|
*
|
||||||
* See https://quartz.jzhao.xyz/configuration for more information.
|
* See https://quartz.jzhao.xyz/configuration for more information.
|
||||||
*/
|
*/
|
||||||
const config: QuartzConfig = {
|
const config: QuartzConfig = {
|
||||||
configuration: {
|
configuration: {
|
||||||
pageTitle: "Quartz 4",
|
pageTitle: "🌱🖧 MakSim garden",
|
||||||
pageTitleSuffix: "",
|
pageTitleSuffix: "",
|
||||||
enableSPA: true,
|
enableSPA: true,
|
||||||
enablePopovers: true,
|
enablePopovers: true,
|
||||||
analytics: {
|
analytics: { provider: 'umami', host: 'https://cloud.umami.is/', websiteId: '25a91c51-6d86-4f3f-93c8-7ffe5a85eb6d' },
|
||||||
provider: "plausible",
|
locale: "ru-RU",
|
||||||
},
|
baseUrl: "mak-sim.ru",
|
||||||
locale: "en-US",
|
ignorePatterns: ["templates", ".obsidian", "!(PublicMedia)**/!(*.md)", "!(*.md)"],
|
||||||
baseUrl: "quartz.jzhao.xyz",
|
defaultDateType: "created",
|
||||||
ignorePatterns: ["private", "templates", ".obsidian"],
|
|
||||||
defaultDateType: "modified",
|
|
||||||
theme: {
|
theme: {
|
||||||
fontOrigin: "googleFonts",
|
fontOrigin: "googleFonts",
|
||||||
cdnCaching: true,
|
cdnCaching: true,
|
||||||
@@ -57,7 +55,7 @@ const config: QuartzConfig = {
|
|||||||
transformers: [
|
transformers: [
|
||||||
Plugin.FrontMatter(),
|
Plugin.FrontMatter(),
|
||||||
Plugin.CreatedModifiedDate({
|
Plugin.CreatedModifiedDate({
|
||||||
priority: ["frontmatter", "git", "filesystem"],
|
priority: ["frontmatter", "filesystem"],
|
||||||
}),
|
}),
|
||||||
Plugin.SyntaxHighlighting({
|
Plugin.SyntaxHighlighting({
|
||||||
theme: {
|
theme: {
|
||||||
@@ -73,7 +71,7 @@ const config: QuartzConfig = {
|
|||||||
Plugin.Description(),
|
Plugin.Description(),
|
||||||
Plugin.Latex({ renderEngine: "katex" }),
|
Plugin.Latex({ renderEngine: "katex" }),
|
||||||
],
|
],
|
||||||
filters: [Plugin.RemoveDrafts()],
|
filters: [Plugin.RemoveDrafts(),Plugin.ExplicitPublish()],
|
||||||
emitters: [
|
emitters: [
|
||||||
Plugin.AliasRedirects(),
|
Plugin.AliasRedirects(),
|
||||||
Plugin.ComponentResources(),
|
Plugin.ComponentResources(),
|
||||||
@@ -86,10 +84,7 @@ const config: QuartzConfig = {
|
|||||||
}),
|
}),
|
||||||
Plugin.Assets(),
|
Plugin.Assets(),
|
||||||
Plugin.Static(),
|
Plugin.Static(),
|
||||||
Plugin.Favicon(),
|
|
||||||
Plugin.NotFoundPage(),
|
Plugin.NotFoundPage(),
|
||||||
// Comment out CustomOgImages to speed up build time
|
|
||||||
Plugin.CustomOgImages(),
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,8 +8,9 @@ export const sharedPageComponents: SharedLayout = {
|
|||||||
afterBody: [],
|
afterBody: [],
|
||||||
footer: Component.Footer({
|
footer: Component.Footer({
|
||||||
links: {
|
links: {
|
||||||
GitHub: "https://github.com/jackyzha0/quartz",
|
Mastodon: "https://pkm.social/@msemochkin",
|
||||||
"Discord Community": "https://discord.gg/cRFFHYye7t",
|
Telegram: "https://t.me/msemochkin",
|
||||||
|
GitHub: "https://github.com/maksim77"
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
@@ -17,28 +18,17 @@ 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.ConditionalRender({
|
Component.Breadcrumbs(),
|
||||||
component: Component.Breadcrumbs(),
|
// Component.ArticleTitle(),
|
||||||
condition: (page) => page.fileData.slug !== "index",
|
|
||||||
}),
|
|
||||||
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.Search(),
|
||||||
components: [
|
Component.Darkmode(),
|
||||||
{
|
Component.DesktopOnly(Component.Explorer()),
|
||||||
Component: Component.Search(),
|
|
||||||
grow: true,
|
|
||||||
},
|
|
||||||
{ Component: Component.Darkmode() },
|
|
||||||
{ Component: Component.ReaderMode() },
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
Component.Explorer(),
|
|
||||||
],
|
],
|
||||||
right: [
|
right: [
|
||||||
Component.Graph(),
|
Component.Graph(),
|
||||||
@@ -53,16 +43,10 @@ export const defaultListPageLayout: PageLayout = {
|
|||||||
left: [
|
left: [
|
||||||
Component.PageTitle(),
|
Component.PageTitle(),
|
||||||
Component.MobileOnly(Component.Spacer()),
|
Component.MobileOnly(Component.Spacer()),
|
||||||
Component.Flex({
|
Component.Search(),
|
||||||
components: [
|
Component.Darkmode(),
|
||||||
{
|
Component.DesktopOnly(Component.Explorer()),
|
||||||
Component: Component.Search(),
|
|
||||||
grow: true,
|
|
||||||
},
|
|
||||||
{ Component: Component.Darkmode() },
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
Component.Explorer(),
|
|
||||||
],
|
],
|
||||||
right: [],
|
right: [],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user