Skip to content

allangrds/laxus-gatsby-blog

Repository files navigation

Laxus

Gatsby starter for creating a blog

Sumary

Requirements

  • Node v14.19.1

Installing

  1. Dependencies install
  npm install
  1. Change gatsby-config.js to config header and blog info

    2.1 Open gatsby-config.js

    2.2 Change siteMetadata for your blog informations like blog name, author, description and url

How to change date format to pt-BR

  1. Override all date(formatString: "MMMM, DD, YYYY") to date(locale: "pt-br", formatString: "DD [de] MMMM [de] YYYY")

Running

  1. Start project on development mode
  npm start
  1. Access your page
  http://localhost:8000/

Writing

  1. How to create a post
  • The post file should be at /posts
  • The name format should be year-month-day-post-name.mdx
  1. 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'
---
  1. Write your post
  • Let's write!

Inserting images inside the post

  1. Where to put the images
  • Put the images in the following folder /static/assets/uploads;
  • The file name shoud be file_name.extension
  1. How to import
  ![Gatsby Logo](/assets/uploads/light.jpeg)

Scheduling

  1. In the description of the PR, put the date that the post should be merged following the example below:
/schedule 2020-09-02

About

Gatsby starter for creating a blog

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors