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
{{ message }}
This repository was archived by the owner on Feb 11, 2022. It is now read-only.
it would be great if antwar produced the routes and content in this manner:
/ - content from index.md /another-page - content from another-page.md /examples - content from examples/index.md /examples/another-child - content from examples/another-child.md
... and so on, treating each directory as a new route with children and the index.md file as the content for the base route. Then within the section.all() data, these pages would be represented as:
[{title: 'webpack',url: '/',content: 'content from index.md...',pages: [{title: 'Another Page',url: '/another-page',content: 'content from another-page.md'},{title: 'Examples',url: '/examples',content: 'content from examples/index.md',pages: [{title: 'Another Child',url: '/examples/another-child',content: 'content from examples/another-child.md'}]]}]
This way your content structure always reflects your directory structure and much less manual configuration is needed to lay out your project (especially if all files are markdown).