So awhile back I started building a tumblr style hugo website for sharing work and ideas and links. @jmooring gave me some extremely helpful advice and I ended up with this:
{{ range .Site.RegularPages }}
{{ partial (printf "post-types/%s.html" .Type) . }}
{{ end }}
I decided to wrap that concept back into a full website, but in order to keep things working the way I had in my head, post-type is a section in /content.
When I go to add something like about.md
to /content to build an about page, it kicks back an error:
failed to render pages: render of "home" failed: "/Users/illwill/Code/willduncan.com/layouts/index.html:3:11": execute of template failed at <partial (printf "post-types/%s.html" .Type) .>: error calling partial: partial "post-types/page.html" not found
How would I go about excluding other types from that partial post-types and just go back to regular templates?
Edit: I am assuming that this is what I am looking for?