7.0.7 • Published 3 years ago

gatsby-theme-catalyst-bery v7.0.7

Weekly downloads
203
License
MIT
Repository
github
Last release
3 years ago

Gatsby Theme Catalyst Bery

This theme is for a personal blog and demonstrates tight integration with SANITY.io as the CMS and Gatsby as the frontend. It comes with a preconfigured content schema for SANITY.io and demonstration data you can import for a quick start. It features Seo optimization, social image sharing, RSS feed integration, and a clean design language that focuses on your content.

This is also an example of "ejecting" from using a preset header themes and building your own custom header to interact with the other Catalyst themes. The header used here is completely custom for this theme, and not one of the prebuilt options available.

Demos

Catalyzing Start

Because this theme and starter relies on a SANITY.io backend there are a few additional steps to get up and running.

Install the theme and starter

## Install the theme and starter
gatsby new bery https://github.com/ehowey/gatsby-starter-catalyst-bery`
cd bery

Install SANITY.io

## Initiate a new SANITY project using their CLI
cd sanity-studio
sanity install
## Setup a new SANITY.io dataset
## Choose Yes to reconfigure the SANITY project
## Chose Yes to use the default dataset configuration
sanity init
## Import the placeholder data
## Import to the "production" dataset
cd data
sanity dataset import production.tar.gz
# Deploy the graphql schema
cd ..
sanity graphql deploy
# Start your studio on a localhost
sanity start

Update your gatsby-config

You need to update the projectId from SANITY.io so that the theme can properly source its data. You can find this in the file sanity-studio/sanity.json.

Update your gatsby-config.js:

{
  resolve: `gatsby-theme-catalyst-bery`,
  options: {
    sanityProjectId: `c1x70rzt`, // Change this line
  },
},

Run gatsby develop

You can now run gatsby develop and your site will build correctly sourcing data from SANITY.io!

Theme options

Bery accepts all options from the core theme and sanity theme directly, e.g. you can set useColorMode via gatsby-theme-catalyst-bery and it is passed down to the correct theme appropriately. Note that because of the custom header component and the theme design some theme options may not work as expected - e.g. the site title and avatar image are not optional as they hardcoded into the custom header. This theme was built with a more singluar design and could be modified via component shadowing if needed.

For example the following config is valid:

{
      resolve: `gatsby-theme-catalyst-bery`,
      options: {
        sanityProjectId: `4w5ygwpy`, // Required
        rssTitle: "My Great Blog",
        rssDescription: "A little description of who I am and why I am great.",
        // Defaults
        // sanityPostPath: `/posts`,
        // footerContentLocation: "center",
        // sanityPostListTitle: "Blog",
        // sanityPostListPath: `/`,
      },
    },

Bery Options

OptionValuesDescription
rssTitleStringSet the RSS title for your feed.
rssDescriptionStringSet the RSS description for your feed.
useHeaderSocialLinksBooleanDefaults to true, controls the visibility of social links in header.
useColorModeBooleanDefaults to true, controls the visibility of dark mode toggle.

Sanity Theme Options

OptionValuesDescription
sanityProjectIdStringRequired, Sanity project ID
sanityDatasetStringDefaults to "production", change to reflect the dataset name you are using in Sanity
sanityTokenStringDefaults to null, should only be used with env variables for security purposes.
sanityWatchModeBooleanDefaults to true, toggle for watch mode
sanityOverlayDraftsBooleanDefaults to false, toggle for live previews, a token and private dataset is required.
sanityCreatePagesBooleanDefaults to true, toggle to turn on/off page generation from SANITY.io.
sanityCreatePostsBooleanDefaults to true, toggle to turn on/off blog post page generation from SANITY.io.
sanityCreateCategoriesBooleanDefaults to true, toggle to turn on/off category page generation from SANITY.io.
sanityCreatePostsListBooleanDefaults to true, toggle to turn on/off blog post list generation from SANITY.io.
sanityCreateProjectsBooleanDefaults to true, toggle to turn on/off project page generation from SANITY.io.
sanityCreateProjectsListBooleanDefaults to true, toggle to turn on/off project list generation from SANITY.io.
sanityPostPathStringDefaults to "/posts", is the path for before posts, e.g. site.com/posts/post-1.
sanityPostListPathStringDefaults to "/posts", is the path for the posts list, e.g. site.com/posts/.
sanityProjectPathStringDefaults to "/projects", is the path for before projects, e.g. site.com/projects/post-1.
sanityProjectListPathStringDefaults to "/projects", is the path for the projects list page, e.g. site.com/projects/.
sanityPostListTitleStringDefaults to "Posts", is title for the posts list page.
sanityProjectListTitleStringDefaults to "Projects", is title for the projects list page.
sanityDisplayPostListTitleBooleanDefaults to true, toggle to turn on/off the post list title.io.
sanityDisplayProjectListTitleBooleanDefaults to true, toggle to turn on/off the project list title.io.

Core Theme Options

OptionValuesDescription
contentPathStringDefaults to "content/pages", determines where the pages are created from.
assetPathStringDefaults to "content/assets", determines where the page assets like images are located.
useKatextrue or falseDefaults to false, enables gatsby-remark-katex for displaying math equations.
remarkImagesWidthInteger valueDefaults to 1440, allows you to customize the image width option for gatsby-remarks-images.
imageQualityInteger valueDefaults to 50, allows you to customize the image quality on a scale of 0 - 100.
useAlertBannerBooleanDefaults to false, toggles the display of an alert banner across the top of the page.

Footer Theme Options

OptionValuesDescription
useFooterSocialLinkstrue or falseDefaults to true, controls whether the social links are displayed or not
footerContentLocationString value, "left", "right" or "center"Defaults to "left", determines the location of the footer content.

Variants

To implement in a future release.

7.0.7

3 years ago

7.0.6

3 years ago

7.0.4

3 years ago

7.0.3

3 years ago

7.0.2

3 years ago

7.0.1

3 years ago

7.0.0

3 years ago

6.0.0-beta.7

3 years ago

6.0.0-beta.8

3 years ago

6.0.0-beta.9

3 years ago

6.0.0-beta.14

3 years ago

6.0.0-beta.13

3 years ago

6.0.0-beta.12

3 years ago

6.0.0-beta.11

3 years ago

6.0.0-beta.10

3 years ago

6.0.0

3 years ago

6.0.0-beta.6

3 years ago

6.0.0-beta.5

3 years ago

6.0.0-beta.4

3 years ago

6.0.0-beta.3

3 years ago

6.0.0-beta.2

3 years ago

6.0.0-beta.0

3 years ago

6.0.0-beta.1

3 years ago

6.0.0-alpha.9

3 years ago

6.0.0-alpha.10

3 years ago

6.0.0-alpha.11

3 years ago

6.0.0-alpha.4

3 years ago

6.0.0-alpha.5

3 years ago

6.0.0-alpha.6

3 years ago

6.0.0-alpha.7

3 years ago

6.0.0-alpha.8

3 years ago

4.0.0-alpha.3

3 years ago

4.0.0-alpha.2

3 years ago

4.0.0-alpha.0

3 years ago

3.1.6-alpha.1

3 years ago

3.1.6

3 years ago

3.1.5

3 years ago

3.1.4

3 years ago

3.1.2

3 years ago

3.1.1

3 years ago

3.1.0

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.0.0

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago