Refactor categories into rootListing

This uses proper paths with slashes everywhere, and lists documents
instead of just folders for root.
This commit is contained in:
2017-11-12 20:46:31 +01:00
parent 287a999207
commit 2008ed5634
9 changed files with 67 additions and 32 deletions

View File

@@ -2,7 +2,7 @@
<nav>
<ul>
{{#each categories as |category|}}
<li>{{#link-to "index" (query-params path=category)}}{{category}}{{/link-to}}</li>
<li>{{#link-to "index" (query-params path=category.path)}}{{category.name}}{{/link-to}}</li>
{{/each}}
</ul>
</nav>