Created
November 8, 2012 07:50
-
-
Save taea/4037440 to your computer and use it in GitHub Desktop.
Haml + Hatena Bookmark Button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=link_to image_tag('http://b.st-hatena.com/images/entry-button/button-only.gif'), 'http://b.hatena.ne.jp/entry/http://hoge.com', :class => 'hatena-bookmark-button', :data => {:hatena_bookmark_title => 'ページタイトル', :hatena_bookmark_layout => 'standard-balloon'}, :title => 'このエントリーをはてなブックマークに追加' | |
%script{:type => "text/javascript", :src => "http://b.st-hatena.com/js/bookmark_button.js", :charset => "utf-8", :async => "async"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment