Installation
Add Nimbus to a new or existing Hugo site, step by step.
1. Add the theme
As a Git submodule (recommended for most sites):
| |
Or as a Hugo Module:
| |
2. Point your site config at it
| |
3. Copy the build tooling
Nimbus’s styling is compiled with Tailwind, ahead of time, into a plain
CSS file — Hugo itself never runs Node or PostCSS. Copy these files from
exampleSite/ into your site root:
package.jsonpostcss.config.jstailwind.config.jsassets/css/tailwind.built.css(the pre-compiled output — your site works immediately with this even before you runnpm install)
No Node.js required to just run the site
hugo server -D and hugo --minify work with zero npm install, because
they only read the already-compiled tailwind.built.css. You only need
Node.js when you actually want to change styles or Tailwind content globs.4. When you do change styles
| |
Commit the updated assets/css/tailwind.built.css afterward — it’s the
actual file Hugo serves.
5. Build
| |
Optional: real “last updated” dates + edit links
Every page shows a file-based “last updated” date and an “Edit this page”
link out of the box — no setup needed. Once your site is an actual git
repository (not just unzipped), uncomment enableGitInfo = true in
hugo.toml to switch the date to the real last-commit date and show the
commit author too.
Last updated March 5, 2024
Edit this page