Local HUGO server not picking up new posts

Hi. I have used Hugo for quite a while, but i have encountered an issue with my local Hugo server.

It is not picking up content for some reason. I have tried to search everywhere for an answer to this issue, but have been unsuccessful.

It should be noted that if i push it to Netlify, everything renders just fine. But its somewhat annoying that i cannot develop content locally before i push it to Netlify.

Any way i can provide debugging information for you clever folks to help me out?

Thanks in advance for any help.

some common pitfalls are in the Frequently asked questions and the Troubleshooting

Some places to look at since your CI build works:

  • compare your netlify command and arguments to the one used locally
  • compare the used Hugo versions
  • remove your local publishDir (default /public in your sites root)
    check the published structure and files after
  • don’t run hugo and hugo server in parallel
  • time zone differences (future dates)

These should not be cause of issue, as your site builds with your CI

  • _index.md vs index.md
  • draft, future and date settings

If you cannot track that down, the easiest would to share the repo.

I tried copying my site to a backup and remove everything in /public , but now the site wont render at all.. simply get a Page Not Found error. :frowning:

what about the hugo versions?

looks like it’s time share.

My Local version is:

hugo v0.154.3+extended+withdeploy darwin/arm64 BuildDate=2026-01-06T16:30:17Z VendorInfo=Homebrew

I will check out the Netlify build version of Hugo, if i can find it :slight_smile:

I have tried updating my local Hugo installation several times, so 0.154.3 is just the latest and it still doesnt work.

Ill get back with build information for Netlify when i find it… Again, many thanks for your help and time!

Update:

Ive set this in my netlify.toml file:

[context.production.environment]
HUGO_VERSION = “0.154.0”
HUGO_ENV = “production”
HUGO_ENABLEGITINFO = “true”

i would check the logs if this is really taken.

also try locally the same version

Thank you… I will see if i can downgrade my brew installed Hugo version.

I will update this afterwards.

I tried using version: hugo v0.145.0-666444f0a52132f9fec9f71cf25b441cc6a4f355+extended darwin/arm64 BuildDate=2025-02-26T15:41:25Z VendorInfo=gohugoio

And still no dice.. there must be something wrong in my website structure :frowning:

Update:

I even tried swapping out the theme for something else, and even this change is not appearing in my local server!!

you said pushing to netlify works so it’s maybe a machine problem.

if you share your repo i can try to build or reproduce . also privately.

so we can narrow the root cause

Sure thing, how do i go about sharing the repo? (sorry, im not an experienced user in this).

Make the GitHub repository publicly accessible and share the link to it here.

Should have mentioned this in the pitfalls at the beginning

  • missing code
    common pitfall when using git submodules
    if the repo uses Git submodules use git clone --recurse-submodules or git submodule update --init after clone
1 Like

Using the –recurse-submodules did the trick!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.