File tree 1 file changed +70
-0
lines changed
1 file changed +70
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+
3
+ <p align =" center " >
4
+ <a href="https://www.npmjs.com/package/gatsby-source-hashnode-devblog">
5
+ <img src="https://elasticbeanstalk-ap-southeast-1-805366489044.s3.amazonaws.com/images/uploads/2019/03/30/gatsby_3lGK7jo.gif" alt="gridsome logo" width="500"/>
6
+ </a>
7
+ <h1 align="center">gatsby-source-hashnode-devblog</h1>
8
+ <p align="center">
9
+ Gatsby plugin to retrieve blog posts from your <a href = "https://hashnode.com/devblog">devblog</a> on <a href = "https://hashnode.com/">hashnode</a>. </p>
10
+ <p align="center"><a href="https://npmjs.com/package/gatsby-source-hashnode-devblog"><img src="https://badge.fury.io/js/gatsby-source-hashnode-devblog.svg" alt="npm version"></a><img alt="npm" src="https://img.shields.io/npm/dt/gatsby-source-hashnode-devblog"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square"><img src="https://badgen.net/github/license/nishantwrp/gatsby-source-hashnode-devblog"><img src="https://img.shields.io/david/nishantwrp/gatsby-source-hashnode-devblog"></p>
11
+ </p >
12
+
13
+ ## Installation
14
+
15
+ ```
16
+ # For npm
17
+ $ npm install gatsby-source-hashnode-devblog
18
+ # For yarn
19
+ $ yarn add gatsby-source-hashnode-devblog
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ Add ` gatsby-source-hashnode-devblog ` to plugin array with following configurable options to ` gatsby-config.js `
25
+
26
+ ``` js
27
+ module .exports = {
28
+ plugins: [
29
+ {
30
+ resolve: ' gatsby-source-hashnode-devblog' ,
31
+ options: {
32
+ username: ' ' , // Your username on hashnode
33
+ }
34
+ }
35
+ ]
36
+ }
37
+ ```
38
+
39
+ ## Example Query
40
+
41
+ ``` graphql
42
+ query MyQuery {
43
+ allDevblogPost {
44
+ edges {
45
+ node {
46
+ post {
47
+ brief
48
+ content
49
+ contentMarkdown
50
+ coverImage
51
+ cuid
52
+ dateAdded
53
+ dateUpdated
54
+ slug
55
+ title
56
+ type
57
+ tags {
58
+ name
59
+ }
60
+ }
61
+ id
62
+ }
63
+ }
64
+ }
65
+ }
66
+ ```
67
+
68
+ ## License (MIT)
69
+
70
+ Open [ LICENSE] ( ./LICENSE ) file for more info
You can’t perform that action at this time.
0 commit comments