Quickstart
This guide will take you from zero to a live website in the fastest way possible. No coding knowledge required — just copy, paste, and follow the steps.
What you’ll accomplish
Section titled “What you’ll accomplish”By the end of this guide, you will have:
- ✓ Created a Hugo website with a theme of your choice
- ✓ Uploaded it to GitHub
- ✓ Deployed it to Cloudflare Pages (with a free URL)
- ✓ Learned how to edit your content
Step 1: Prerequisites
Section titled “Step 1: Prerequisites”Before we start, you need two free accounts:
-
A GitHub account — Sign up here
- This is where your website’s code will be stored
-
A Cloudflare account — Sign up here
- This is where your website will be hosted and published
-
Download GitHub Desktop
- Download for Mac
- Download for Windows
- This tool makes it easy to upload your site without using the command line
-
Choose a Hugo theme
- Browse themes at themes.gohugo.io
- Find one you like and copy its GitHub URL (click the theme, then click the GitHub link, then copy the URL from your browser)
Step 2: Get Your Command
Section titled “Step 2: Get Your Command”Go to the Command Generator page to create your custom installation command.
You’ll need to provide:
- Site name: A name for your website (no spaces, lowercase recommended)
- Theme URL: The GitHub URL you copied in Step 1
- Folder path: Where you want the site saved on your computer
The generator will show you the command to run. Click the copy button.
Step 3: Create Your Site
Section titled “Step 3: Create Your Site”Now you’ll run the command to create your website.
Mac / Linux
Section titled “Mac / Linux”- Open Terminal (you can find it in Applications → Utilities)
- Paste the command you copied (Cmd+V)
- Press Enter to run it
Windows
Section titled “Windows”- Open PowerShell (press Windows key, type “PowerShell”, press Enter)
- Paste the command you copied (Ctrl+V)
- Press Enter to run it
The script will:
- Install necessary tools (Pixi, Git, Hugo)
- Create your Hugo site with the chosen theme
- Set up a README and .gitignore file
Wait for it to complete. This may take a few minutes.
Step 4: Upload to GitHub
Section titled “Step 4: Upload to GitHub”Now let’s put your site on GitHub so Cloudflare can access it.
-
Open GitHub Desktop
-
Add your site folder
- Click “Add an Existing Repository from your Hard Drive…”
- Select your site folder (the one you specified in the command generator)
- Click “Add Repository”
-
Publish to GitHub
- You’ll see a “Publish repository” button — click it
- Give your repository a name (usually the same as your site name)
- Make sure “Keep this code private” is unchecked (Cloudflare needs to access it)
- Click “Publish Repository”
-
View on GitHub
- Click “View on GitHub” to see your repository online
Your code is now on GitHub! 🎉
Step 5: Deploy on Cloudflare Pages
Section titled “Step 5: Deploy on Cloudflare Pages”Now let’s make your website live!
-
Go to Cloudflare
- Visit dash.cloudflare.com and sign in
- Or go directly to dash.cloudflare.com/?to=/:account/workers-and-pages
-
Create a Pages project
- Click “Create application”
- Scroll down to “Looking to deploy Pages?” and click Get started
-
Connect to GitHub
- Click “Connect to GitHub”
- Authorize Cloudflare if prompted
- Select your site repository from the list
- Click “Begin setup”
-
Configure build settings
- Project name: Can be anything (your-site-name)
- Production branch: main
- Framework preset: Select Hugo from the dropdown
- Leave all other settings as default
-
Deploy
- Click “Save and Deploy”
- Wait for the build to complete (1-2 minutes)
-
Visit your site
- You’ll get a URL like
your-site-name.pages.dev - Click it to see your live website!
- You’ll get a URL like
🎉 Your website is now live!
Step 6: Modify Your Content
Section titled “Step 6: Modify Your Content”Let’s learn how to edit your website.
Edit with GitHub.dev
Section titled “Edit with GitHub.dev”The easiest way to edit your site is using github.dev — a free online code editor that works directly with your repository.
- Go to your repository on GitHub
- Press the period key (.) on your keyboard
- This opens the github.dev editor in your browser
- The editor looks like a simplified Visual Studio Code with a file explorer on the left
- Navigate to the
content/folder (or where your theme stores content) - Click on the file you want to edit (usually
.mdfiles) - Make your changes in the editor
- Press Cmd+S (Mac) or Ctrl+S (Windows/Linux) to save
- Click the Source Control icon in the left sidebar (looks like a branch icon)
- Add a commit message (e.g., “Updated homepage”)
- Click “Commit & Push”
Cloudflare will automatically rebuild your site. Wait 1-2 minutes, then refresh your live site.
Add a New Page
Section titled “Add a New Page”- In github.dev (press
.on your repository page), navigate to the content folder - Right-click in the file explorer → “New File”
- Name it something like
my-new-page.md - Add this at the top:
---title: "My New Page"---
- Write your content below in Markdown
- Save (Cmd+S / Ctrl+S)
- Commit your changes via the Source Control panel
Add Images
Section titled “Add Images”- First, upload images using GitHub’s web interface:
- Go to your repository on GitHub (not github.dev)
- Navigate to the
static/orassets/folder - Click “Add file” → “Upload files”
- Drag and drop your images and commit
- Reference images in your content using

Step 7: To Go Further
Section titled “Step 7: To Go Further”You’ve got the basics down! Here’s what you can explore next:
If you want to create more sites…
Section titled “If you want to create more sites…”Check out the Intermediate Guide — it installs the tools globally so you can create unlimited sites without reinstalling everything.
If you want to understand how it all works…
Section titled “If you want to understand how it all works…”Visit the Manual Guide for resources on:
- How static websites work
- Command line basics
- Git fundamentals
- Hugo themes and customization
- HTML/CSS basics
Common next steps
Section titled “Common next steps”- Add a custom domain: In Cloudflare Pages, go to “Custom domains” and follow the setup
- Customize your theme: Edit the
hugo.tomlfile in your repository - Learn Markdown: The simple format for writing content — Markdown Guide
- Join the Hugo community: Hugo Discourse
Need Help?
Section titled “Need Help?”If something didn’t work:
- Check the Manual Guide for detailed explanations
- Search for your error message online
- Check the Hugo documentation
- Ask in the Hugo community forum
Good luck with your website! 🚀