@sonarsource/gatsby-theme-marketing
v3.8.0
Published
Gatsby theme for Sonar projects
Downloads
653
Readme
Sonar Gatsby theme
Purpose
- Standardize the list of dependencies needed for Martech maintained websites
- Provide a starting set of common gatsby plugins preinstalled, and minimum options to configure them
- Provide easy integration with Kentico Kontent.
- Use the Sonar Design System
How to use it
This theme is included in the boilerplate by default. If you want to use it somewhere else, simply install the gatsby-theme-sonar
dependency, and enable it in your gatsby config.
Options
projectId (string)
: the Kentico Kontent project idpreviewKey (string)
: The Kentico Kontent preview keysecureKey (string)
: The Kentico Kontent secure access keypreviewMode (boolean)
: if true, the project will use the preview API from Kentico KontentmanagementKey (string)
: The Kentico Kontent management keytypesToGenerate (string[] | undefined)
: see the GraphQL transformer plugin docshomepageCodename (string | undefined)
: The codename of the homepage in Kentico Kontent. If not specified, defaults tohomepage
disablePageGeneration (boolean | undefined)
: If true, will disable the default page generation algorithm. Useful if you are integrating the theme in an existing website that has its own page generation algorithm.layout (string | undefined)
: The root layout of your pages, as specified bygatsby-plugin-layout
. if not specified, will use theMainLayout
from the theme.
Included plugins
@sonarsource/marketing-gatsby-transformer-kontent-graphql
gatsby-plugin-emotion
gatsby-plugin-image
gatsby-plugin-layout
gatsby-plugin-sharp
gatsby-plugin-tsconfig-paths
gatsby-transformer-sharp