Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iterate through pages? #13

Open
bmoren opened this issue Nov 12, 2018 · 2 comments
Open

iterate through pages? #13

bmoren opened this issue Nov 12, 2018 · 2 comments

Comments

@bmoren
Copy link

bmoren commented Nov 12, 2018

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:

screen shot 2018-11-12 at 9 51 50 am

@doug2k1
Copy link
Owner

doug2k1 commented Nov 15, 2018

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.

@bmoren
Copy link
Author

bmoren commented Nov 18, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants