Create new pages under the content directory.
build/
content/
index.ejs
Pages contain page includes and a page template declaration.
index.ejs
---
template: your-custom-page-template
---
<%- include(site.ejsPath + 'components/your-custom-component') %>
Options:
Page templates
Page includes
Page data is stored under the data directory and injected into your components/pages.
build/
data/
index.json
index.json
{
"title": "Hello World!",
"info": {
"header": "Bowman",
"description": "A simple static site generator...",
"link": {
"text": "Click here to read the documentation.",
"href": "https://www.myprojectsite.com"
},
"features": [
{
"list": "Recursively generates page markup"
},
{
"list": "Recursively finds and outputs entry points"
},
{
"list": "Hot reloading of pages and assets"
},
{
"list": "Asset bundling, cache prevention, and code splitting support"
}
]
}
}
Note: content and data file/folder structures must match. In other words, a 1:1 relationship of content and data for a page must exist:
build/
content/
index.ejs
data/
index.json