This example shows that the properties from "example.json" and "example.hbs" are on the page object.
Page
Each pages
Debug Info
{
"_page": "all",
"assets": "../assets",
"basename": "example",
"categories": [
"yaml",
"yfm"
],
"data": {
"title": "Title from YFM of \"example.hbs\"",
"categories": [
"yaml",
"yfm"
],
"tags": [
"example"
],
"items": [
"omega",
"gamma"
]
},
"dest": "test/actual/single_page.html",
"dirname": "test/actual",
"ext": ".html",
"extname": ".html",
"filePair": {
"src": [
"test/fixtures/pages/example.hbs"
],
"dest": "test/actual/single_page.html",
"orig": {
"src": [
"test/fixtures/pages/example.hbs"
],
"dest": "test/actual/single_page.html"
}
},
"filename": "single_page.html",
"first": true,
"index": 0,
"items": [
"omega",
"gamma"
],
"last": true,
"middle": false,
"number": 1,
"page": "\n \n \n \n Layout filename: '{{layout}}'\n \n \n \n \n \n\n \n
\n
\n \n
\n \n\n {{pager pagination}}\n
\n\n
\n \n
\n \n
\n \n
\n
\n \n\n
\n
\n
\n \n {{#if categories}}\n {{> collections-categories }}\n {{/if}}\n
\n
\n {{#if tags}}\n {{> collections-tags }}\n {{/if}}\n
\n
\n\n
\n\n \n\nThis example shows that the properties from \"example.json\" and \"example.hbs\" are on the page object.\n\n
\n\n
{{page.title}}
\n
{{page.text}}
\n\n
\n\n
{{title}}
\n\n\n \n
\n\n
\n
\n\n
Page
\n \n
Each pages
\n
\n\n
Debug Info
\n {{{inspect page 'json'}}}\n
\n
\n
\n
\n
\n \n \n\n",
"pageName": "single_page.html",
"pagename": "single_page.html",
"src": "test/fixtures/pages/example.hbs",
"tags": [
"example"
],
"title": "Title from YFM of \"example.hbs\""
}