A minimalist static blog built with Hugo using the Bear Blog theme.
Fetch blog theme files (required before running the site):
git submodule update --init --recursiveStart the Hugo development server:
hugo serverThe site will be available at http://localhost:1313/
To include draft posts in the preview:
hugo server -DCreate a new blog post using Hugo's built-in command:
hugo new blog/my-post-title.mdThis creates a file at content/blog/my-post-title.md with the default frontmatter:
---
title: "My Post Title"
date: 2025-01-15T10:00:00-00:00
draft: true
---You can add additional frontmatter fields:
---
title: "My Post Title"
date: 2025-01-15T10:00:00-00:00
tags: ["hugo", "blogging"]
tldr: "Brief summary of the post"
draft: false
---Create a standalone page (like About, Contact, etc.):
hugo new pages/my-page.mdFor pages that should appear in the main menu, add these frontmatter fields:
---
title: "About me"
date: 2025-01-15
tags: ["about"]
draft: false
type: page
menu: main
---content/
├── _index.md # Homepage content
├── blog/ # Blog posts
│ ├── _index.md # Blog section page
│ └── post-name.md # Individual posts
├── pages/ # Standalone pages
│ └── about.md # Example: About page
└── eli5/ # Custom section (ELI5 posts)
└── eli5-1.md
- Edit the post content in
content/blog/your-post.md - Change
draft: truetodraft: falsein the frontmatter - Commit and push to your repository
Generate the static site:
hugoThis creates the site in the public/ directory.
Site configuration is in config.toml:
- Base URL
- Site title and author
- Theme settings
- Permalink structure
This site appears to use GitHub Pages for deployment. The static files are generated in the public/ directory and served directly.