Skip to content
A Gatsby theme to display a Contentful gallery
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
scripts
src
.gitignore
LICENSE
README.md
gallery-screenshot.png
gatsby-config.js
gatsby-node.js
index.js
package.json
yarn.lock

README.md

Gatsby Theme Contentful Gallery

Getting Started

Create a new Contentful Space

https://www.contentful.com/faq/basics/#how-do-i-create-a-space

Run the setup scripts

yarn global add contentful-management
contentful space import --space-id SPACE_ID --mt MANAGEMENT_TOKEN --content-file scripts/contentful-export.json

Add the plugin to your gatsby-config

yarn add gatsby-theme-contentful-gallery
  plugins: [
    {
      resolve: "gatsby-theme-contentful-gallery",
      options: {
        contentfulSpaceId: YOU_SPACE_ID,
        contentfulAccessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
      },
    },
  ...
  ]
You can’t perform that action at this time.