Troubleshooting
Diagnostic commands #
Before digging into a specific problem, these commands tell you most of what you need to know:
hugo version # your Hugo version
hugo config # the fully merged configuration
hugo mod graph # module dependencies (Hugo Module installs)
hugo server --disableFastRender # rebuild everything on each changeCommon problems #
The theme is not loading #
Symptoms: the site renders with no styling, or Hugo errors that it cannot find the theme.
Likely causes: the theme is not installed, or theme/the module import is
not set.
Fix:
- Git submodule installs: confirm
themes/ananke/exists andtheme = "ananke"is set. If the folder is empty, rungit submodule update --init --recursive. - Hugo Module installs: confirm the import in
module.tomland runhugo mod get github.com/gohugo-ananke/ananke/v2 && hugo mod tidy. - Verify with
hugo config | grep -i theme.
The homepage is blank #
Symptoms: the homepage shows little or no content.
Likely causes: there is no content/_index.md, and recent posts are
disabled or there are no posts in the expected section.
Fix:
- Add a
content/_index.mdwith body text (see Homepage). - Confirm
ananke.show_recent_posts = trueand that posts exist. - If your posts are not in the
postsection, setmainSectionsto your section name.
CSS / styling is missing #
Symptoms: content shows but is unstyled.
Likely causes: the theme failed to load, stale generated resources, or a broken custom CSS reference.
Fix:
- Confirm the theme loads (see above).
- Clear generated resources and rebuild:
hugo --gc. - Check any custom CSS paths and the build log for warnings.
The menu is not showing #
Symptoms: no navigation links appear in the header.
Likely causes: no main menu is defined, or entries use nested children.
Fix:
- Define a
mainmenu (see Menus). - Keep it flat — the theme renders a single level only.
Images are not showing #
Symptoms: images 404 or do not appear.
Likely causes: wrong path, static included in the URL, or case mismatch.
Fix: see Images → Common path mistakes.
Social links are not showing #
Symptoms: follow or share icons do not appear.
Likely causes: the network is not listed in the networks array, or it has
no configured profile.
Fix: add the network slug to ananke.social.follow.networks (or
...share.networks) and configure it, as described in
Social Media Networks.
Hugo Module path issues #
Symptoms: hugo mod errors, or the wrong theme version is used.
Fix:
- Run
hugo mod graphand confirmgithub.com/gohugo-ananke/ananke/v2appears. - Force an update:
hugo mod get -u github.com/gohugo-ananke/ananke/v2 && hugo mod tidy. - Ensure Go is installed (
go version).
The old theNewDynamic path is still used #
Symptoms: hugo mod graph or .gitmodules still references
theNewDynamic/gohugo-theme-ananke.
Fix: follow the Migration from theNewDynamic guide.
The Netlify build fails #
Symptoms: the deploy fails while building.
Likely causes: a Hugo version mismatch between Netlify and your project, or missing Go for Module installs.
Fix:
- Pin the Hugo version in
netlify.toml(or theHUGO_VERSIONenvironment variable) to a version that meets the theme’s minimum. - For Hugo Module sites, ensure the build environment has Go available.
- Read the full build log, not just the last line.
Local Hugo version mismatch #
Symptoms: features behave differently locally than in production, or Hugo reports an unsupported feature.
Fix: check hugo version against the theme’s minimum (declared in the
theme’s module.toml) and install the extended edition if needed.
Sorry, but “$FEATURE does not work” doesn’t work for us #
Long story short, ask yourself: If you start bleeding out of all your orifices, will you tell the doctor “Doctor please help, I am quite new to this whole health thing and know you will laugh about me but I suddenly started bleeding out of all my orifices.”? Or will you tell the doctor “Doctor, after ingesting a couple of razor blades I suddenly started bleeding. The razor blades were quite sharp. Can you help me?”
In open source communities like ours reporting issues clearly helps everyone. A message like “the homepage doesn’t work” might feel like a good starting point, but without more detail, it leaves us guessing. Some problems come from Hugo itself, others from the Ananke theme, or even from how it’s configured - so the more info you share, the faster we can figure it out together.
When reporting a bug or asking for help, please include:
- Versions: your Hugo version, the version of the Ananke theme (and how you installed it), and your operating system.
- Configuration: your full
hugo.tomlorhugo.yamlfile or configuration folder, plus any relevant folder structure or module settings. Note that this can behugo.ext,config.ext, or even a full folderconfigwith several sub levels. Hugo is flexible. - Steps: what you were trying to do, what you expected to happen, and what actually happened instead.
- Output: the full error messages from the command line—don’t just paste the last line.
- Extras: logs, browser details (for visual issues), screenshots are very much appreciated and help to put words into visual or, if something looks wrong, make that clear - anything that might help us reproduce the problem.
The more complete the picture, the more likely it is that someone in the community will jump in and help quickly. You’re not just helping yourself—you’re making the project better for everyone.