1.0.2 • Published 3 years ago

gatsby-plugin-erecht24 v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

gatsby-plugin-erecht24

Fetches imprint and privacy policy content from the e-recht24.de API and creates nodes. A premium membership is needed.

Create a project via the project manager and get the api key.

See https://docs.api.e-recht24.de/ for more information.

Install

yarn add gatsby-plugin-erecht24

or

npm install gatsby-plugin-erecht24

How to use

// In gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-plugin-erecht24',
      options: {
        apiKey: YOUR_API_KEY
      }
    }
  ]
}

Options

  • apiKey: required

How to query

query {
  eRecht24Imprint {
      html_de
      html_en
      warnings
  }
  eRecht24PrivacyPolicy {
      html_de
      html_en
      warnings
  }
}

Nodes

  • eRecht24Imprint
  • eRecht24PrivacyPolicy

Fields:

  • html_de
  • html_en
  • warnings
  • created
  • modified
  • pushed

Todo

  • Automatic page generation (with options for layout)
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago