From e855e30d01796253a77da4531fcd1f896d9f117a Mon Sep 17 00:00:00 2001 From: joey Date: Sat, 14 Apr 2007 20:58:02 +0000 Subject: * Add feedshow parameter to inline, which can be useful for eg, removing old posts from feeds when permalinks change. --- IkiWiki/Plugin/inline.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 452fdd267..417eec8f3 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -222,6 +222,9 @@ sub preprocess_inline (@) { #{{{ if (exists $params{feedshow} && @list > $params{feedshow}) { @list=@list[0..$params{feedshow} - 1]; } + if (exists $params{feedpages}) { + @list=grep { pagespec_match($_, $params{feedpages}, $params{page}) } @list; + } if ($rss) { my $rssp=rsspage($params{page}); -- cgit v1.2.3