diff options
author | Joey Hess <joey@kitenet.net> | 2010-11-16 15:00:04 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-11-16 15:00:04 -0400 |
commit | ec6c1269d251c78d2eef68cb789de6cfc6272464 (patch) | |
tree | 1579fecb0e077106b2dba5c8a8dd20597cf62bc2 /IkiWiki | |
parent | 021676e489f9b79a50338635ad654f31eb5575fe (diff) | |
download | ikiwiki-ec6c1269d251c78d2eef68cb789de6cfc6272464.tar ikiwiki-ec6c1269d251c78d2eef68cb789de6cfc6272464.tar.gz |
more: Add pages parameter to limit where the more is displayed. (thanks, dark)
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/more.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/more.pm b/IkiWiki/Plugin/more.pm index 80e339a1b..6880e366d 100644 --- a/IkiWiki/Plugin/more.pm +++ b/IkiWiki/Plugin/more.pm @@ -26,7 +26,10 @@ sub preprocess (@) { $params{linktext} = $linktext unless defined $params{linktext}; - if ($params{page} ne $params{destpage}) { + if ($params{page} ne $params{destpage} && + (! exists $params{pages} || + pagespec_match($params{destpage}, $params{pages}, + location => $params{page}))) { return "\n". htmllink($params{page}, $params{destpage}, $params{page}, linktext => $params{linktext}, |