0.2.0 • Published 3 years ago

gridsome-source-hashnode-devblog v0.2.0

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

Installation

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

Usage

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

module.exports = {
  plugins: [
    {
      use:  'gridsome-source-hashnode-devblog',
      options: {
        username:  '', // Your username on hashnode without `@`.
        typeName:  'DevblogPost' // Optional
      }
    }
  ]
}

Example Query

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

License (MIT)

Open LICENSE file for more info