grav-plugin-directorylisting
grav-plugin-directorylisting copied to clipboard
The default route to start creating the structure
I miss the ability to set the default route where the plugin should start creating the structure via:
directorylisting.yaml
route: /blog
or via the page Frontmatter:
directorylisting:
route: /blog
I can make settings via the Twig function, but it is not very comfortable:
{% set settings = {
'route': '/blog'
} %}
{{ directorylisting(settings)|raw }}
Even with this solution, however, I did not come across the possibility of traversing the entire structure, starting with <root>
, e.g. to create the Sitemap.
Setting:
{% set settings = {
'route': '/'
} %}
returns the Home page (and children pages).