-
I want to bind URL directly to Book docs documents, but the error message shows "Homepage not found at /home/index.md!". How can I skip the homepage? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes that's possible. If you remove Your
Now, you'll also have to change the menu links etc. And I can't promise you that something else won't break. I've only done a minimal test. |
Beta Was this translation helpful? Give feedback.
Yes that's possible.
Generally, a file on this path:
./content/_index.md
, will be rendered as thehomepage
.Take a look at this: https://gohugo.io/templates/homepage/
If you remove
./content/home/
and place the content of./content/<docs>
on./content/
, Hugo should render your docs on the landing page. I've tested this using thestarter-book
template, it should work.Your
./content/
file tree should look something like this now:Now, you'll also have to change the menu links etc. And I can't promise you that something else won't break. I've only done a minimal test.