Not sure if this is only an issue with the Mainroad theme, but here is the issue:
I am unable to add a partial on the home page created from content/_index.md. I can add it to any other just fine. I can add it to a layout and it works on all pages except the home page.
Changing the content/_index.md to index.md allowed the partial to be added as I needed but now the menu doesn’t work. So it is definately something related to how the content/_index.md file alone is treated.
It also cloud be the primary div, as partials are included in the sidebar.
Okay - here is everything below. The issue seems to be that content/_index.md does not have a section type or something. When I try and specify the layout in the front matter it seems to be ignored. This is only an issues for the content/_index.md - all others work fine.
Here is the widget that is included in the partial:
Here is the partial that references the widget:
{{ partial “widgets/search-mobile.html” . }}
I did but I expect them to come back and say this is not a Mainroad theme issue, but a Hugo issue. That was the response I got when I reported a previous issue. That is why my intial post indicated I was not sure if it was a theme ior Hugo issue.
Found the issue: the index.html template is located in \layouts and not layouts\_default\ with the other templates. Once I added th epartial ther it worked fine.
I have done a lot of work on it but it matched well with the project. I just wanted something that had the framework I needed and responsiveness working and then planned to build everything else out. But yeah - I wish Mainroad had documentation. I have some other templates I am looking at for the long run.