You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the metadata now being the same across all indices, I was wondering if it would make sense to have subdirectories inherit their template from parent directories by default. This would let users make a template that would be inherited across a subdirectory tree. With a little bit of work, it would also allow the default template to generate indices across the entire site.
The main argument against this is that some people may not want an index for certain directories, or they may want to use the default directory index generated by their server. I think we could get around this by either treating an empty template file as a "do not render" instruction, or by looking for a specific file (directoryname.norender?) that turns off index generation for a specific tree.
The text was updated successfully, but these errors were encountered:
I'm interested in how Hugo does that, because the docs on lookup order are nowhere near as specific on inheritance. Provided the tool is a Hugo companion, it might be best to mimic it?
On skipping index generation: doesn't headless = true already do that?
Good point, I'll investigate it more when I can. I've started noticing that the Hugo documentation is sparse and/or confusing in some areas, especially in these less visited areas. For example, it isn't clear from the docs that headless = true only affects leaf nodes, but I found that on a blog after some searching and confirmed it on my own as well. It's just a way to make a leaf "invisible" by excluding it from the branch index. Apparently it's intended for use in image galleries and such, somehow... it's a little confusing to me how it would be used, to be honest.
With the metadata now being the same across all indices, I was wondering if it would make sense to have subdirectories inherit their template from parent directories by default. This would let users make a template that would be inherited across a subdirectory tree. With a little bit of work, it would also allow the default template to generate indices across the entire site.
The main argument against this is that some people may not want an index for certain directories, or they may want to use the default directory index generated by their server. I think we could get around this by either treating an empty template file as a "do not render" instruction, or by looking for a specific file (
directoryname.norender
?) that turns off index generation for a specific tree.The text was updated successfully, but these errors were encountered: