Corvus

A small, fast theme for Hugo, built for technical writing. Plain CSS and a few kilobytes of JavaScript, with no framework, build tools or web fonts. This site runs on it, so everything here is a live demo.
Features #
- Light and dark mode: follows your system setting, with a toggle that remembers your choice
- Search: full-text search across posts, projects and links, with forgiving matching and no external service
- Readable articles: a contents sidebar on wide screens, heading links, code blocks with copy buttons and language labels, and click-to-enlarge images
- Writing tools: callout boxes (including GitHub-style
> [!NOTE]alerts), series navigation and related posts - Archives: posts grouped by year on a timeline, with optional pagination
- Project pages: cards with icons, and projects with their own changelog and privacy pages
- Sharp images: responsive WebP at the right size for every screen, lossless for graphics and screenshots
- Sharing and SEO: generated share images, share buttons with no tracking scripts, Open Graph and X cards, structured data, sitemap and full-content RSS
- Privacy-friendly analytics: built-in settings for Umami, Plausible, Fathom and GoatCounter, loaded only in production
- Translatable: every label can be reworded or translated
Installation #
Corvus requires Hugo 0.158 or newer.
Hugo module #
Add the theme to your site’s module config (Go must be installed):
[[module.imports]]
path = "github.com/virtuallytd/hugo-theme-corvus"
hugo mod get -u github.com/virtuallytd/hugo-theme-corvus
Git submodule #
git submodule add https://github.com/virtuallytd/hugo-theme-corvus.git themes/corvus
Then set theme = "corvus" at the top of your config.
Quick Start #
Hugo doesn’t apply a theme’s Markdown settings, so add these to your site’s config:
[markup.goldmark.renderer]
unsafe = true
[markup.goldmark.parser]
wrapStandAloneImageWithinParagraph = false
[markup.highlight]
noClasses = false
To try it first, clone the repo and run the example site:
hugo server --source exampleSite --themesDir ../..
Every setting, from the home page layout to analytics, is documented in the README.
Source #
Corvus is open source under the MIT licence: github.com/virtuallytd/hugo-theme-corvus.