GraphQL Blog
This is the repository of graphql blog. Contribute here to see your blog post on blog.graphqleditor.com
You need gatsby cli to develop
$ npm install --global gatsby-cli
Contributing
- Fork this repo
- Create your blog post branch:
$ git checkout -b my-article-slug
- Make changes as described below
- Commit and push your changes
- Submit a pull request to this repo
Adding yourself as an author
- Create a folder
src/components/authors/YOUR_NAME
- Add your photo to this folder
- Add
index.js
file with the following structure where NAME is your name
export const NAME = {
photo: require('./path_to_photo'),
desc:'About you',
name: 'Your name',
email: 'your@email.com'
}
Creating a blog post
Please create blog posts basing on markdown and other post structure. It is important to begin blog post with
---
title: Post title
date: '2018-10-10T11:23:04.284Z'
author: NAME
---
Publishing post to different services.
Run
$ npm run blog
- Choose blog post name
- Choose where to publish ( reddit, twitter, linkedin etc.) or publish to all vendors.
- CLI will open the prefilled submit forms in your browser
- Enjoy!