DEV Community

Cover image for 5 Best Gatsby plugins for your programming blog
AlbertoM
AlbertoM

Posted on • Updated on • Originally published at inspiredwebdev.com

5 Best Gatsby plugins for your programming blog

Check out my blog for more articles or Github for my free-to-read JavaScript Ebook that covers all the new features from ES6 to 2019.
If you want find a great place for interactive tutorials, i recommend Educative (Disclaimer: the link it's affiliate) where I'm currently finishing to build my JavaScript course.

 

What is GatsbyJS?

GastbyJS is a Static Site Generator that you can use to build super fast blogs and websites.

Together with Hugo and Jekyll is the most popular and it's currently my favorite one due to the fact that it uses React.

Getting started with GatsbyJS is very easy and if you download one of their starter template you can get your blog up and running in literally five minutes, just push your code to Github and deploy to Netlify.

If you want two examples of blogs built with GatsbyJS you can check out my personal blog inspiredwebdev.com and my girlfriend's vietnamese learning website elingos.com.

One thing I like about GatsbyJS is the ecosystem of plugins you can use to extend its functionalities and to make your life easier.
Being built on React means that every React plugin that you love will work on GatsbyJS but in this article i'm going to cover my favorite plugins specifically for GatsbyJS.

These are all plugins that i currently use on my two aforementioned websites.

 

gatsby-remark-prismjs

If you are building a programming blog such as mine, chances are you are going to need syntax highlight for your code blocks.

This plugin will make it very easy to add PrismJS to your website, letting you choose among different choices of syntax highlight which you can preview on the PrismJS website.

You can get it here

 

gatsby-plugin-google-analytics

This plugin will let you easily connect your GatsbyJS website to Google Analytics so that you can have a clear idea of how many users you have and their behavior.

What I like about this plugin is the OutboundLink component that let's you track clicks on outbound links. I use it to track how many people click on my Amazon link to check out my book.

You can get this plugin here.

 

gatsby-plugin-manifest

Progressive Web Apps are amazing, I love them, and the choice of making your site a PWA should be a no brainer.

This plugin will help you easily set up a manifest for your website so that users can add it to their home screen.
You can edit the color and the background of the splash page and the plugin also helps you autogenerate icons.

Making your site a PWA can enhance the experience of your followers and make it much easier for them to get back to your site from the home screen of their phones.

You can get this plugin here.

 

gatsby-transformer-json

When you write blog posts on your GatsbyJS you will mostly use Markdown, and for that you will need the plugin gatsby-transformer-remark but there are times where you might want to have configuration files and you are probably going to store them as JSON files.

In my case, I have JSON file called products where I store information about different articles, such as title, description, price and image.

Those information are then pulled in the page with the use of this plugin and I dynamically generate cards to display my products. To see what I mean you can check out this page of one of my sites.

Other examples of instances where I would use a JSON file are: a list of team members or a list of testimonials.

You can get this plugin here.

 

gatsby-plugin-react-helmet

This plugin adds support for React Helmet, a component which lets you control your document head using their React component.

This includes passing metadata such as page title, description and different images for when your page get's shared on social medias.

It's definitely a useful plugin that will make your life (and your SEO) better.

You can get this plugin here.

 

This concludes the list of my 5 favorite GatsbyJS plugin. If you know others that can be useful or that you personally love, please leave a comment and share them with everybody.


Thank you very much for reading. Follow me on DevTo or on my blog at inspiredwebdev for more.


book banner

Get my ebook on Amazon and Leanpub

Top comments (4)

Collapse
 
dytra profile image
dytra

awesome stuff!

Collapse
 
albertomontalesi profile image
AlbertoM

Thanks!

Collapse
 
trakode profile image
Trakode

Thanks for this post, This plugin does their job very well.

Collapse
 
albertomontalesi profile image
AlbertoM

Thanks, I'm glad it helped