Skip to content

bottlehs/gatsby-starter-flat-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Financial Contributors on Open Collective Greenkeeper badge Total alerts Language grade: JavaScript contributions welcome Netlify Status

screenshot

In this template...

  • πŸ‘“ Code highlight with Fira Code font
  • πŸ˜„ Emoji (emojione)
  • πŸ—£ Social share feature (Twitter, Facebook)
  • πŸ’¬ Comment feature (disqus, utterances)
  • β˜• 'Buy me a coffee' service
  • πŸ“ GA
  • βš™ Configurable
  • πŸ“š Netlify CMS

About this Template

πŸ”— Live Demo

Use case

demo-image

If you're using this template, Please Pull Request for Use case!

πŸš€ Quick Start

1. Create a Gatsby site

# create a new Gatsby site using the blog starter
npx gatsby new my-blog https://github.com/bottlehs/gatsby-starter-flat-blog

If you are not using npx, following Gatsby Getting Started

npm install -g gatsby-cli
gatsby new my-blog https://github.com/bottlehs/gatsby-starter-flat-blog

2. Start developing

cd my-blog/
npm start
# open localhost:8000

3. Add your content

You can write...

  • contents to blog in content/blog directory.
  • resume content/__about directory.

With markdown syntax and some meta data

npm run post

4. Fix meta data

You can fix meta data of blog in /gatsby-meta-config.js file.

5. Publish with netlify

Deploy to Netlify

πŸ’‘ if you want to deploy github pages, add following script to package.json

"scripts": {
    "deploy": "gatsby build && gh-pages -d public -b master -r 'git@github.com:${your github id}/${github page name}.github.io.git'"
}

🎨 Customize

βš™ Gatsby config

/root
β”œβ”€β”€ gatsby-browser.js // font, polyfill, onClientRender ...
β”œβ”€β”€ gatsby-config.js // Gatsby config
β”œβ”€β”€ gatsby-meta-config.js // Template meta config
└── gatsby-node.js // Gatsby Node config

❀ Structure

src
β”œβ”€β”€ components
β”‚   β”œβ”€β”€ category
β”‚   β”œβ”€β”€ bio.js
β”‚   β”œβ”€β”€ layout.js
β”‚   β”œβ”€β”€ seo.js
β”‚   β”œβ”€β”€ share.js
β”‚   β”œβ”€β”€ tableOfContents.js
β”‚   └── tag.js
β”œβ”€β”€ pages
β”‚   β”œβ”€β”€ 404.js
β”‚   β”œβ”€β”€ about.js
β”‚   β”œβ”€β”€ index.js
β”‚   └── tags.js
│── normalize.css
│── properties.css
│── properties.dark.css
│── normalize.css
│── style.css
│── style.dark.css
└── templates
    β”œβ”€β”€ blog-post.js
    └── tags.js

🍭 Tips (You can change...)

  • Profile image! (replace file in /content/assets/profile-pic.png)
  • Favicon image! (replace file in /content/assets/app-icon.png)
  • Utterances repository! (replace repository address in /gatsby-meta-config.js)

β˜• Like it?

Buy Me A Coffee

πŸ€” If

If you are currently writing in the Medium, consider migration with medium-to-own-blog!

πŸ› Bug reporting

Issue

😎 Contributing

Contributing guide

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

LICENSE

MIT

Project by @bottlehs🀩

About

gatsby-starter-flat-blog

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •