ikiwiki/doc/plugins/contrib/plusone.mdwn

37 lines
1.5 KiB
Plaintext
Raw Normal View History

2011-07-02 18:37:05 +02:00
[[!template id=plugin name=plusone author="[[BerndZeimetz]]"]]
2011-07-02 18:04:40 +02:00
[[!toc]]
[[!tag plugins]] [[!tag patch]] [[!tag wishlist]]
## NAME
IkiWiki::Plugin::plusone - Adding the +1 button to your posts
## SYNOPSIS
# activate the plugin
add_plugins => [qw{goodstuff plusone ....}],
# set some options:
plusone_count => 1,
plusone_size => 'standard',
plusone_lang => 'en-US',
## DESCRIPTION
This plugin allows to add a google plusone button using the plusone directive
[[!plusone ]]
where ever you want the button to show up.
Please note that you need to either use my modified htmlscrubber plugin to allow the google plusone tags within your site's content - or disable htmlscrubber completely (not recommended!).
2011-07-02 18:37:05 +02:00
## plusone directive
The plusone directive allows to override the automativally generated url by specifying the wanted url as option:
[[!plusone url="http://bzed.de/"]]
2011-07-02 18:04:40 +02:00
## DOWNLOAD
* single files: [plusone.pm](http://git.recluse.de/?p=users/bzed/ikiwiki.git;a=blob_plain;f=IkiWiki/Plugin/plusone.pm;hb=refs/heads/plusone) [htmlscrubber.pm](http://git.recluse.de/?p=users/bzed/ikiwiki.git;a=blob_plain;f=IkiWiki/Plugin/htmlscrubber.pm;h=5193d02487694c0bab902f2ca84a0a55b6745754;hb=refs/heads/plusone)
* browse repository: <http://git.recluse.de/?p=users/bzed/ikiwiki.git;a=shortlog;h=refs/heads/plusone>
* git repo: `git://git.recluse.de/users/bzed/ikiwiki.git` or <http://git.recluse.de/repos/users/bzed/ikiwiki.git> (Use the plusone branch)