X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom-plugins.git;a=blobdiff_plain;f=gavinc%2Ftagcloud;fp=gavinc%2Ftagcloud;h=d89fc9237e59601d8944b0b87c6d923a9546396b;hp=e0c3baaba8c14b69654451fc90e2dff7662f0ac9;hb=9446c25f45057b9feb2233d9f7774dbdbda5c39b;hpb=cfa1ab85ac34941b67829ff99004ff576d0f44e8 diff --git a/gavinc/tagcloud b/gavinc/tagcloud index e0c3baa..d89fc92 100644 --- a/gavinc/tagcloud +++ b/gavinc/tagcloud @@ -13,28 +13,28 @@ use vars qw(%config $cloud); # --- Configuration defaults ----- -%config = ( +%config = (); - # tagcloud requires a hashref containing 'tag => count' pairs - tag_hashref => $tags::tag_counts, +# tagcloud requires a hashref containing 'tag => count' pairs +$config{tag_hashref} = $tags::tag_counts; - # Formatting options - tagcloud_prefix => qq(

\n), - tagcloud_suffix => qq(

\n), - show_tag_no => 0, - min_tag_no => 2, - min_size => 75, - max_size => 200, - entry_type => 'posting', +# Formatting options +$config{tagcloud_prefix} = qq(

\n); +$config{tagcloud_suffix} = qq(

\n); +$config{show_tag_no} = 0; +$config{min_tag_no} = 2; +$config{min_size} = 75; +$config{max_size} = 200; +$config{entry_type} = 'posting'; - # Tags to omit from tagcloud - tagcloud_blacklist => [ 'Now Playing' ], - -); +# Tags to omit from tagcloud +$config{tagcloud_blacklist} = [ 'Now Playing' ]; # --------------------------------- # __END_CONFIG__ +#blosxom::load_config( \%config, 'tagcloud' ); + my %tagcloud_blacklist = map { $_ => 1 } @{$config{tagcloud_blacklist}}; $cloud = '';