I have an index.html
page so I can have a custom homepage. I also have a /posts
URL, which is a list page created by Hugo.
What I want is to add the content of list.html
applied to /posts
into index.html, so I get a list of posts on my homepage. I don’t want some naive HTML embed of /posts because that would include the header and footer for example, which are defined in baseof.html.
I just want to somehow “include” list.html
but telling it to render itself as if it were for the /posts
page.
Right now, I just naively copy the contents of the list template into the homepage, which I don’t feel good about.