@arshad/gatsby-theme-core

Helpers for @arshad/gatsby-themes packages

Usage no npm install needed!

<script type="module">
  import arshadGatsbyThemeCore from 'https://cdn.skypack.dev/@arshad/gatsby-theme-core';
</script>

README

@arshad/gatsby-theme-core

Version License PRs welcome!

This core theme includes shared functionality and helpers for @arshad/gatsby-themes.

Installation

Step 1: In the root of your Gatsby site, run the following command:

yarn add @arshad/gatsby-theme-core

Step 2: Enable it in gatsby-config.js

// gatsby-config.js
...
  plugins: [
    `@arshad/gatsby-theme-core`
  ]
...

Theme options

Key Default value Description
imagesPath /content/posts Location of your images

Example usage

// gatsby-config.js
...
  plugins: [
    {
      resolve: `@arshad/gatsby-theme-core`,
      options: {
        imagesPath: `assets/images`,
      }
    }
  ]
...

Support

Create an issue on the main repo @arshad/gatsby-themes.