# Names of the HTML classes to use for the tag cloud
our @classes = ('smallestPC', 'smallPC', 'normalPC', 'bigPC', 'biggestPC' );
sub import { #{{{
# Names of the HTML classes to use for the tag cloud
our @classes = ('smallestPC', 'smallPC', 'normalPC', 'bigPC', 'biggestPC' );
sub import { #{{{
- if (pagespec_match($page, $params{pages})) {
- my @bl = IkiWiki::backlinks($page);
- $counts{$page} = scalar(@bl);
+ if (pagespec_match($page, $params{pages}, location => $params{page})) {
+ use IkiWiki::Render;
+ $counts{$page} = scalar(IkiWiki::backlinks($page));
- htmllink($params{page}, $params{destpage}, $_, 1).
+ htmllink($params{page}, $params{destpage}, $_, noimageinline => 1).
# In case of misspelling, default to a page cloud
my $res = "<div class='pagecloud'>\n";
# In case of misspelling, default to a page cloud
my $res = "<div class='pagecloud'>\n";