diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-04-14 20:58:02 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-04-14 20:58:02 +0000 |
commit | e855e30d01796253a77da4531fcd1f896d9f117a (patch) | |
tree | a437e5d3405d0091989498e9b9466b067d2881b1 /IkiWiki | |
parent | 9b145798c75e88267f4782b3cedc9d5deb41a0c8 (diff) |
* Add feedshow parameter to inline, which can be useful for eg, removing
old posts from feeds when permalinks change.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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}); |