🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

gatsby-plugin-tinacms

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-tinacms

A Gatsby plugin for adding Tina to your website. This plugin wraps your site in a `TinaProvider` and instantiates the CMS.

0.43.3
latest
Version published
Weekly downloads
42
-67.69%
Maintainers
12
Weekly downloads
 
Created

gatsby-plugin-tinacms

A Gatsby plugin for adding Tina to your website. This plugin wraps your site in a TinaProvider and instantiates the CMS.

Installation

yarn add gatsby-plugin-tinacms

Setup

Include gatsby-plugin-tinacms in the list of gatsby plugins:

gatsby.config.js

module.exports = {
  // ...
  plugins: [
    // ...
    {
      resolve: 'gatsby-plugin-tinacms',
      options: {
        enabled: process.env.NODE_ENV !== 'production',
        sidebar: {
          position: 'displace',
        },
        plugins: [
          //...
        ],
      },
    },
  ],
}

Options

export interface GatsbyPluginTinacmsOptions {
  enabled?: boolean
  sidebar: TinaCMSConfig['sidebar']
  toolbar: TinaCMSConfig['toolbar']
  manualInit?: boolean
}

Checkout the UI documentation for more context on the Sidebar & Toolbar Config options.

Visit the Using Gatsby with a Git Backend guide for step-by-step instructions on using this package in concert with other Tina+Gatsby plugins.

FAQs

Package last updated on 23 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts