Dustin Kurtis came up with an excellent idea for the Svbtle blogging network (go visit Svbtle.com to see an example). He called them Kudos. They're little widgets next to each post that enable users to give "Kudos" to posts they really like. You hover over the widget, it gives a fun little animation, and changes the icon and count after a moment.
A working demo at the bottom of this post.
- You will need a parse account, its free for upto a million requests per month.
- Get the files /kudos/kudos.js, /kudos/parse-kudos.js and /kudos/jstorage.js and include them in your "_include/themes/[your-theme]/default.html".
- Link to parse-1.2.3.min.js and jquery in your default.html.
- Get and link /kudos/kudos.css as CSS in your default.html.
- Store /kudos/heart_60x60.png somewhere.
- Update parse-kudos.js with your parse keys.
- Update kudos.css with the location on heart_60x60.png.
- In your "_include/themes/[your-theme]/[post|page].html files, add the highlighted HTML where it makes sense.
I can create a jekyll plugin, but since github pages do not support custom jekyll plugins, I wont myself be using the plugins. And hopefully the above steps can be used with minimal changes on other static site/blog generators.