Hemanth.HM

A Computer Polyglot, CLI + WEB ♥'r.

Octopress Socialink Plugin

| Comments

I normally make a lot of refernce to lots of friends on social networks while blogging and was getting bored of adding hrefs for each reference, so made the socialink-plugin for octopress.

Installation

Place the socialink.rb in the porject link to your ~/octopress/plugin/ dir.

Usage

1
{% sl social handle %}
  • social can be any of : gh, fb, gp, tw, in, fl. [github, facebook, googleplus, twitter, linkdin, flickr respectivly]

Examples:

Input:

1
2
{% sl gh hemanth %}
gnumanth

Output:

1
2
<a href='https://github.com/hemanth'>hemanth</a>
<a href='https://twitter.com/gnumanth'>gnumanth</a>

Hope this is useful!

Comments