ChatGPT + Hugo + Cloudflare Pages: Speedrun
Colin Blackman
Here’s a speedy workflow for shipping posts with minimal friction:
1) Outline with ChatGPT
Ask ChatGPT to draft an outline for your post. Example prompt:
“Draft a concise outline for a blog post about migrating from WordPress to Hugo. Include an intro, 5 key steps, a short code sample, and an FAQ.”
Copy the outline into a new Markdown file:
hugo new posts/migrating-from-wordpress.md
Set draft: true until you’re ready to publish.
2) Fill sections and request rewrites
Paste a section into ChatGPT and ask for a rewrite with constraints (tone, length, bullet density). Repeat for each section.
3) Add front matter
Each post starts with front matter (YAML shown):
---
title: "Migrating from WordPress to Hugo"
date: 2025-10-28
draft: true
tags: ["migration","hugo"]
description: "A practical guide to moving from WordPress to a fast, static Hugo site."
---
Set draft: false when ready to publish.
4) Images and code
- Put images in
/static/images/…and reference them as/images/…. - Use fenced code blocks for syntax highlighting: ```language.
5) Deploy
Commit and push to main. Cloudflare Pages will build and deploy automatically.
Preview URLs appear on pull requests, which is great for review.
Happy shipping!