Building a new Hugo site often starts with the same challenge: finding a theme that’s both simple and production-ready. Many themes are either too opinionated with specific designs, or too minimal and require extensive manual configuration to add essential functionality like SEO metadata, RSS feeds, and accessibility features.
Hugo Baseline exists to solve this problem. It’s a foundational theme that provides all the essential features you need for a production website, while remaining simple and highly customizable. Instead of starting from scratch or wrestling with complicated theme configurations, you can use Baseline as a solid foundation for building many types of sites.
Key Features
Baseline comes packed with features that most websites need, configured and ready to use:
SEO & Social Media
The theme includes comprehensive SEO metadata out of the box:
- OpenGraph tags for rich social media previews on Facebook, LinkedIn, and other platforms
- Twitter Card support for optimized Twitter sharing
- JSON-LD structured data for enhanced search engine understanding
- Automatic social media images using the first image in your post, so every share looks professional
Content Discovery
Help your readers find more content they’ll love:
- Related posts automatically suggested based on tags, categories, and publish date
- RSS feed generation with proper reader discovery tags
- Search index generation (JSON format) that works with Fuse.js or Lunr.js for client-side search
User Experience
- Dark mode support - enable with
darkMode = truein your config - Table of contents automatically generated for posts (disable per-post with
toc: false) - Breadcrumbs for better navigation and SEO
- Read time estimates for posts
- Click-to-copy functionality for code blocks
- Responsive and mobile-ready design that works on all devices
Accessibility
Baseline takes accessibility seriously:
- ARIA attributes throughout for screen reader compatibility
- Skip-to-content link for keyboard navigation
- Focus indicators for keyboard users
- Semantic HTML structure
Performance & Modern Web
- Image shortcode optimized for performance with Hugo’s image processing
- PWA ready with web manifest support
- Favicon setup with multiple sizes for different platforms
- Print styles for clean printed pages
- Minified output for faster page loads
Developer Features
- External link tracking with configurable UTM parameters
- Analytics integration supporting both Google Analytics 4 and Plausible
- Microformats for semantic markup
- Custom 404 page for better error handling
Getting Started
Prerequisites
Hugo Baseline requires Hugo version 0.148.2 or higher. Check your version with:
| |
Installation with Git Submodules
The recommended way to install Baseline is using Git submodules:
| |
Configuration
Baseline is highly configurable through hugo.toml. Here are all the available theme parameters:
Basic Settings
| |
Site Parameters
| |
Analytics
| |
UTM Parameters
Track external link clicks with automatic UTM parameters:
| |
Related Content
Configure how related posts are found:
| |
Table of Contents
| |
Pagination
| |
RSS Feed
| |
Privacy Settings
| |
Output Formats
| |
PWA Manifest
| |
Next Steps
Once you have Baseline installed and configured:
- Create your first post:
hugo new content/posts/my-first-post.md - Start the development server:
hugo server -D - Customize the theme by overriding layouts in your site’s
layouts/directory - Add your logo and favicon to
static/images/ - Configure your menu items in
hugo.toml
Hugo Baseline gives you a solid, production-ready foundation so you can focus on your content and unique features, not reinventing the basics.
Happy building!