gatsby-source-fridge

Add Fridge content into your Gatsby project.

Usage no npm install needed!

<script type="module">
  import gatsbySourceFridge from 'https://cdn.skypack.dev/gatsby-source-fridge';
</script>

README

gatsby-source-fridge

Official source plugin for adding Fridge content to Gatsby.

Installation

$ npm install --save gatsby-source-fridge
// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: 'gatsby-source-fridge',
      options: {
        token: 'FRIDGE_API_TOKEN'
      }
    }
  ]
}

Querying Content

allFridgePages {
  edges {
    node {
      name
      slug
      content
      images {
        url
      }
    }
  }
}
fridgeSettings {
  logo {
    url
  }
  copyright
}