gridsome-source-buttondown

1.0.0 • Public • Published

gridsome-source-buttondown

Buttondown source for Gridsome

Install

  • yarn add gridsome-source-buttondown
  • npm install gridsome-source-buttondown

Usage

const { API_KEY } = process.env;
module.exports = {
  plugins: [
    {
      use: 'gridsome-source-buttondown',
      options: {
        apiKey: API_KEY
      }
    }
  ],
   templates: {
    Email: "/archive/:id"
  }  
}

This plugin lets you load data from the Buttondown API. This allows you to directly host your own archive within Gridsome.

Options

apiKey

  • Type: string required

The buttondown API Key (found in settings).

typeName

  • Type: string
  • Default: 'Email'

The GraphQL type and template name. A .vue file in src/templates must match the typeName to have a template for it.

/gridsome-source-buttondown/

    Package Sidebar

    Install

    npm i gridsome-source-buttondown

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.52 kB

    Total Files

    3

    Last publish

    Collaborators

    • oswld