Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

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

© 2023 Gatsby, Inc.