0.3.2 ā€¢ Published 4 years ago

gatsby-theme-magic v0.3.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Magic šŸ§™ā€ā™€ļø

This is a GatsbyJS theme that is used for sites with headless wordpress.

šŸšØšŸšØšŸšØ WARNING still in development, Not Documented, Use at your own risk šŸšØšŸšØšŸšØ

Installation

npm install --save gatsby-theme-magic
// gatsby-config.js

{
  // ... other config
  plugins [
    {
      resolve: 'gatsby-theme-magic',
      // Optional Config
      options: {
        // Wordpress Config
        wordpress: {
          endpoint: '<YOUR_WORDPRESS_GRAPHQL_ENDPOINT>',
          // TODO: Support standar WP and headless
        },
        // Google Analytics Config
        googleAnalytics: {
          trackingId: '<GOOGLE_ANALYTICS_TRACKING_ID>'
          // Array of Excluded URLs
          excludes: [],
          cookieDomain: '<GA_COOKIE_DOMAIN>'
        },
        // Google Tag magager Config
        googleTagManager: {
          id: '<GTM_ID>',
          // Platform your code is running on, defaults to "Gatsby"
          platform: '',
        }
      }
    }
  ]
}