nanogen
nanogen copied to clipboard
iterate through pages?
Is it possible to iterate through pages? for example to build a menu of all of the sub pages that links to each one.
For example with this folder hierarchy:
Hi,
Nanogen doesn't have this kind of functionality right now. One option is to manually create a JSON file with the links and page titles and use that to build a menu.
We could generate a site data file listing all the pages as part of the build process. That would help this and other similar cases.
an implementation of this (& #14 ) is here: https://github.com/mediaupstream/nanogen/tree/page-defs-plus-specific-media
I'll make a pull request soon, but I need to get things cleaned up a bit before hand.