Introduce gatsby-starter-blog
2020λ 05μ 10μΌ
Gatsby-starter-devlog
Gatsby starter for developerβs blog.
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
- 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
- Start development server
yarn develop
or
npm run develop
- Create your post
Create post in content/articles
with cli!!!
- 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
- 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