Fix Quartz build to preserve git history for accurate file dates #106

Merged
eblume merged 1 commit from fix/quartz-content-directory into main 2026-02-04 08:46:47 -08:00
Owner

Summary

Fixes the "isn't yet tracked by git, dates will be inaccurate" warnings by using Quartz's -d docs flag instead of symlinking.

Problem

The previous approach symlinked content -> docs, but git doesn't follow symlinks. When Quartz asked git about content/index.md, git had no history for that path.

Solution

Use npx quartz build -d docs to tell Quartz to read from docs/ directly. Now when Quartz asks git about docs/index.md, git finds the actual file history.

  • CHANGELOG.md is copied (not symlinked) into docs/ for the build, then removed
  • All other files have accurate git-based dates

Testing

Tested locally - build produces no warnings.

## Summary Fixes the "isn't yet tracked by git, dates will be inaccurate" warnings by using Quartz's `-d docs` flag instead of symlinking. ## Problem The previous approach symlinked `content -> docs`, but git doesn't follow symlinks. When Quartz asked git about `content/index.md`, git had no history for that path. ## Solution Use `npx quartz build -d docs` to tell Quartz to read from `docs/` directly. Now when Quartz asks git about `docs/index.md`, git finds the actual file history. - CHANGELOG.md is copied (not symlinked) into `docs/` for the build, then removed - All other files have accurate git-based dates ## Testing Tested locally - build produces no warnings.
Use -d docs flag instead of symlinking content directory. This allows
git to find file history at the correct paths (docs/...) instead of
the symlinked paths (content/...) which have no history.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
eblume merged commit 95610d8e54 into main 2026-02-04 08:46:47 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
eblume/blumeops!106
No description provided.