Gatsby starter for creating a blog
- Dependencies install
npm install
-
Change
gatsby-config.js
to config header and blog info2.1 Open
gatsby-config.js
2.2 Change
siteMetadata
for your blog informations like blog name, author, description and url -
Start project on development mode
npm start
- Access your page
http://localhost:8000/
- How to create a post
- The post file should be at
/posts
- The name format should be
year-month-day-post-name.md
- Insert the basic post informations
- Inside the file, create a information structure like this:
---
title: <post_title>
subtitle: <optional_subtitle>
description: <post_description>
date: <year-month-day hour:minute:second>
author: <author_name>
category: <front-end|back-end|what_ever>
category: ['js', 'react', 'gatsby', 'redux']
series: 'cool-series-max-width'
---
- Write your post
- Let's write!
- Where to put the images
- Put the images in the following folder
/static/assets/uploads
; - The file name shoud be
file_name.extension
- How to import
![Gatsby Logo](/assets/uploads/light.jpeg)
- In the description of the PR, put the date that the post should be merged following the example below:
/schedule 2020-09-02