An open API service indexing awesome lists of open source software.

https://github.com/jakepartusch/gatsby-theme-contentful-gallery

A Gatsby theme to display a Contentful gallery
https://github.com/jakepartusch/gatsby-theme-contentful-gallery

Last synced: 5 months ago
JSON representation

A Gatsby theme to display a Contentful gallery

Awesome Lists containing this project

README

        

# 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,
},
},
...
]
```