Intermediate Guide
This guide is for users who plan to create multiple websites. Instead of installing tools for each site, we’ll install them once globally on your system.
Quickstart vs Intermediate
Section titled “Quickstart vs Intermediate”| Approach | Best For | Setup Time |
|---|---|---|
| Quickstart | One website, fastest setup | Each site reinstalls tools |
| Intermediate | Multiple websites | Install once, create many |
What This Guide Covers
Section titled “What This Guide Covers”By the end, you will have:
- ✓ Installed Pixi, Git, and Hugo globally on your system
- ✓ Created your first site using the global tools
- ✓ Learned how to create additional sites quickly
Prerequisites
Section titled “Prerequisites”Same as the Quickstart:
- GitHub account: Sign up
- Cloudflare account: Sign up
- GitHub Desktop: Download
- A Hugo theme: Browse themes
Step 1: Install Tools Globally
Section titled “Step 1: Install Tools Globally”First, we’ll install the three tools you’ll need: Pixi (package manager), Git (version control), and Hugo (site generator).
Mac / Linux
Section titled “Mac / Linux”Open Terminal and run:
curl -fsSL https://quick-site-handbook.pages.dev/install-tools.sh | bashWindows
Section titled “Windows”Open PowerShell and run:
irm https://quick-site-handbook.pages.dev/install-tools.ps1 | iexWhat does this do?
This script:
- Checks if Pixi is installed (installs it if not)
- Runs
pixi global install gitto install Git - Runs
pixi global install hugoto install Hugo
These tools are now available system-wide, not just in one project folder.
Wait for the installation to complete. You may need to restart your terminal/PowerShell when done.
Step 2: Create Your First Site
Section titled “Step 2: Create Your First Site”Now that tools are installed, creating a site is much faster.
Generate Your Command
Section titled “Generate Your Command”Go to the Command Generator and select:
- Tab: “Create Site Only” (not “Ultimate Command”)
- Fill in your site name, theme URL, and folder path
- Copy the command
Run the Command
Section titled “Run the Command”Mac / Linux (Terminal):
# Paste the command from the generatorcurl -fsSL https://quick-site-handbook.pages.dev/new-site.sh | bash -s -- -s mysite -t https://github.com/theNewDynamic/gohugo-theme-ananke.git -p /path/to/sitesWindows (PowerShell):
# Paste the command from the generatorirm https://quick-site-handbook.pages.dev/new-site.ps1 | iex -s -- -s mysite -t https://github.com/theNewDynamic/gohugo-theme-ananke.git -p C:\path\to\sitesWhat does this do?
This script:
- Creates a new Hugo site with
hugo new site - Initializes Git with
git init - Adds your theme as a Git submodule
- Configures
hugo.tomlwith the theme name - Creates a helpful README.md and .gitignore
Step 3: Upload and Deploy
Section titled “Step 3: Upload and Deploy”Follow the same steps as the Quickstart:
-
Upload to GitHub using GitHub Desktop
- Add existing repository
- Publish to GitHub
-
Deploy on Cloudflare Pages
- Connect your GitHub repository
- Select “Hugo” as the framework preset
- Deploy!
See the Quickstart Steps 4-5 for detailed instructions.
Creating Additional Sites
Section titled “Creating Additional Sites”Now that tools are installed globally, creating more sites is simple:
Using the Command Generator
Section titled “Using the Command Generator”- Go to the Command Generator
- Select “Create Site Only” tab
- Fill in new site name, theme, and folder
- Copy and run the command
Manual Site Creation (Optional)
Section titled “Manual Site Creation (Optional)”If you prefer to understand each step:
# Create a new sitehugo new site my-second-sitecd my-second-site
# Initialize gitgit init
# Add a theme (replace with your theme URL)git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
# Configure the themeecho "theme = 'ananke'" >> hugo.toml
# Create a READMEcat > README.md << 'EOF'# My Second Site
## Development- Edit content in `content/`- Test locally: `hugo server -D`- View at: http://localhost:1313
## DeploymentChanges pushed to GitHub automatically deploy to Cloudflare Pages.EOF
# Create .gitignorecat > .gitignore << 'EOF'# Generated filespublic/resources/.hugo_build.lock
# OS files.DS_StoreThumbs.dbEOFManaging Your Sites
Section titled “Managing Your Sites”Listing Installed Tools
Section titled “Listing Installed Tools”To see what versions you have:
# Check Hugo versionhugo version
# Check Git versiongit --version
# Check Pixi versionpixi --versionUpdating Tools
Section titled “Updating Tools”To update to the latest versions:
# Update Hugopixi global upgrade hugo
# Update Gitpixi global upgrade git
# Update all global packagespixi global upgrade-allUninstalling Tools
Section titled “Uninstalling Tools”If you need to remove the tools:
pixi global remove hugopixi global remove gitLocal Development (Optional)
Section titled “Local Development (Optional)”With global installation, you can easily preview sites before pushing to GitHub:
# Navigate to your site foldercd /path/to/your-site
# Start development serverhugo server -D
# Open http://localhost:1313 in your browser- Edit files and see changes instantly
- Press
Ctrl+Cto stop the server - The
-Dflag includes draft content
Summary
Section titled “Summary”Global install advantages:
- ✅ Create sites faster (no re-installation)
- ✅ Use development server (
hugo server) - ✅ Easier to manage and update tools
- ✅ Better for learning and experimentation
When to use Quickstart instead:
- You’re only making one website ever
- You want the absolute simplest setup
- You don’t want tools installed on your system
Next Steps
Section titled “Next Steps”- Learn more about Hugo
- Explore Hugo themes
- Read the Manual Guide for deeper understanding
- Join the Hugo community