My public wiki
Find a file
Luis Michaelis bece8fcab6
fix: properly handle absolute paths in CreatedModifiedDate ()
When providing an absolute path to the content directory (e.g. when using an Obsidian Vault in another directory), the build step would fail with

    Failed to process `/absolute/path/to/file.md`: ENOENT: no such file or directory, stat '/current/working/directory/absolute/path/'

This problem originated in the `CreatedModifiedDate` transformer which tries to construct a native filesystem path to the file to call `fs.stat` on. It did not however, account for the original file path contained in the received `VFile` being an absolute path and so, just concatenated the current working directory with the absolute path producing a nonexistent one.

This patch adds a simple fix for this issue by checking if the original file path is already absolute before concatenating with the current working directory.
2024-02-02 09:51:34 -08:00
.github deps: reduce dependabot frequency 2024-01-31 12:24:25 -08:00
content re-add gitkeep to content 2023-12-11 15:34:21 -08:00
docs chore: add window.addCleanup() for cleaning up handlers 2024-02-01 21:19:51 -08:00
quartz fix: properly handle absolute paths in CreatedModifiedDate () 2024-02-02 09:51:34 -08:00
.gitattributes add gitattributes for windows 2023-08-02 20:59:56 -07:00
.gitignore feat: support configurable ws port and remote development () 2023-08-27 17:39:42 -07:00
.npmrc add engines field 2023-08-20 08:57:56 -07:00
.prettierignore fix notes 2023-08-07 23:57:24 -07:00
.prettierrc Use semi: false for prettier config 2022-05-02 08:57:25 -07:00
CODE_OF_CONDUCT.md run prettier 2023-07-22 17:27:41 -07:00
Dockerfile feat: docker support for v4 (closes ) 2023-10-08 09:59:18 -07:00
globals.d.ts chore: add window.addCleanup() for cleaning up handlers 2024-02-01 21:19:51 -08:00
index.d.ts feat: Emit custom event when theme changes () 2024-01-23 14:52:41 -08:00
LICENSE.txt add base structure 2021-07-18 09:35:42 -04:00
package-lock.json pkg: bump to 4.2.1 2024-02-02 01:45:28 -08:00
package.json pkg: bump to 4.2.1 2024-02-02 01:45:28 -08:00
quartz.config.ts docs: clarify git only sets modified 2024-01-07 15:39:38 -08:00
quartz.layout.ts feat: improve default layout 2024-01-13 09:47:56 -08:00
README.md fix: remove quartz 3 references, update font style in popovers 2024-01-21 12:39:20 -08:00
tsconfig.json chore(deps-dev): bump prettier from 3.1.1 to 3.2.4 () 2024-01-30 22:03:33 -08:00

Quartz v4

“[One] who works with the door open gets all kinds of interruptions, but [they] also occasionally gets clues as to what the world is and what might be important.” — Richard Hamming

Quartz is a set of tools that helps you publish your digital garden and notes as a website for free. Quartz v4 features a from-the-ground rewrite focusing on end-user extensibility and ease-of-use.

🔗 Read the documentation and get started: https://quartz.jzhao.xyz/

Join the Discord Community

Sponsors