-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Homepage displays only header and footer due to a misconfiguration #73
Comments
This is a known issue, it probably has nothing to do with relative path. Sometimes I run into this when running I can't find any ways to reproduce this, so it's hard to sort this out, especially I don't understand a single line of Hugo source codes. I'm not sure if it's the theme is doing something wrong or Hugo itself has a bug… |
I'm facing the exact same issue somehow. Everything works fine locally, but whenever I'm publishing to github pages the My config, and the generated index.html. When running locally and serving from the in-memory Hugo version I see the Any ideas @Track3? I'm quite new to hugo and have no clue where to start looking. |
Hi @truemped , I think I found out what causes this problem. You just need to delete This is a misconfiguration, it's used to be in the example The below explains why it was there and why it's wrong
This misconfiguration is causing a lot of problems, it's not a really obvious mistake, and problems it causes are really uncertain, like this one, when running I'm going to try my best to remind more people to update their configs. cc @nachsommer |
The problem is solved. Thank you so much! |
Perfect! Thanks a lot @Track3 |
If I configure instead of
baseURL = "http://example.com"
the base url with a relative path like
baseURL = "http://example.com/somewhere/deeper/"
the hugo server works properly in the localhost environment, however, if I put the site online at the address http://example.com/somewhere/deeper/
it displays only the footer on the main page.
The text was updated successfully, but these errors were encountered: