Nice blogs is a simple minimal blog template boilerplate built using Gatsby. Kickoff your blog website with simple steps and focus more on content than building and shipping a blog website.
Check the live demo on netlify or live demo on GitHub pages.
- Pagniated minimalistic blog template.
- Google analytics.
- XML sitemap for helping search engines to find site.
- SEO compliant.
- Comments via Disqus.
-
Create a Gatsby site.
Use the Gatsby CLI to create a new site, specifying the nice blogs boilerplate template.
gatsby new <site-name> https://github.com/abhaynikam/gatsby-nice-blog
-
Start developing.
Navigate into your new site’s directory and start it up.
cd my-blog-starter/ gatsby develop
-
Open the source code and start editing!
Your site is now running at
http://localhost:8000
!
Add your personal details in the config.js
and restart the server to reflect your changes.
module.exports = {
url: `Your blog site root url`,
description: `Your blog site description`,
pathPrefix: 'Useful when using Github Pages. Add the repository name here.',
title: `Your blog site title`,
disqusShortname: 'Your disqus short name to enable comments',
postsPerPage: 15,
googleAnalyticsId: 'Your google analytics id',
useKatex: false,
author: {
name: `Your name`,
summary: `Short summary`,
social: {
twitter: `Your twitter account username`,
github: `abhaynikam`,
},
}
};
Update the --color-primary
color variable to the desired theme primary color.
-
Update pathPrefix.
Update the
pathPrefix
to the GitHub repository name.module.exports = { pathPrefix: '', ... }
-
Deploy to GitHub pages!
yarn run deploy OR npm run deploy
- Login/Signup to the Netlify GitHub account.
- Authorize the repository access.
- Configure the custom domain on Netlify.
Watch the video by Netlify team and learn deploying using Git.
Bug reports and pull requests are welcome on GitHub at https://github.com/abhaynikam/gatsby-nice-blog. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The boilerplate blog template is available as open source under the terms of the MIT License.