Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Commit

Permalink
Use bitly to shorten urls
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek77in committed Dec 12, 2014
1 parent 42af1ba commit b4be980
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/views/shared/_addthis.html.erb
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=<%= ENV['ADDTHIS_PUBID'] %>" async="async"></script>

<script type="text/javascript">
var addthis_share = {
url_transforms : {
shorten : {
twitter : 'bitly'
}
},
shorteners : {
bitly : {}
}
}
</script>

0 comments on commit b4be980

Please sign in to comment.