Skip to content

nearnear/nearnear.github.iod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘€ Demo

https://gatsbycleanblogstarterkit.gatsbyjs.io/

πŸ”₯ Quick Start

1. Create a Gatsby site

Use the Gatsby CLI (install instructions) to create a new site, specifying the gatsby-clean-blog starter.

npx gatsby new gatsby-clean-blog-starter https://github.com/soheee-bae/Gatsby-Clean-Blog-Starter

if you are not using npx, following Gatsby Getting Started

npm install -g gatsby-cli
gatsby new gatsby-clean-blog-starter https://github.com/soheee-bae/Gatsby-Clean-Blog-Starter

2. Start developing

Navigate into your new site's directory and start it up.

cd gatsby-clean-blog-starter/
gatsby develop

3. Open the source code and start editing!

Your site is now running at http://localhost:8000!

Note: You'll also see a second link: http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby Tutorial.

4. Add your content

You can write contents to blog in /content directory. As you add a new directory, it will be listed as new category in the navbar!

5. Fix meta data

You can fix meta data in /gatsby-metaconfig.js file.

πŸ’› Customize

πŸ’» Gatsby config

root
β”œβ”€β”€ gatsby-config.js
β”œβ”€β”€ gatsby-metaconfig.js
└── gatsby-node.js

πŸ“ Folder structure

src
β”œβ”€β”€ components // components with styling
β”œβ”€β”€ constants // collections of string global variables
β”œβ”€β”€ layout // layout for home and post
β”œβ”€β”€ pages // 404 page, about page, home page
β”œβ”€β”€ hooks
β”œβ”€β”€ styles
β”œβ”€β”€ utils
└── templates
    └── blog-post.js // blog template

🎨 Style

You can customize color, font, breakpoints and height / width of layout in src/styles directory.

src/styles
β”œβ”€β”€ _breakpoints.scss
β”œβ”€β”€ _colors.scss
β”œβ”€β”€ _mixins.scss
β”œβ”€β”€ _size.scss
└── _typography.scss

πŸ” Tip (Things you can customize!)

  • Profile image : replace file in /assets/images/moon.jpeg.
  • Pagination : set sibling count (of the current page) and page size (number of posts per page) in src/constants/page.js.
  • Resize layout : You can resize layout (e.g. height of footer) in src/styles/_size.scss.
  • Change color : All colors that have been used in this blog are in src/styles/_color.scss. You can simply change hex code color from src/styles/_color.scss!
  • Post thumbnail : You can display or hide (title, subtitle, date, content) by setting the option from src/constants/contentItem.js!

Releases

No releases published

Packages

No packages published