Skip to content

SaintRyoh/hugo-template

Repository files navigation

Hugo Template

Instant "Under Construction" site + ready-to-go dev environment.

Use this template → point your domain → done. Your site is live with a professional placeholder while you build.

Under Construction Site


⚡ Quick Start (3 Steps)

1. Use This Template

Click the green "Use this template" button above, or click here to create a new repo.

2. Enable GitHub Pages

  1. Go to your new repo's SettingsPages
  2. Under "Build and deployment", select GitHub Actions
  3. The included workflow will automatically build and deploy your site

3. Point Your Domain (Optional)

Add your custom domain in SettingsPagesCustom domain, or use the free yourusername.github.io/repo-name URL.

That's it! Your site is now live with an "Under Construction" page. 🚧


🛠️ Ready to Build? Open the Dev Environment

This template includes a complete dev container. Just open in VS Code or GitHub Codespaces:

VS Code Dev Environment

Start the development server:

hugo server

Visit http://localhost:1313 to preview your site locally.


Next Steps: Add a Real Theme

1. Choose a Theme

Browse the official Hugo themes gallery:

👉 https://themes.gohugo.io/

2. Add It as a Git Submodule

git submodule add <theme-repo-url> themes/<theme-name>

Example (adding the PaperMod theme):

git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod

3. Update Configuration

Edit hugo.yaml to use your new theme:

baseURL: "https://your-site-url.com/"
languageCode: "en-us"
title: "Your Site Title"
theme: PaperMod  # Change this to your theme name

Each theme has its own configuration options—refer to the theme's documentation for details.

4. Add Content

Create your first post:

hugo new posts/my-first-post.md

5. Deploy

Just push to main—GitHub Actions handles the rest!

git add -A && git commit -m "Add new theme" && git push

🔄 Switching Back to Under Construction

Need to take your site offline temporarily? Simply change the theme in hugo.yaml:

theme: under-construction

Push the change and your site instantly shows the placeholder again.


Useful Commands

Command Description
hugo server Start development server with live reload
hugo server -D Include draft content
hugo new <path> Create new content
hugo Build the site

Resources

About

My golden path hugo template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors