gatsby starter for developer's blog.
Tell me if you use this starter
- Grid View 🌈
- Code Highlight (Atom one dark + JetBrains Mono) ✨
- Comment with Utterances 💬
- Buy me a coffee ☕️💸
- Google Analytics 📊
- Dark Mode Support !!! 🌗
- 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 with 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
Try to use Vercel!
/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
├── 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
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.
Replace assets/wdever-icon
with your own icon and change path in gatsby-plugin-manifest
. This config is in the gatsby-config.js
Replace assets/profile-pic
with your own profile pic
Add your repo name (username/repo) in gatsby-config.js/siteMetadata.repo
Add tour trackingId in gatsby-config.js/gatsby-plugin-google-analytics.options.trackingId
The reason why this issue occurs is because some post doesn't have correct image
meatadata. Remove image
in metadata or set Correct metadata.
I don't know why this issue occurs. I guess localStorage isn't defined at build time. But don't worry, everything will work fine.
I'm always waiting you guys's contribute. Please Contribute.
Thanks.