<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Simran Makhija</title>
    <description>The latest articles on DEV Community by Simran Makhija (@justdev_sim).</description>
    <link>https://dev.to/justdev_sim</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F591486%2F18c00c60-2bbd-49f9-a759-c13600a6da1f.jpeg</url>
      <title>DEV Community: Simran Makhija</title>
      <link>https://dev.to/justdev_sim</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/justdev_sim"/>
    <language>en</language>
    <item>
      <title>Make your own blog site with GatsbyJS</title>
      <dc:creator>Simran Makhija</dc:creator>
      <pubDate>Tue, 30 Nov 2021 14:25:24 +0000</pubDate>
      <link>https://dev.to/justdev_sim/make-your-own-blog-site-with-gatsbyjs-5em6</link>
      <guid>https://dev.to/justdev_sim/make-your-own-blog-site-with-gatsbyjs-5em6</guid>
      <description>&lt;p&gt;As a part of the #100DaysOfCode challenge, I decided to create a blog to document my journey with the challenge.&lt;/p&gt;

&lt;p&gt;This blog is built using GatsbyJS, and I learned the basics of Gatsby in a couple of days. If you know ReactJS, Gatsby is easy to catch on to.&lt;/p&gt;

&lt;p&gt;Without further ado, let's dive into how you can develop a blog just like this for sharing your own thoughts and journeys.&lt;/p&gt;

&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;What is GatsbyJS?&lt;/li&gt;
&lt;li&gt;What are starters in Gatsby?&lt;/li&gt;
&lt;li&gt;System Prerequisites&lt;/li&gt;
&lt;li&gt;Developing the site&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What is GatsbyJS?
&lt;/h3&gt;

&lt;p&gt;Gatsby is a React-based open-source framework for creating websites and apps.&lt;/p&gt;

&lt;p&gt;&lt;a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What are starters in Gatsby?
&lt;/h3&gt;

&lt;p&gt;To develop our blog we will be using the &lt;a href="https://www.gatsbyjs.com/starters/gatsbyjs/gatsby-starter-blog" rel="noopener noreferrer"&gt;gatsby-starter-blog starter&lt;/a&gt;, but what is a starter?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It is a boilerplate Gatsby site that helps jump-start the development process.&lt;/li&gt;
&lt;li&gt;Starters are maintained by the community, for the community.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  System Prerequisites
&lt;/h3&gt;

&lt;p&gt;You need to perform the following installations on your system before you begin with the development:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://nodejs.org/en/download/" rel="noopener noreferrer"&gt;Node.js&lt;/a&gt;: preferably the LTS version.&lt;/li&gt;
&lt;li&gt;After you install Node.js, open your terminal or command prompt and install gatsby-cli using npm with the command&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;npm install -g gatsby-cli&lt;/code&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;To facilitate deployment and to make your repository on GitHub, you need to download and install &lt;a href="https://git-scm.com/downloads" rel="noopener noreferrer"&gt;git&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  OR
&lt;/h4&gt;

&lt;p&gt;Use &lt;a href="https://codesandbox.io" rel="noopener noreferrer"&gt;CodeSandbox&lt;/a&gt; to develop right from your browser! Creating and setting up the project is significantly easier and hassle-free in a sandbox. [Will not be using this method in this blog.]&lt;/p&gt;

&lt;p&gt;We're all set to begin development!&lt;/p&gt;

&lt;p&gt;&lt;a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Developing the site
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Steps to develop
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Create a new gatsby project and install the starter&lt;/li&gt;
&lt;li&gt;Run the website locally&lt;/li&gt;
&lt;li&gt;Create a GitHub repository and push the code to the repository&lt;/li&gt;
&lt;li&gt;Change author details in &lt;code&gt;gatsby-config.js&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Create your first blog post&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 1:
&lt;/h4&gt;

&lt;h5&gt;
  
  
  Create a new gatsby project and install the starter
&lt;/h5&gt;

&lt;ol&gt;
&lt;li&gt;Using your terminal, navigate to the directory where you want to create the project.&lt;/li&gt;
&lt;li&gt;To create a new project, we use the &lt;code&gt;gatsby new&lt;/code&gt; command, we can install the starter in 2 ways:&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;gatsby new {project-name} {starter-repo-link}&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;gatsby new {project-name} {GithHub_username/repo_name}&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;For example, I want to call my project 'my-blog':&lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt; &lt;code&gt;gatsby new my-blog https://github.com/gatsbyjs/gatsby-starter-blog&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt; &lt;code&gt;gatsby new my-blog gatsbyjs/gatsby-starter-blog&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 2:
&lt;/h4&gt;

&lt;h5&gt;
  
  
  Run the website locally
&lt;/h5&gt;

&lt;ol&gt;
&lt;li&gt;Navigate to your project directory in the terminal.
&amp;gt; &lt;code&gt;cd my-blog&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Install all dependencies using &lt;code&gt;npm&lt;/code&gt; or &lt;code&gt;yarn&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;\my-blog&amp;gt; npm install&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;OR&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;\my-blog&amp;gt; yarn&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ol&gt;
&lt;li&gt;Run &lt;code&gt;gatsby develop&lt;/code&gt;. The terminal output will look like this.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;success&lt;/span&gt; &lt;span class="nx"&gt;open&lt;/span&gt; &lt;span class="nx"&gt;and&lt;/span&gt; &lt;span class="nx"&gt;validate&lt;/span&gt; &lt;span class="nx"&gt;gatsby&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;configs&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;load&lt;/span&gt; &lt;span class="nx"&gt;plugins&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mf"&gt;7.188&lt;/span&gt;&lt;span class="nx"&gt;s&lt;/span&gt;
&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="nx"&gt;success&lt;/span&gt; &lt;span class="nx"&gt;extract&lt;/span&gt; &lt;span class="nx"&gt;queries&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="nx"&gt;components&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mf"&gt;6.805&lt;/span&gt;&lt;span class="nx"&gt;s&lt;/span&gt;
&lt;span class="nx"&gt;success&lt;/span&gt; &lt;span class="nx"&gt;write&lt;/span&gt; &lt;span class="nx"&gt;out&lt;/span&gt; &lt;span class="nx"&gt;requires&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mf"&gt;0.107&lt;/span&gt;&lt;span class="nx"&gt;s&lt;/span&gt;
&lt;span class="nx"&gt;success&lt;/span&gt; &lt;span class="nx"&gt;run&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt; &lt;span class="nx"&gt;queries&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mf"&gt;0.041&lt;/span&gt;&lt;span class="nx"&gt;s&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="mf"&gt;24.10&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;s&lt;/span&gt;
&lt;span class="err"&gt;⠀&lt;/span&gt;
&lt;span class="nx"&gt;You&lt;/span&gt; &lt;span class="nx"&gt;can&lt;/span&gt; &lt;span class="nx"&gt;now&lt;/span&gt; &lt;span class="nx"&gt;view&lt;/span&gt; &lt;span class="nx"&gt;my&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;blog&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nx"&gt;the&lt;/span&gt; &lt;span class="nx"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;span class="err"&gt;⠀&lt;/span&gt;
  &lt;span class="nx"&gt;http&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//localhost:8000/&lt;/span&gt;
&lt;span class="err"&gt;⠀&lt;/span&gt;
&lt;span class="nx"&gt;View&lt;/span&gt; &lt;span class="nx"&gt;GraphiQL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;an&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;browser&lt;/span&gt; &lt;span class="nx"&gt;IDE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;to&lt;/span&gt; &lt;span class="nx"&gt;explore&lt;/span&gt; &lt;span class="nx"&gt;your&lt;/span&gt; &lt;span class="nx"&gt;site&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;s data and schema
⠀
  http://localhost:8000/___graphql
⠀
Note that the development build is not optimized.
To create a production build, use gatsby build
⠀
success Building development bundle - 18.418s
success Writing page-data.json files to public directory - 1.640s - 2/3 1.83/s


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The website will now be accessible at &lt;a href="http://localhost:8000/" rel="noopener noreferrer"&gt;http://localhost:8000/&lt;/a&gt;. As long as the development server is running, you can view your website here. It automatically recompiles every time you save changes as long as 'gatsby develop' is running.&lt;/p&gt;

&lt;p&gt;The GraphiQL interface at &lt;a href="http://localhost:8000/___graphql" rel="noopener noreferrer"&gt;http://localhost:8000/___graphql&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It is okay if you don't have experience working with GraphQL, I have yet to learn it and it is not needed to build this blog thanks to the starter!&lt;/p&gt;

&lt;p&gt;&lt;a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 3:
&lt;/h4&gt;

&lt;h5&gt;
  
  
  Create a GitHub repository and push the code to the repository
&lt;/h5&gt;

&lt;ol&gt;
&lt;li&gt;Navigate to the project directory in the terminal.&lt;/li&gt;
&lt;li&gt;Run the command &lt;code&gt;git init&lt;/code&gt; to initialise a local git repository.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;git add -all&lt;/code&gt; to add all files to git.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;git commit -m "create initial commit"&lt;/code&gt; to commit these files to the repository.&lt;/li&gt;
&lt;li&gt;Now, sign in to &lt;a href="https://github.com/" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; and &lt;a href="https://docs.github.com/en/get-started/quickstart/create-a-repo" rel="noopener noreferrer"&gt;create a new empty repository&lt;/a&gt;. Copy the link to the repo. For example: &lt;em&gt;&lt;a href="https://github.com/SimranMakhija7/blog" rel="noopener noreferrer"&gt;https://github.com/SimranMakhija7/blog&lt;/a&gt;&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;In your terminal, in your local repository, run the following command to link to GitHub repo:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;git remote add origin {repo-link}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Here, replace the {repo-link} with the link copied in the previous step.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Push the initial commit to GitHub using the command &lt;code&gt;git push -u origin main&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Our repository is now on GitHub! Now let's make some changes so that the blog is ours!&lt;/p&gt;

&lt;p&gt;&lt;a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 4:
&lt;/h4&gt;

&lt;h5&gt;
  
  
  Change author details in &lt;code&gt;gatsby-config.js&lt;/code&gt;
&lt;/h5&gt;

&lt;ol&gt;
&lt;li&gt;Open the file '/my-blog/gatsby-config.js' in your favorite editor. I use VSCode.&lt;/li&gt;
&lt;li&gt;The file contains a &lt;code&gt;module.exports&lt;/code&gt; object, within which the &lt;code&gt;siteMetadata&lt;/code&gt; is there. It should look like this:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;siteMetadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="nl"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`Gatsby Starter Blog`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
   &lt;span class="nx"&gt;author&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
     &lt;span class="nl"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`Kyle Mathews`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
     &lt;span class="nx"&gt;summary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`who lives and works in San Francisco building useful things.`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
   &lt;span class="p"&gt;},&lt;/span&gt;
   &lt;span class="nx"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`A starter blog demonstrating what Gatsby can do.`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
   &lt;span class="nx"&gt;siteUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`https://gatsbystarterblogsource.gatsbyjs.io/`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
   &lt;span class="nx"&gt;social&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
     &lt;span class="nl"&gt;twitter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`kylemathews`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
   &lt;span class="p"&gt;},&lt;/span&gt;
 &lt;span class="p"&gt;},&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace with your details, except for &lt;code&gt;siteUrl&lt;/code&gt; for now, like so:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;siteMetadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="nl"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`Simran's Blog`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
   &lt;span class="nx"&gt;author&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
     &lt;span class="nl"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`Simran Makhija`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
     &lt;span class="nx"&gt;summary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`who lives and studies Computer Science in Indore, India.`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
   &lt;span class="p"&gt;},&lt;/span&gt;
   &lt;span class="nx"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`My blog for sharing all things tech and community, built with GatsbyJS as a part of #100DaysOfCode`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
   &lt;span class="nx"&gt;siteUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`https://gatsbystarterblogsource.gatsbyjs.io/`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
   &lt;span class="nx"&gt;social&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
     &lt;span class="nl"&gt;twitter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`justdev_sim`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
   &lt;span class="p"&gt;},&lt;/span&gt;
 &lt;span class="p"&gt;},&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Replace &lt;code&gt;src/images/profile-pic.png&lt;/code&gt; with your own picture. Make sure the name of the image is &lt;code&gt;profile-pic.png&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now, the blog has your name, title info and image!&lt;br&gt;
The site will now look like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flt1fwfs6wrdvswcrluk8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flt1fwfs6wrdvswcrluk8.png" alt="Blog with your details"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 5:
&lt;/h4&gt;

&lt;h5&gt;
  
  
  Create your first blog post
&lt;/h5&gt;

&lt;p&gt;Now, let's take a look at how our blogs are stored and organised.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The &lt;code&gt;content\blog&lt;/code&gt; directory stores all your blog posts.&lt;/li&gt;
&lt;li&gt;Each blog post has its own subdirectory. The name of this subdirectory corresponds to the route at which the blog will be rendered.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For example: The blog within the &lt;code&gt;hello-world&lt;/code&gt; folder can be found at &lt;em&gt;{base-url}/hello-world&lt;/em&gt; (&lt;a href="http://localhost:8000/hello-world" rel="noopener noreferrer"&gt;http://localhost:8000/hello-world&lt;/a&gt; on our local server)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The &lt;code&gt;index.md&lt;/code&gt; file contains the markdown source for your blog. The default &lt;code&gt;hello-world&lt;/code&gt; contains a markdown cheatsheet of sorts that I have stored in a separate file and refer to for syntax.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now, let's go ahead and write our own first blog.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Delete all folders within &lt;code&gt;content/blog&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Create a new folder &lt;code&gt;hello-world&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Within this folder, create a new file &lt;code&gt;index.md&lt;/code&gt;. This is where we'll write our markdown source.&lt;/li&gt;
&lt;li&gt;In the file, add the frontmatter:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;World"&lt;/span&gt;
&lt;span class="na"&gt;date&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;2021-11-26T22:00:32.169Z"&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hi!&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;I&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;am&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;a&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;student&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;developer.&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Nice&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;to&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;meet&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;you!"&lt;/span&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This front matter corresponds to the name, date and blog description we see on the home page like so:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdp1ttibwoz7cf8uneqoq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdp1ttibwoz7cf8uneqoq.png" alt="Blog description on home page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Below the frontmatter, you can include the entire content of your blog.
Here's how my &lt;code&gt;content/blog/hello-world/index.md&lt;/code&gt; looks:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Hello World&lt;/span&gt;
&lt;span class="na"&gt;date&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;2021-11-26T22:00:32.169Z"&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hi!&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;I&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;am&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;a&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;student&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;developer.&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Nice&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;to&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;meet&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;you!"&lt;/span&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;

Hi! I am &lt;span class="gs"&gt;**Simran Makhija**&lt;/span&gt; 🙋🏻‍♀️ Nice to meet you 🤝
I am a final year &lt;span class="gs"&gt;**Computer Science &amp;amp; Engineering**&lt;/span&gt; student from Indore, India.👩‍💻
....
Thank you for dropping by!🌸
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Save all changes and push them to your GitHub repository.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To deploy this blog site to Netlify (for free😉) follow &lt;a href="https://www.netlify.com/blog/2016/02/24/a-step-by-step-guide-gatsby-on-netlify/" rel="noopener noreferrer"&gt;this step-by-step guide&lt;/a&gt;!&lt;/p&gt;

&lt;p&gt;This is it on developing the blog site. Hope it was easy to follow and helpful.&lt;/p&gt;

&lt;p&gt;In my next blog, I will be writing about deploying this site to the internet.&lt;/p&gt;

&lt;p&gt;Thank you for reading! See you then :)&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>react</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
