You can use a pages.json
file in your pages repository to set global attributes and defaults for your pages. If you have a question about any of these attributes please reply to this topic. If you think there is a bug with a global attribute please submit a bug report. If you’d like to change a global attribute or add a new one, please submit a feature request.
An example for all current global attributes can be found in Pavilion’s pages.json.
scripts
Script to be loaded on all pages. A script URL included in this attribute array will be added to the <body>
of your landing pages layout in the form
<script src=[url]></script>
header
Add header HTML to all pages. The header HTML is here, and the configurable attributes are described below
"header": {
// href on anchor wrapping header logo
"root": <url; default '/'>,
// notice to add to header
"notice": {
// href on anchor wrapping notice text
"href": "/join",
// notice text
"text": "We're looking for new members"
}
}
footer
Add footer HTML to all pages. The footer HTML is here, and the configurable attributes described below
"footer": {
// href on anchor wrapping footer logo
"root": <url; default "/">,
// url of footer logo. Site logo will be used if not provided.
"logo": "<logo_url>",
// text to display below logo on left of footer
"left_text": "<string; default "">"
},
menus
Menu to be added to header and footer. Each item can have multiple sub-items. The label of each item will also be added to the item html as a class.
"menus": [
{
"name": "my-menu",
"items": [
{
"label": "My Page",
"description": "My cool page",
"href": "/my-page",
"items": [
{
"label": "My Secondary Page",
"href": "/my-secondary-page",
"description": "Page secondary to My Page"
}
]
}
]
}
]