ID:WORK-084Status:done
Inject $file.created and $file.modified Variables into Content Pipeline
Priority:highComplexity:moderateMilestone:v1.0.0Source:SPEC-029
No incremental history — criteria tracking started on Apr 21.
Wire the shared git timestamp utility into packages/content/src/site.ts so that every page's Markdoc transform config includes $file.created and $file.modified variables. These join the existing $page and $frontmatter variables, making file timestamps available to any rune via standard Markdoc variable references.
loadContent() in packages/content/src/site.ts calls the git timestamp utility once before the page loopcontentVariables includes a file object with created and modified string propertiesundefined (not an empty string or null)$file.created and $file.modified$page and $frontmatter variables are unaffected$file.created and $file.modifiedcreated/modified uses those values instead of git datapackages/content/src/site.tsloadContent() with the content root directorycontentVariablespackages/content/src/site.ts — existing variable injection point