Skip to content

Latest commit

 

History

History
55 lines (47 loc) · 874 Bytes

README.md

File metadata and controls

55 lines (47 loc) · 874 Bytes

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'
      }
    }
  ]
}

Examples

Querying Content

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