Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Setting the footer style

Kevan Hannah edited this page Nov 3, 2023 · 1 revision

Two footer styles are supported:

  • default - the standard Ontario.ca footer.
  • expanded - a footer including the standard content that can also be customized with additional content using the template in src/_includes/app/_footer_expanded.njk. The additional content included is an example only.

The footer style is set in src/_data/app/app-globals.js.

For full details and guidelines on footer styles in the Ontario Design System, consult the documentation on Ontario.ca footers.

To set the footer style differently for specific pages from the global config, you can specify it in the front matter of the page: footerType: expanded

Translating content for the expanded footer

Any content for the expanded footer should be localized using the approach described in the section Providing content in different languages. The example expanded footer's localized strings in /src/_data/core/core-locale-strings.json should not be modified. Instead, create any localized strings for your specific application's expanded footer in /src/_data/app/app-locale-strings.json.

Clone this wiki locally