Match bDS2 canonical file serialization

This commit is contained in:
2026-07-22 20:19:21 +02:00
parent fdf47da40a
commit 7b8e539340
17 changed files with 706 additions and 338 deletions

View File

@@ -56,6 +56,9 @@ invariant UniqueTemplateSlug {
invariant TemplateFrontmatter {
-- .liquid files use standard --- YAML frontmatter
-- Fields: id, slug, title, kind, enabled, version, createdAt, updatedAt
-- Field order also includes projectId after id when present. Scalars use
-- the canonical post frontmatter quoting rules, timestamps are single-quoted
-- ISO values, and the complete file ends in one newline.
for t in Templates where status = published:
parse_frontmatter(read_file(t.file_path)).slug = t.slug
}