Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
corvusdeinanis committed Apr 23, 2024
1 parent c33c20e commit 4dd6756
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 6 additions & 2 deletions quartz.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ const config: QuartzConfig = {
baseUrl: "corvusdeinanis.github.io/cuddlyspaceship",
ignorePatterns: ["private", "templates",".obsidian"],
defaultDateType: "created",
<<<<<<< HEAD
displayDateType:["created","modified"]
=======
analytics: {
},
>>>>>>> parent of 7f68dcbb (trying to get last updated from git)
theme: {
fontOrigin: "googleFonts",
cdnCaching: true,
Expand Down Expand Up @@ -51,8 +56,7 @@ const config: QuartzConfig = {
transformers: [
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({

priority: ["frontmatter", "git"],
priority: ["frontmatter", "filesystem"],
}),
//Plugin.Latex({ renderEngine: "katex" }),
Plugin.SyntaxHighlighting({
Expand Down
9 changes: 4 additions & 5 deletions quartz/plugins/transformers/lastmod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ export const CreatedModifiedDate: QuartzTransformerPlugin<Partial<Options> | und
modified ||= st.mtimeMs
} else if (source === "frontmatter" && file.data.frontmatter) {
created ||= file.data.frontmatter.date as MaybeDate
// modified ||= file.data.frontmatter.lastmod as MaybeDate
// modified ||= file.data.frontmatter.updated as MaybeDate
// modified ||= file.data.frontmatter["last-modified"] as MaybeDate
modified ||= await repo.getFileLatestModifiedDateAsync(file.data.filePath!)
published ||= file.data.frontmatter.publishDate as MaybeDate
modified ||= file.data.frontmatter.lastmod as MaybeDate
modified ||= file.data.frontmatter.updated as MaybeDate
modified ||= file.data.frontmatter["last-modified"] as MaybeDate
published ||= file.data.frontmatter.publishDate as MaybeDate
} else if (source === "git") {
if (!repo) {
// Get a reference to the main git repo.
Expand Down

0 comments on commit 4dd6756

Please sign in to comment.