(post: Post, platform: str)
| 99 | |
| 100 | |
| 101 | def _build_task(post: Post, platform: str) -> dict: |
| 102 | body_html = _markdown_to_html(render_syndicated_body(post)) |
| 103 | return { |
| 104 | "id": f"{platform}:{post.slug}", |
| 105 | "site": platform, |
| 106 | "slug": post.slug, |
| 107 | "title": post.title, |
| 108 | "canonical": post.canonical_url, |
| 109 | "description": str(post.front_matter.get("description") or "").strip(), |
| 110 | "cover_image_url": post.cover_image, |
| 111 | "body_html": body_html, |
| 112 | "queued_at": dt.datetime.now(dt.timezone.utc).isoformat(timespec="seconds"), |
| 113 | } |
| 114 | |
| 115 | |
| 116 | def parse_args(argv: list[str]) -> argparse.Namespace: |
no test coverage detected