Skip to content

Theme Options

There are a number of options for the themes that act as flags to control various aspects of the site appearance and function. Try experimenting with these to get a feel for how it changes the site. The options for each theme are documented in the respective docs.

For example:

{
resolve: `gatsby-theme-catalyst-core`,
options: {
//Default options are:
// contentPath: `content/pages`,
// assetPath: `content/assets`,
// remarkImagesWidth: 1440,
// imageQuality: 50,
// useAlertBanner: false,
},
},
{
resolve: `gatsby-theme-catalyst-sanity`,
options: {
// Example for an env variable
// sanityProjectId: process.env.SANITY_PROJECT_ID,
// sanityDataset: process.env.SANITY_DATASET,
// sanityToken: process.env.SANITY_TOKEN,
//
// Default options are:
// sanityProjectId: "abc123" // Required
// sanityDataset: "production"
// sanityToken: null
// sanityWatchMode: true
// sanityOverlayDrafts: false // Token is required for this
// sanityCreatePages: true
// sanityCreatePosts: true
// sanityCreatePostsList: true
// sanityCreateProjects: true
// sanityCreateProjectsList: true
// sanityPostPath: "/posts"
// sanityProjectPath: "/projects"
// sanityPostListTitle: "Posts"
// sanityDisplayPostListTitle: true
// sanityProjectListTitle: "Projects"
// sanityDisplayProjectListTitle: true
sanityProjectId: "p9a6h8j1",
},
},
{
resolve: `gatsby-theme-catalyst-header-top`,
options: {
// Default options are
// useStickyHeader: true,
// useHeaderSocialLinks: true,
// useColorMode: true
},
},
{
resolve: `gatsby-theme-catalyst-footer`,
options: {
// Default options are
// useFooterSocialLinks: true,
// footerContentLocation: "left", // "left", "right", "center"
},
},

© 2021 Gatsby Theme Catalyst