I am building a personal website using Hugo Static Page Generator, but when I do hugo serve
, I am no longer seeing a page, but simply a blank page at localhost:1313
.
I deleted everything and did a fresh install. But still, Hugo is serving blank pages.
In the blank page, I see the Favicon of the previous site draft I had, even though I deleted everything from the previous theme. I cleared the browser in Chrome and tried a different browser too, but it's still not working.
Not sure what information I can provide, as there are no error messages. How can I fix this?
The command hugo renders your site into public/ dir and is ready to be deployed to your web server: Hugo allows you to set draft, publishdate, and even expirydate in your content’s front matter.
While hugo server is high performance, it is a webserver with limited options. Many run it in production, but the standard behavior is for people to use it in development and use a more full featured server such as Nginx or Caddy. ‘hugo server’ will avoid writing the rendered and served content to disk, preferring to store it in memory.
It’s the flag --navigateToChanged. LiveReload works by injecting JavaScript into the pages Hugo generates. The script creates a connection from the browser’s web socket client to the Hugo web socket server. Or… config.
Whenever you make changes, Hugo will simultaneously rebuild the site and continue to serve content. As soon as the build is finished, LiveReload tells the browser to silently reload the page. Most Hugo builds are so fast that you may not notice the change unless looking directly at the site in your browser.
The problem is likely to be the theme - it is either missing or broken. Hugo does not come with any default/fallback theme if you fail to provide a working one.
Debugging guide:
themes
folder, and follow the quickstart.Please verify your config.toml file points to right theme.
If following Quick start tutorial, you might have forgot to run
echo 'theme = "ananke"' >> config.toml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With