/gatsby-source-medium-posts

Gatsby plugin to fetch medium posts

Primary LanguageJavaScript

Gatsby Source Medium Posts

CircleCI

Setup

npm install gatsby-source-medium-posts

// gatsby-node.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-medium-posts`,
      options: {
        username: "glweems",
      },
    },
  ],
}

Content field returns html of your blog post.

// Example Query
{
  allMediumPost {
    edges {
      node {
        id
        title
        pubDate
        link
        guid
        author
        thumbnail
        content
        categories
        description
      }
    }
  }
}