Rewrite published posts after template changes.

This commit is contained in:
hugo committed 2026-07-21 21:32:28 +02:00
1 parent 80f291b8ea
commit 1e32c7e945
4 files changed
+54 -12

No files matched your search

+3 -1
View File
@@ -57,7 +57,9 @@ rule UpdatePostSideEffects {
-- If post is published and content/metadata changes:
-- auto-transition status back to draft
-- If slug changed and file exists: rename .md file
-- If templateSlug changed on published post: rewrite .md frontmatter
-- If templateSlug changed on published post: atomically rewrite .md
-- frontmatter while preserving the file body, publishedAt, and the
-- caller-supplied post checksum.
ensures: FTSIndexUpdated(post)
if changes.content:
ensures: PostLinksUpdated(post)