sub import { #{{{
hook(type => "getopt", id => "inline", call => \&getopt);
hook(type => "checkconfig", id => "inline", call => \&checkconfig);
- hook(type => "sessioncgi", id => "skeleton", call => \&sessioncgi);
+ hook(type => "sessioncgi", id => "inline", call => \&sessioncgi);
hook(type => "preprocess", id => "inline",
call => \&IkiWiki::preprocess_inline);
hook(type => "pagetemplate", id => "inline",
}
else {
if (exists $page_numfeeds{$params{destpage}}) {
- $feednum=$knownfeeds{$feedid}=++$page_numfeeds{$params{destpage}};
+ if ($feeds) {
+ $feednum=$knownfeeds{$feedid}=++$page_numfeeds{$params{destpage}};
+ }
}
else {
$feednum=$knownfeeds{$feedid}="";
}
}
- my $rssurl=basename(rsspage($params{destpage}).$feednum);
- my $atomurl=basename(atompage($params{destpage}).$feednum);
+ my $rssurl=basename(rsspage($params{destpage}).$feednum) if $feeds && $rss;
+ my $atomurl=basename(atompage($params{destpage}).$feednum) if $feeds && $atom;
my $ret="";
if ($config{cgiurl} && (exists $params{rootpage} ||