This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Building templates
Alan Harnum edited this page Apr 28, 2023
·
1 revision
The Jamstack Toolkit is built on top of the Eleventy static site generator; you can refer to Eleventy's documentation on template usage in general for many questions about working with templates.
This documentation specifically focuses on features or customizations in the Jamstack Toolkit related to building and managing templates.
A number of useful template globals are defined for convenience in src/_includes/core/layout.njk
, under the templateGlobals
namespace. Notably for common use cases:
-
templateGlobals.assetsRoot
is a relative reference to the deployed location of thesrc/assets
folder -
templateGlobals.designSystemRoot
is a relative reference to the deployed location of the Ontario Design System assets