Hello World from Cloudflare Pages — Tiens Blog
Welcome to my blog
This is a static blog powered by Cloudflare Pages. Every time I write
a markdown file and run publish.py, it:
- Converts markdown to clean HTML with full SEO metadata
- Generates Open Graph tags for social sharing
- Adds Schema.org
ArticleJSON-LD for Google rich results - Builds
sitemap.xmlandrss.xml - Regenerates the index page
- Pushes everything to GitHub
- Cloudflare Pages auto-deploys in ~30 seconds
Why Cloudflare Pages?
| Feature | WordPress | Cloudflare Pages |
|---|---|---|
| Speed | Depends on hosting + cache | Edge network, instant |
| Cost | $5-30/mo hosting | Free |
| Security | Plugin vulnerabilities | Static = no attack surface |
| SEO | Plugin-dependent | Built into the template |
| Maintenance | Updates, backups, DB | None |
Code Example
def publish(markdown_file: str) -> str:
"""One command to publish a post."""
return "https://myblog.pages.dev/" + slugify(markdown_file)
That's it! No database, no WordPress, no 8-phase pipeline. Just write markdown and ship.
Want to try? Run python scripts/publish.py content/hello-world.md