An open API service indexing awesome lists of open source software.

https://github.com/glweems/gatsby-source-medium-posts

Gatsby plugin to fetch medium posts
https://github.com/glweems/gatsby-source-medium-posts

Last synced: 4 months ago
JSON representation

Gatsby plugin to fetch medium posts

Awesome Lists containing this project

README

          

# Gatsby Source Medium Posts

[![CircleCI](https://circleci.com/gh/glweems/gatsby-source-medium-posts.svg?style=svg)](https://circleci.com/gh/glweems/gatsby-source-medium-posts)

### Setup

`npm install gatsby-source-medium-posts`

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

Content field returns html of your blog post.

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