From 53d81ebcd6cf235ae7db636b946f5342b863cc74 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 1 Aug 2006 20:08:42 +0000 Subject: * Patch from Roland Mas to support an rss=no parameter to inline directives. Closes: #380743 --- IkiWiki/Plugin/inline.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 110410abc..03471668c 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -35,6 +35,9 @@ sub preprocess_inline (@) { #{{{ if (! exists $params{show} && $params{archive} eq "no") { $params{show}=10; } + if (! exists $params{rss}) { + $params{rss}="yes"; + } # Avoid nested inlines, to avoid loops etc. if ($processing_inline) { @@ -68,7 +71,7 @@ sub preprocess_inline (@) { #{{{ } $ret.=$formtemplate->output; } - elsif ($config{rss}) { + elsif ($config{rss} && $params{rss} eq "yes")) { # Add a rss link button. my $linktemplate=template("rsslink.tmpl", blind_cache => 1); $linktemplate->param(rssurl => rsspage(basename($params{page}))); @@ -105,7 +108,7 @@ sub preprocess_inline (@) { #{{{ # TODO: should really add this to renderedfiles and call # check_overwrite, but currently renderedfiles # only supports listing one file per page. - if ($config{rss}) { + if ($config{rss} && $params{rss} eq "yes") { writefile(rsspage($params{page}), $config{destdir}, genrss($params{page}, @list)); $toping{$params{page}}=1 unless $config{rebuild}; -- cgit v1.2.3