Introduce gatsby-starter-blog

2020λ…„ 05μ›” 10일

Gatsby-starter-devlog

Gatsby starter for developer’s blog.

Demo

demo

Tell me if you use this starter

Features

  • Grid View 🌈
  • Code Highlight ✨
  • Comment with Utterances πŸ’¬
  • Buy me a coffee β˜•οΈπŸ’Έ
  • Google Analytics πŸ“Š
  • Considered UI / UX πŸ€“
  • Dark Mode Support !!! πŸŒ—

Getting Start

  1. Create a Gatsby app
yarn gatsby new my-blog https://github.com/WDever/gatsby-starter-devlog

or

npx gatsby new my-blog https://github.com/WDever/gatsby-starter-devlog
  1. Start development server
yarn develop

or

npm run develop
  1. Create your post

Create post in content/articles with cli!!!

create-post

  1. Write your post

You can write your content wit GitHub Flavor Markdown.

Also you can add thumbnail images or not. If you won’t add thumbnail images, remove image in metadata

  1. Deploy to vercel

Deploy to Vercel

Structure

root

/root
β”œβ”€β”€ .eslintrc.json // eslint config file
β”œβ”€β”€ .prettierrc // prettier config file
β”œβ”€β”€ gatsby-browser.js // font, code style
β”œβ”€β”€ gatsby-config.js // Gatsby config & metadata
└── gatsby-node.js // import gatsby files from lib

src

src
β”œβ”€β”€ components // Components with styling & some logic
β”œβ”€β”€ hooks // Hooks that useful
β”œβ”€β”€ lib // Fonts & gatsby files rewrite with TypeScript
β”œβ”€β”€ pages // Routing except post: /(home), /about, /404
β”œβ”€β”€ templates
β”‚   β”œβ”€β”€ blog-post.tsx
β”‚   └── home.tsx

β”œβ”€β”€ types // Types that generate by graphql-codegen
└── utils
    β”œβ”€β”€ functions // Useful functions
    └── hooks //

content

content
β”œβ”€β”€ about // About you / resume
β”‚   └── index.md
β”‚
β”œβ”€β”€ articles //  Posts
β”‚   β”œβ”€β”€ my-first-post-example // Name of this directory will be the path
β”‚       └── index.md // and some pictures or more...
β”‚
β”œβ”€β”€ assets
    β”œβ”€β”€ profile-pic // Profile picure that will use in BIO
    └── wdever-icon // Icon will be show in tab.

Customize

Tab Icon

Replace assets/wdever-icon with your own icon and change path in gatsby-plugin-manifest. This config is in the gatsby-config

Profile Image

Replace assets/profile-pic with your own profile pic

Utterances

Add your repo name (username/repo) in gatsby-config.js/siteMetadata.repo

Google Analytics

Add tour trackingId in gatsby-config.js/gatsby-plugin-google-analytics.options.trackingId

Contributing

I’m always waiting you guys’s contribute. Please Contribute.

Thanks.


Loading Comments