gatsby-source-hashnode-devblog

    0.2.0 • Public • Published

    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

    Install

    npm i gatsby-source-hashnode-devblog

    DownloadsWeekly Downloads

    2

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    4.69 kB

    Total Files

    4

    Last publish

    Collaborators

    • nishantwrp