Hello,
After having successfully used Hugo with the Hyde theme for a few years, I decided the other day to build a new website.
So, I followed the ‘quick start guide’ again and created a new hugo site in a ‘monblog’ folder. I added a theme, smol https://github.com/colorchestra/smol and started to write 2 or 3 articles, an about page, etc. Then I launched the local server using hugo server -D
and went to http://localhost:1313/ to see it and it worked fine.
I changed a few things in my config.toml and in the smol theme to fit my needs, and the rendering was fine for me.
Then I stopped my local server with Ctrl+C and re-launched it with hugo server -D
again, but this time it told me my website was viewable at:
hugo server -D
Start building sites …
hugo v0.87.0+extended linux/amd64 BuildDate=unknown| FR
-------------------±----
Pages | 18
Paginator pages | 0
Non-page files | 0
Static files | 4
Processed images | 0
Aliases | 6
Sitemaps | 1
Cleaned | 0Built in 43 ms
Watching for changes in /home/arnauld/monblog/{archetypes,assets,content,data,layouts,static,themes}
Watching for config changes in /home/arnauld/monblog/config.toml
Environment: “development”
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/blog/ (bind address 127.0.0.1)
Press Ctrl+C to stop
And when I go to http://localhost:1313/blog/ I can see my main page, I can click my articles and read them ok, but a few links (about page, home, etc.) redirects me to a 404 page not found (for example if I click a link on my site which should redirect me to my homepage it redirects me to .http://localhost:1313/blog/ and another link which should redirects me to the same home page redirects me to http://localhost:1313/blog/ … However when I first generated my blog the two links were working fine and redirected me to my homepage. The changes happened when I stopped and re-launched my local server with hugo server -D
That’s very weird and I don’t understand why. Furthermore, as you can see above, the local server tells me to view my website at http://localhost:1313/blog/ . Blog was a local folder in which I set up a hugo website previously but I then deleted it. And my new website is in a ‘monblog’ folder.
Did Hugo mixed things, does it keep in memory previously generated website and mixed eveything?
I am confused and don’t understand why this is happening.
Thank you for any help.