Member-only story
How To Add A Social Media Share Bar In Jekyll
The code snippet I use to add a social media share bar to my posts on my Jekyll website.
Adding a social media share bar at the beginning or end of each post is a great way to encourage readers to share your content on social media.
In the past when my website ran on WordPress I used a plugin to add this functionality. This felt very clunky and slow to configure and interact with. Now that my site runs on Jekyll, I have a code snippet that accomplishes the same thing. It is simple, easy to use, and can be replicated across my entire website wherever I need it.
In this article, I share with you the code snippet I use to add a social media share bar to my Jekyll site. Follow along and make use of this code snippet on your own website.
What Is A Social Media Share Bar?
A social media share bar is something you’ve likely seen before on a website or a blog.
It refers to the section of an article where there is a group of social media buttons. Clicking a button will share the article on that social media platform via the reader’s account. These can often be seen in line with content but can also be seen floating to the side of the main page’s content.