I want to add some metadata to each page and I use a code like this:
- current_page.add_metadata( {'data_x' => t('data_x')} )
When I am on the child page I want to display data of parent pages. Data must not come from frontmater since I need ruby processing to make them.
Currently it looks like I can access this data from my header template only for the current page. Is there any way to use data that gets generated on parent or other pages ?
It doesn’t have to be metadata, but I need access to variables defined on parent or other pages.