I have recently upgraded my Hugo instance from 0.25.1 to 0.42.2. However since the update, my homepage has been completely broken. I realise it might be due to some changes around page bundles introduced around 0.30. Now, it seems I just can fix the homepage. Whatever changes I make to index.html are not reflecting. It keeps rendering the old (broken) template.
Since last 2 days, I am stuck, unable to wrap my head around what I am missing. As mentioned in doc, I have an _index.md file in \content\ and index.html in \themes\<MYTHEME>\layouts\. I would really appreciate any point.
Any changes to this index.html file aren’t reflecting and for some reason the post type check too isn’t working out. Surprisingly all was fine before update. So I am not sure what I am missing here. I would appreciate any pointer.
No, there is no \layouts\index.html. Theme is correctly configured in config.toml. Changes to other sections (like partials etc) are getting reflected.
Even on my local dev env, changes are reflected (I have tried both --renderToDisk and --disableFastRender flags). Slug was just something I was trying out, I have tested without that too, no success.
I have identified the issue, there was a conflict between index.html and list.html in \layout\page. I suspect this must have been affected in v3.1 when the concept of page bundles was introduced. I still do not understand it fully. But for now my problem is resolved by removing the \layout\page\list.html file.