Skip to content

nishantwrp/gatsby-source-hashnode-devblog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gridsome logo

gatsby-source-hashnode-devblog

Gatsby plugin to retrieve blog posts from your devblog on hashnode.

npm version npm

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