Closed extractachris closed 8 years ago
@extractachris Thanks for reporting this.
Currently this gem doesn't support directory indexes. It makes the assumption that folders are just for grouping links, and won't actually be links themselves. That leads to the assumption that there won't be multiple index.html
files.
You can see https://github.com/bryanbraun/middleman-navtree/issues/8, for a similar issue and how you can use automatic_tree_updates
as a workaround for manually updating the tree. It's not an ideal solution.
Here's what I'll do. I'll make it more explicit in the README that directory indexes aren't currently supported, and I'll create a Github issue for tracking progress on that feature.
Sounds great, thank you! I look forward to keeping an eye on the new ticket.
The new issue is here: https://github.com/bryanbraun/middleman-navtree/issues/12
Also note the update to the README: https://github.com/bryanbraun/middleman-navtree#known-issues
I have multiple files named
index.html.erb
that act as directory indexes for various folders throughout my site.I noticed NavTree incorrectly associated my site's root
index.html.erb
with/work/client-1/index.erb.html
below and then skips every other folder that uses that same file name: