A zero-config Hugo documentation site that deploys to Cloudflare Workers. Just edit markdown files on GitHub - no installation required!
- Zero Setup - Click deploy, start writing
- GitHub Editing - Edit markdown files directly on GitHub
- Auto Deploy - Every commit automatically deploys
- Global CDN - Served from 300+ Cloudflare locations
- Fast - Built with Hugo, one of the fastest static site generators
- Beautiful - Clean documentation theme with search and dark mode
- Click the "Deploy to Cloudflare Workers" button above
- Authorize GitHub and Cloudflare
- Done! Your site is live
- Go to your forked repository on GitHub
- Navigate to any
.md
file in thecontent/
folder - Click the pencil icon to edit
- Make changes and commit
- Your site updates automatically!
- Go to
content/docs/
in your repository - Click "Create new file"
- Name it
my-page.md
- Add frontmatter and content:
---
title: "My Page"
weight: 10
---
Your content here...
content/
├── _index.md # Homepage
└── docs/ # All documentation
├── section1/ # Create folders for sections
│ ├── _index.md # Section overview
│ └── page1.md # Pages in section
└── page.md # Standalone pages
Edit hugo.toml
:
title = 'Your Site Name'
Add weight
to frontmatter:
---
title: "My Page"
weight: 1 # Lower numbers appear first
---
The hugo.toml
file contains theme options:
BookTheme
- Set to 'light', 'dark', or 'auto'BookSearch
- Enable/disable searchBookToC
- Show/hide table of contents
- Add your domain to Cloudflare
- Update
wrangler.toml
with your domain - Commit the change
Only needed if you want to preview locally:
git clone <your-fork>
cd <your-fork>
npm install
npm run dev
npm run deploy
.
├── content/ # Your markdown content
├── themes/book/ # Hugo Book theme
├── hugo.toml # Hugo configuration
├── wrangler.toml # Cloudflare Workers config
├── package.json # Build scripts
└── src/index.js # Workers entry point
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
Site not updating?
- Check GitHub Actions tab for build errors
- Ensure frontmatter is valid YAML
Page not showing?
- Check if
draft: true
is set - Verify file is in
content/
directory - Ensure
.md
extension
Need help?
- Open an issue on GitHub
- Check Hugo and Cloudflare docs
This template is open source under the MIT License.