Skip to content

Scandy-co/gatsby-source-iubenda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatsby-source-iubenda

Source plugin for pulling in Iubenda documents at buildtime for Gatsby.

Install

npm install gatsby-source-iubenda --save

How to use

In your gatsby-config.js, add the Iubenda document IDs to option array, where documentId is https://www.iubenda.com/privacy-policy/[DOCUMENT_ID]

plugins: [
  {
    resolve: `gatsby-source-iubenda`,
    options: {
        documentIds: [
          `[DOCUMENT_ID]`,
          `[DOCUMENT_ID2]`,
        ]
    }
  }
]

Next, you can query Privacy Policy and Cookie Policy:

query MyQuery {
  iubendaDocument {
    privacyPolicy {
    	title
      content
    }
    cookiePolicy {
    	title
      content
    }
  }
}

About

gatsby source for iubenda legal docs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published