Skip to main content
Community Plugin
View plugin on GitHub
See starters using this

gatsby-source-velog

GatsbyJS source plugin for Velog, the CMS created by @velopert.

This plugin will pulls posts and comments data from Velog’s API Endpoint (https://api.velog.io), for specified user.

Install

npm --save gatsby-source-velog

or

yarn add gatsby-source-velog

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-source-velog`,
    options: {
      username: `username`,
    },
  },
  // If you want to transform markdown content
  'gatsby-transformer-remark',
]

How to query

allVelogPost {
  edges {
    node {
      title
      user {
        username
      }
      comment {
        user {
          username
        }
      }
    }
  }
}

# If the gatsby-transformer-remark is enable
allMarkdownRemark {
  edges {
    node {
      html
    }
  }
}

LICENSE

MIT