A minimalist personal blog built with Gatsby and React.
This project serves as a platform to share thoughts, articles, and experiences while also demonstrating the power of a modern static site generator.
To get started with this blog, you need to have Node.js installed on your computer. Once you have Node.js installed, you can follow these steps:
- Clone the repository: git clone https://github.com/yourusername/gatsby-personal-blog.git
- Navigate to the project directory: cd gatsby-personal-blog
- Install dependencies:
npm install
- Start the development server:
npm run develop
- The blog should now be accessible at http://localhost:8000/
To build the blog for production, run the following command:
npm run build
This will generate a public folder containing all the files needed to deploy the blog to a server.
To add a new blog post, create a new Markdown file in the content/posts directory. The file should be named in the format YYYY-MM-DD-post-title.md
For example, 2021-09-01-my-first-post.md
The Markdown file should start with a frontmatter section that contains metadata about the post, such as the title and date:
---
title: My First Post
date: 2021-09-01
---
Your content