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

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

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)