added line age plugin
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { QuartzConfig } from "./quartz/cfg"
|
||||
import * as Plugin from "./quartz/plugins"
|
||||
import { LineAgePre, LineAgeMid, LineAgePost } from "quartz-line-age"
|
||||
|
||||
/**
|
||||
* Quartz 4 Configuration
|
||||
@@ -20,7 +21,7 @@ const config: QuartzConfig = {
|
||||
repoUrl: "https://git.matsuuratomoya.com/tomoyanonymous/quartz-research-note",
|
||||
ignorePatterns: ["private", "templates", ".obsidian"],
|
||||
defaultDateType: "modified",
|
||||
fediverseCreator:"@tomoya@social.matsuuratomoya.com",
|
||||
fediverseCreator: "@tomoya@social.matsuuratomoya.com",
|
||||
theme: {
|
||||
fontOrigin: "googleFonts",
|
||||
cdnCaching: true,
|
||||
@@ -58,6 +59,7 @@ const config: QuartzConfig = {
|
||||
plugins: {
|
||||
transformers: [
|
||||
Plugin.FrontMatter(),
|
||||
LineAgePre(),
|
||||
Plugin.CreatedModifiedDate({
|
||||
priority: ["frontmatter", "git", "filesystem"],
|
||||
}),
|
||||
@@ -69,9 +71,14 @@ const config: QuartzConfig = {
|
||||
},
|
||||
keepBackground: false,
|
||||
}),
|
||||
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
|
||||
Plugin.GitHubFlavoredMarkdown(),
|
||||
Plugin.TableOfContents(),
|
||||
LineAgeMid(),
|
||||
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
|
||||
LineAgePost({
|
||||
freshColor: { r: 32, g: 126, b: 143 },
|
||||
oldColor: { r: 215, g: 239, b: 247 },
|
||||
}),
|
||||
Plugin.GitHubFlavoredMarkdown(),
|
||||
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
|
||||
Plugin.Description(),
|
||||
Plugin.Latex({ renderEngine: "katex" }),
|
||||
|
||||
Reference in New Issue
Block a user