Gloabl Variables
settings | description |
site | Sitewide information. |
page | Page variable of particular page. |
_path | Path of the project directory. |
_production | Whether running in production or not. |
Site Variables
settings | description |
site.pages | json Array of page variables for each page. |
site.posts | json Array of page variables for each post. |
site.data | Json data from all the json files in the “src/_data” folder. |
Page Variables
settings | description |
page.data | Page specific custom variables set in gray-matter. |
page.srcfix | Add this in each and every of the src and href attributes of all component files. |
page.name | Name of page file. |
page.path | Path of file with respect to pages folder. |
page.fullpath | Full path of file with respect to pages folder. |
page.actualpath | Full path of file with respect to pages folder and remove html settings. |
page.created | When the page is created, this value can be modified with a gray-matter page specific variable "created". |
page.modified | When the page is modified, this value can be modified with a gray-matter page specific variable "modified". |
page.content | Parsed content of the page. |