This simple Jekyll plugin generates links to AddThis' sharing endpoint service. The module does not introduce any Javascript functionality or CSS styling to the share links; it simply generates the HTML markup leaving styling and Javascript functionality to site builders.
- Place addthis.rb in your
<root>/_plugins
directory so that Jekyll can load it - In
_config.yml
, add the sample config shown below. - To create AddThis links in markup, use the following liquid tag:
{% share_link service %}
whereservice
is the one of the AddThis destinations.
addthis:
pubid: XZY-ID
image: /path/to/share/img