Sebastian Heiden

SeHe’s Hugo Blog

Deploy Hugo site to GitHub Pages GitHub Pages Hugo

A modern Hugo-powered blog with automated GitHub Pages deployment. This repository showcases best practices for static site generation, continuous deployment, and clean documentation.

🌐 Live Site: https://seheheiden.github.io

🚀 Quick Start

  1. Make Changes: Edit content in content/ or update configurations as needed.
  2. Test Locally: Run hugo server -D to preview on http://localhost:1313.
  3. Commit Changes: Use Git - git add ., git commit -m "message", git push.
  4. Deploy: Automatic via GitHub Actions or manually using provided scripts.

✨ Features

🚀 Deployment & CI/CD

🛠 Development Experience

📱 Modern Web Standards

📁 Repository Structure

├── .github/workflows/     # GitHub Actions CI/CD pipeline
│   └── deploy.yml         # Automated deployment workflow
├── content/               # Markdown content and blog posts
│   └── posts/             # Blog articles
├── static/                # Static assets (images, files)
├── layouts/               # Custom Hugo templates
├── assets/                # Source assets (SCSS, JS)
├── themes/                # Hugo themes (as submodules)
├── hugo.toml              # Hugo configuration
├── build.ps1              # Windows build script
├── build.sh               # Unix build script
├── DEPLOYMENT.md          # Detailed deployment guide
└── README.md              # This file

Generated Files (Git Ignored)

📄 Technical Specifications

Component Version/Details
Hugo 0.147.9 Extended
Node.js Latest LTS (for npm dependencies)
Dart Sass Latest (via snap)
Deployment GitHub Actions + GitHub Pages
Build Time ~30-60 seconds
Deploy Time ~1-3 minutes total

🛠 Build & Deploy

Build Locally

Deployment

For automatic deployment, ensure GitHub Pages is set to build from GitHub Actions:

  1. Go to your repository settings on GitHub.
  2. Navigate to Pages and set the source to GitHub Actions.
  3. Simply push to main to deploy.

🔄 Development Workflow

Creating New Content

# Create a new blog post
hugo new posts/my-new-post.md

# Start development server
hugo server -D

# Build for production
hugo --gc --minify

Git Workflow

# Make your changes
git add .
git commit -m "Add new post: My Amazing Article"
git push origin main

# GitHub Actions will automatically build and deploy!

🛡️ Troubleshooting

📆 Additional Resources

🎉 Enjoy Blogging!

Your site is configured for effortless deployment. Focus on creating great content while the automation handles all the technical details. Happy writing! ✍️