Index.html is not being rendered

This is what I did:

npm install -g pnpm
git clone --recurse-submodules https://github.com/Sapp00/hugo_dummy
cd hugo_dummy
pnpm run setup
pnpm run dev

And when I look in main/public I see that an index.html was not created in the root of the public directory.

main/config/_default/config.toml

[outputs]
home = ["SearchIndex"]

The above tells Hugo to render the SearchIndex output format, and nothing else, for the home page.

At a minimum I think you want to do this:

[outputs]
home = ["html","SearchIndex"]

Or maybe this:

[outputs]
home = ["html","rss","SearchIndex"]
1 Like