Note
This theme is stable and in maintenance mode. It is intentionally minimal and considered feature-complete. I do not plan to add new features as I believe in keeping the core functionality lean and focused rather than adding potentially bloated features. If you need additional functionality, the theme is designed to be easily extensible through three approaches (from simple to complex):
- Custom partials: Use the provided
custom_head.html,custom_body.html, andcustom_footer.htmlhooks - Layout overrides: Hugo's layout precedence allows you to override any theme template in your site's
layouts/directory - Fork the theme: Create your own version with full customization freedom
A Hugo theme based on Simple.css and Bear Blog.
- No-JavaScript, high performance ⚡
- Table of Contents 📌
- Dark mode 🌗
- SEO-friendly 🔍
- Code highlighting that follows light/dark mode 😻 (GitHub palette, see below)
Simple.css supports showing notices, using the "notice" class. To add a notice to any of your pages, simply use the notice shortcode like this (Markdown is allowed):
{{< notice >}}
Note: Don't forget to star the [hugo-simple](https://github.com/maolonglong/hugo-simple) repository. ❤️
{{< /notice >}}params.author is optional and can be a plain name (author = "Jane") or a table with name, email and fediverse. The name feeds the author meta tag, the email and name feed the RSS feed, and fediverse adds a fediverse:creator tag.
Set noClasses = false under [markup.highlight] in your site config to highlight code with CSS classes. The theme then ships a light and a dark palette (assets/chroma.css, GitHub styles) that switch with the visitor's color scheme. Without it, Hugo falls back to inline styles with a single fixed style.
To use other Chroma styles, run just chroma <light-style> <dark-style> to regenerate assets/chroma.css, or override it in your own assets/ folder.
The theme provides partials for customizing the <head>, <body> and <footer> of every page. Just copy and paste the partials from the theme to your local layouts/_partials/ folder.
Source code and configuration can be found at exampleSite.
You can install the theme manually or use the quickstart template.
# Git Submodule (recommended)
git submodule add https://github.com/maolonglong/hugo-simple.git themes/hugo-simple
# Hugo Modules
hugo mod get github.com/maolonglong/hugo-simpleInstall mise and clone this repository into a directory named hugo-simple so the example site's theme lookup works. Tool versions are pinned in mise.toml and mise.lock.
mise trust
mise install --locked
mise exec -- bun install --frozen-lockfile
mise exec -- just check
mise exec -- just build
mise exec -- just serveRun mise exec -- just fmt to format TOML, templates, and theme CSS. With mise activated in your shell, you can run just directly.
