[obsidian] vault backup: 2024-02-08 15:53:17[
All checks were successful
Build / build (push) Successful in 1m54s

This commit is contained in:
松浦 知也 Matsuura Tomoya 2024-02-08 15:53:17 +09:00
parent 5e85a7e892
commit 490679e0d2
4 changed files with 12 additions and 5 deletions

View File

@ -3,5 +3,6 @@
"obsidian-zotero-desktop-connector",
"2hop-links-plus",
"obsidian-auto-link-title",
"obsidian-pandoc-reference-list"
"obsidian-pandoc-reference-list",
"templater-obsidian"
]

View File

@ -0,0 +1,4 @@
---
date: <% tp.date.now("") %>
---

View File

@ -47,7 +47,7 @@ const config: QuartzConfig = {
transformers: [
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({
priority: ["git", "filesystem", "frontmatter"], // you can add 'git' here for last modified from Git but this makes the build slower
priority: [ "frontmatter","git",], // you can add 'git' here for last modified from Git but this makes the build slower
}),
Plugin.Latex({ renderEngine: "katex" }),
Plugin.SyntaxHighlighting(),

View File

@ -24,10 +24,12 @@ export default ((opts?: Partial<ContentMetaOptions>) => {
if (text) {
const segments: string[] = []
if (fileData.dates) {
segments.push('last updated: ' + formatDate(fileData.dates?.["modified"], cfg.locale))
if (fileData.dates?.created) {
segments.push('created: ' + formatDate(fileData.dates.created, cfg.locale))
}
if (fileData.dates?.modified) {
segments.push('last updated: ' + formatDate(fileData.dates.modified, cfg.locale))
}
// Display reading time if enabled
if (options.showReadingTime) {
const { text: timeTaken, words: _words } = readingTime(text)