Gatsby starter for creating a blog
- Node v14.19.1
- Dependencies install
npm install-
Change
gatsby-config.jsto config header and blog info2.1 Open
gatsby-config.js2.2 Change
siteMetadatafor your blog informations like blog name, author, description and url
- Override all
date(formatString: "MMMM, DD, YYYY")todate(locale: "pt-br", formatString: "DD [de] MMMM [de] YYYY")
- 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.mdx
- Insert the basic post informations
- Inside the file, create a information structure like this:
---
title: Hello world
subtitle: Cool subtitle
description: Coold description
hero_image: "/assets/uploads/cover/light.png"
date: 2022-03-10 10:05:00
author: Author Name
category: front-end
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
- In the description of the PR, put the date that the post should be merged following the example below:
/schedule 2020-09-02