0.2.0 • Published 3 years ago

gatsby-source-hashnode-devblog v0.2.0

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

Installation

# For npm
$ npm install gatsby-source-hashnode-devblog
# For yarn
$ yarn add gatsby-source-hashnode-devblog

Usage

Add gatsby-source-hashnode-devblog to plugin array with following configurable options to gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve:  'gatsby-source-hashnode-devblog',
      options: {
        username:  '', // Your username on hashnode without `@`.
      }
    }
  ]
}

Example Query

query MyQuery {
  allDevblogPost {
    edges {
      node {
        brief
        contentMarkdown
        coverImage
        cuid
        dateAdded
        dateUpdated
        slug
        title
        type
        tags {
          name
        }
        id
      }
    }
  }
}

License (MIT)

Open LICENSE file for more info