-
Notifications
You must be signed in to change notification settings - Fork 26
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
Unable to use page meta-data inside pages #161
Comments
This issue was solved by #166? |
I believe #166 was related to a pages i18n issue. This issue is about exposing all pages' metadata to every generated page, right? I believe that is not working yet. Note that |
On a second thought, the Note that, currently, as |
Yeah, I was wondering about that. Use cases:
|
👍 |
I just figure out users are unable to use pages meta-data inside in the pages context.
Example:
I want to list all pages I have in a template (imagine a menu).
This can be done easily in the
index.html
template, or even in partials (in the index context):Why this is possible?
Looking at Harmonic's code (src/bin/parser.js) in the function
generateIndex
:As you can see, we're binding the
pages
meta-data.But, unfortunately we can't use the same logic for pages, because this
pages
meta-data aren't being binding.Look (src/bin/parser.js) in the function
generatePages
:We just have the current page data, and not all pages.
The text was updated successfully, but these errors were encountered: