host: nt-live-encore seed uses the SX HTML→SX converter (drops the Python one-off)

host/blog-seed-nt-live-encore! now embeds the RAW Ghost HTML (from rose-ash.com/rss) and
imports via the "html" field, so host/html->sx converts it at boot — no more pre-converted
sx_content from the external Python script. Verified: the converter produces the identical 11
cards (card-image/text ×4 pairs + 3 card-embed), handling the real post's kg-card comments,
srcset, and nested figcaption markup. blog 197/197.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-01 15:49:43 +00:00
parent 7e2275b90c
commit 62c9bdd270

View File

@@ -1097,7 +1097,18 @@
"custom_excerpt" "Missed an NT Live performance at Rose Ash Village Hall? We can book an encore." "custom_excerpt" "Missed an NT Live performance at Rose Ash Village Hall? We can book an encore."
"feature_image" "https://rose-ash.com/content/images/2026/07/61iN2uEt2ML._AC_SL1024_.jpg" "feature_image" "https://rose-ash.com/content/images/2026/07/61iN2uEt2ML._AC_SL1024_.jpg"
"tags" (list "NT Live" "Films") "tags" (list "NT Live" "Films")
"sx_content" "(article (img :src \"https://rose-ash.com/content/images/2026/07/61iN2uEt2ML._AC_SL1024_.jpg\" :alt \"NT Live Encore?\") (p \"Did you miss an NTLIVE performance at Rose Ash Village Hall? Or maybe you enjoyed it so much you want another chance to see it? We can book an encore with the National Theatre. Ticket price will be £10. If you are interested, take a look at the available days for each play below and please email village@rose-ash.com (or simply reply to this if you are reading it as an email) and let us know which plays you'd like to see when. We can't promise to make the date you request - but we will do our best! If none of these times suit - then let us know and we'll try harder! (you may have to stick the DVD in the slot yourself...) Don't forget to subscribe to rose-ash.com for emailed news of all things Rose Ash!\") (figure (img :src \"https://rose-ash.com/content/images/2026/07/LISTING.jpg\" :alt \"NT Live Encore?\") (figcaption \"Bryan Cranston (Breaking Bad) and Marianne Jean-Baptiste (Hard Truths) feature in a five-star, triumphantly acclaimed new production of Arthur Millers classic play, from visionary director Ivo Van Hove (A View from the Bridge).\")) (p \"ALL MY SONS encore possibilities: Sunday 5th July PM\") (figure (img :src \"https://rose-ash.com/content/images/2026/07/in.jpg\" :alt \"NT Live Encore?\") (figcaption \"Pegeen Flahertys life is turned upside down when a young man walks into her pub claiming that hes killed his father. Instead of being shunned, the killer becomes a local hero and begins to win hearts,that is until a second man unexpectedly arrives on the scene…\")) (p \"PLAYBOY encore possibilities: Sunday 5th July PM, Sunday 26th July PM, Sunday August 2nd PM\") (figure (img :src \"https://rose-ash.com/content/images/2026/07/in-1.jpg\" :alt \"NT Live Encore?\") (figcaption \"Marquise de Merteuil is a master in the art of survival. Alongside the magnetic Vicomte de Valmont, they turn seduction into strategy and weaponise desire. But when their alliance collapses into rivalry, the battle between them threatens to destroy everyone in their path.\")) (p \"LIASONS encore possibilities: Sunday 5th July PM, Sunday 26th July PM, Sunday August 2nd PM\") (iframe :src \"https://www.youtube.com/embed/aLaRT0yAstE\") (iframe :src \"https://www.youtube.com/embed/tdlgR2FDbRI\") (iframe :src \"https://www.youtube.com/embed/wq5l5VV51sU\"))"}))) "html" "<img src=\"https://rose-ash.com/content/images/2026/07/61iN2uEt2ML._AC_SL1024_.jpg\" alt=\"NT Live Encore?\"><p>Did you miss an <strong>NTLIVE</strong> performance at <strong>Rose Ash Village Hall</strong>? Or maybe you enjoyed it so much you want another chance to see it? We can book an encore with the National Theatre. Ticket price will be &#xA3;10. If you are interested, take a look at the available days for each play below and please email <strong>village@rose-ash.com</strong> (or simply reply to this if you are reading it as an email) and let us know which plays you&apos;d like to see when. We can&apos;t promise to make the date you request - but we will do our best! If none of these times suit - then let us know and we&apos;ll try harder! (you may have to stick the DVD in the slot yourself...)<br><br>Don&apos;t forget to subscribe to <strong>rose-ash.com</strong> for emailed news of all things Rose Ash!<br></p><figure class=\"kg-card kg-image-card kg-card-hascaption\"><img src=\"https://rose-ash.com/content/images/2026/07/LISTING.jpg\" class=\"kg-image\" alt=\"NT Live Encore?\" loading=\"lazy\" width=\"1240\" height=\"874\" srcset=\"https://rose-ash.com/content/images/size/w600/2026/07/LISTING.jpg 600w, https://rose-ash.com/content/images/size/w1000/2026/07/LISTING.jpg 1000w, https://rose-ash.com/content/images/2026/07/LISTING.jpg 1240w\" sizes=\"(min-width: 720px) 720px\"><figcaption><span style=\"white-space: pre-wrap;\">Bryan Cranston (</span><i><em class=\"italic\" style=\"white-space: pre-wrap;\">Breaking Bad</em></i><span style=\"white-space: pre-wrap;\">) and Marianne Jean-Baptiste (</span><i><em class=\"italic\" style=\"white-space: pre-wrap;\">Hard Truths</em></i><span style=\"white-space: pre-wrap;\">) feature in a five-star, triumphantly acclaimed new production of Arthur Miller&#x2019;s classic play, from visionary director Ivo Van Hove (</span><i><em class=\"italic\" style=\"white-space: pre-wrap;\">A View from the Bridge</em></i><span style=\"white-space: pre-wrap;\">).</span></figcaption></figure><p><strong>ALL MY SONS</strong> encore possibilities: Sunday 5th July PM</p><figure class=\"kg-card kg-image-card kg-card-hascaption\"><img src=\"https://rose-ash.com/content/images/2026/07/in.jpg\" class=\"kg-image\" alt=\"NT Live Encore?\" loading=\"lazy\" width=\"1240\" height=\"874\" srcset=\"https://rose-ash.com/content/images/size/w600/2026/07/in.jpg 600w, https://rose-ash.com/content/images/size/w1000/2026/07/in.jpg 1000w, https://rose-ash.com/content/images/2026/07/in.jpg 1240w\" sizes=\"(min-width: 720px) 720px\"><figcaption><span style=\"white-space: pre-wrap;\">Pegeen Flaherty&#x2019;s life is turned upside down when a young man walks into her pub claiming that he&#x2019;s killed his father. Instead of being shunned, the killer becomes a local hero and begins to win hearts,that is until a second man unexpectedly arrives on the scene&#x2026;</span></figcaption></figure><p><strong>PLAYBOY</strong> encore possibilities: Sunday 5th July PM, Sunday 26th July PM, Sunday August 2nd PM</p><figure class=\"kg-card kg-image-card kg-card-hascaption\"><img src=\"https://rose-ash.com/content/images/2026/07/in-1.jpg\" class=\"kg-image\" alt=\"NT Live Encore?\" loading=\"lazy\" width=\"1240\" height=\"874\" srcset=\"https://rose-ash.com/content/images/size/w600/2026/07/in-1.jpg 600w, https://rose-ash.com/content/images/size/w1000/2026/07/in-1.jpg 1000w, https://rose-ash.com/content/images/2026/07/in-1.jpg 1240w\" sizes=\"(min-width: 720px) 720px\"><figcaption><span style=\"white-space: pre-wrap;\">Marquise de Merteuil is a master in the art of survival. Alongside the magnetic Vicomte de Valmont, they turn seduction into strategy and weaponise desire. But when their alliance collapses into rivalry, the battle between them threatens to destroy everyone in their path.</span></figcaption></figure><p><strong>LIASONS</strong> encore possibilities: Sunday 5th July PM, Sunday 26th July PM, Sunday August 2nd PM</p>
<!--kg-card-begin: html-->
<iframe width=\"560\" height=\"560\" src=\"https://www.youtube.com/embed/aLaRT0yAstE?si=LpAEAWc9dNCgv7-X\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>
<!--kg-card-end: html-->
<!--kg-card-begin: html-->
<iframe width=\"560\" height=\"560\" src=\"https://www.youtube.com/embed/tdlgR2FDbRI?si=mR3QXCeo_1NeB7RK\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>
<!--kg-card-end: html-->
<!--kg-card-begin: html-->
<iframe width=\"560\" height=\"560\" src=\"https://www.youtube.com/embed/wq5l5VV51sU?si=003YiYkMeeqLPVwt\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>
<!--kg-card-end: html-->"})))
;; a card with a FIXED slug (idempotent — seed!/set-field-values! overwrite), for demos that ;; a card with a FIXED slug (idempotent — seed!/set-field-values! overwrite), for demos that
;; set a composition directly. Returns the field-relative ref to store in the composition. ;; set a composition directly. Returns the field-relative ref to store in the composition.
(define host/blog--seed-card! (define host/blog--seed-card!