-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
content/_index.md is not displaying on homepage #216
Comments
That section of the Theme Documentation - Basics must be out of date. The Theme Documentation - Advanced page indicates that the file should be Using the correct filename may not be enough to solve your issue, though. For my local development setup [1], when I save changes to [1] Windows 10, hugo v0.123.1-3f8434a62fc91a50f4e5bd43a4435d2d301844ff+extended windows/amd64 BuildDate=2024-02-21T08:17:45Z VendorInfo=gohugoio |
@SpencerDub Thanks for reporting the issue. As @mo65535 correctly pointed out, the basic documentation is outdated and mentions the incorrect filename. The PR to use the correct filename is under review, should be fixed soon :) |
Thank you both; updating the filename fixed the issue. I appreciate the help. |
Hi all, I originally implemented this feature (#119, #109) and curious why the filename was changed to
https://gohugo.io/content-management/organization/#index-pages-_indexmd https://bwaycer.github.io/hugo_tutorial.hugo/content/using-index-md/ https://discourse.gohugo.io/t/what-is-the-difference-between-index-md-and-index-md/10330/2 |
Commenting here again for posterity, and in lieu of opening a new issue. I believe @yashmehrotra was originally considering reverting to
As stated in #187 (comment):
I've made my case above, just marrying up why the change occurred on this occasion! |
@jamesericdavidson I think we reached this state due to too many frequent iterations without considering the "why" for the changes cc: @526avijitgupta Do you have suggestions for the ideal way this can be approached ? |
@yashmehrotra FWIW, if we want to support the standard Hugo way, both
Ergo, we avoid breakage for legacy users, support interoperability (i.e. the users ability to switch themes without file renaming or reconfiguration), and users who haven't updated Gokarna in a long time. The only dubious condition is when both files exist - we just need to pick the least worst option, and openly document the behaviour. I wouldn't suggest this approach if we hadn't already subjected users to one breaking change; I think breaking this file again isn't worth it, and would rather stick with |
The documentation indicates that you can display content on the homepage by making a
content/_index.md
file.My
content/_index.md
contains:However, when I run
hugo serve
, nothing of the above is displayed on the homepage, except the site title.I do not presently have an avatar nor social links defined, and I have not set the
showPostsOnHomePage
parameter.I have also tried this with no frontmatter. I have tried hard-refreshing the tab with the site in it, as well as restarting the Hugo server.
What am I missing about displaying content on the homepage?
The text was updated successfully, but these errors were encountered: