Skip to content

Instantly share code, notes, and snippets.

@taea
Created November 8, 2012 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taea/4037440 to your computer and use it in GitHub Desktop.
Save taea/4037440 to your computer and use it in GitHub Desktop.
Haml + Hatena Bookmark Button
=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