diff --git a/src/generator/generator.py b/src/generator/generator.py index e969381..1793af6 100644 --- a/src/generator/generator.py +++ b/src/generator/generator.py @@ -278,6 +278,18 @@ def _strip_researchowl_header(content: str) -> str: return content +def _seo_checklist(slug: str) -> str: + """Static pre-publish SEO reminder appended to the draft-published notice. + NOT a validator call: the fresh draft has no meta yet, so checking now would + be all-fail noise. Jose runs `seo-check ` after filling these in.""" + return ( + "\n\n⚠️ Antes de publicar, añade: meta title, meta description (≤145), " + "custom excerpt, OG/Twitter, feature image + alt, 2-3 internal links " + "(donde sea natural)\n" + f"Luego valida: seo-check {slug}" + ) + + class GhostPublisher: def __init__(self, lang: str = "es"): if lang == "en": @@ -427,6 +439,7 @@ class OutputGenerator: f"\n\n---\n" f"📤 *Borrador publicado en Ghost*\n" f"Editar: {ghost.url}/ghost/#/editor/post/{post['id']}" + f"{_seo_checklist(post.get('slug', ''))}" ) logger.info("Auto-published blog to Ghost", post_id=post["id"]) except Exception as e: @@ -601,6 +614,7 @@ class OutputGenerator: f"\n\n---\n" f"📤 *Borrador publicado en Ghost*\n" f"Editar: {ghost.url}/ghost/#/editor/post/{post['id']}" + f"{_seo_checklist(post.get('slug', ''))}" ) logger.info("Auto-published extended blog to Ghost", post_id=post["id"]) except Exception as e: