A simple blog website built upon Gatsby.js
To write a blog post :
- Navigate to files -> src -> posts, and then click the '+' icon and choose 'Create new file.'
- Create a file with a .md extension, e.g.
blog-post-1.md
- You can now start writing your blog. note that you MUST add these block of text at the VERY TOP of your file before adding any text.
---
title: 'Your Blog Title'
date: '2019-02-01'
image: 'Image Url'
---
- Write the blog as usual, follow this guide if you need to.
- To upload an image, upload them to the hosting of your choice first, then add the image using the following syntax :
![image name](image-url)
for example,![sent](https://i.imgur.com/rIru4Br.png)
will look like : - Once you're done writing the blog, fill in the commit message and click the 'commit change' button.
- Once commited, Gitlab's CI will do the rest for you.
Run npm i gatsby-cli
in the terminal
Clone the repository and navigate to the project's folder, then run
npm install
Once everything is installed you can then run
gatsby develop
To run a local development server. You can then access it by opening https://localhost:8000
in your browser.
Run gatsby build