Lokka Plugin to add a Hatena Bookmark button
Ruby
Latest commit 7596f98 Mar 18, 2013 @nkmrshn Merge pull request #3 from foo9/new-button-type
add new button type
Permalink
Failed to load latest commit information.
i18n
lib/lokka
views add new button type Feb 19, 2013
README.ja.markdown
README.markdown

README.markdown

Lokka Hatena Bookmark Button

This is a Lokka plugin to add "Hatena Bookmark Button" link.

Installation

Run these commands:

$ cd public/plugin
$ git clone git://github.com/nkmrshn/lokka-hatena_bookmark_button.git
$ rm -rf lokka-hatena_bookmark_button/.git

Usage

You can set options in the admin page [Plugins]->[Hatena Bookmark Button].

The helper method is "hatena_bookmark_button". Don't forget to modify the theme template. This helper method has two parameters. First is for title and second is URL. If the hatena_bookmark_button method called without URL, current page URL will be used. If you want to specify the URL, call the method with String parameter like:

<%= hatena_bookmark_button(@entry.title, "http://example.com/foo/bar/") %>