How To Add A Twitter Share Button To Each Hexo Blog Post

So you want to add a Twitter Share Button at the bottom of each of your Hexo blog posts but you’re not sure how to go about it.

It’s actually really easy and I’ll show you how to do this really quick and easy in only a few minutes. This exactly what I did to add the Twitter Share Button you see at the bottom of this blog post in fact.

The first step is to go here to get the code for your Twitter Share Button.

Next, paste the following bit of code in the post.ejs file found in your Hexo theme layout folder. You can see exactly where to add it by viewing my git commit here on Github.