Wire sx_content through full read/write pipeline

Model: add sx_content column to Post. Writer: accept sx_content in
create_post, create_page, update_post. Routes: read sx_content from form
data in new post, new page, and edit routes. Read pipeline: ghost_db
includes sx_content in public dict, detail/home views prefer sx_content
over html when available, PostDTO includes sx_content.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 23:22:30 +00:00
parent 341fc4cf28
commit 7ccb463a8b
9 changed files with 34 additions and 6 deletions

View File

@@ -63,6 +63,7 @@ def _post_to_public(p: Post) -> Dict[str, Any]:
"slug": p.slug,
"title": p.title,
"html": p.html,
"sx_content": p.sx_content,
"is_page": p.is_page,
"excerpt": p.custom_excerpt or p.excerpt,
"custom_excerpt": p.custom_excerpt,