diff options
author | Joey Hess <joey@kitenet.net> | 2010-05-06 23:20:48 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-06 23:20:48 -0400 |
commit | ea4967f184bf0a27eaa2dc81da1084780756156a (patch) | |
tree | e277454c3c67b6cafb17cce16d87493ae2bb0348 /IkiWiki/Plugin/inline.pm | |
parent | 121e2ffc2f25bf264a68d35e80a9386995fa9e5a (diff) |
inline: Call indexhtml when inlining internal pages, so their text can be indexed for searching.
Diffstat (limited to 'IkiWiki/Plugin/inline.pm')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 933e30646..715a3d652 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -476,6 +476,13 @@ sub get_inline_content ($$) { filter($page, $destpage, readfile(srcfile($file)))))); $nested--; + if (isinternal($page)) { + # make inlined text of internal pages searchable + run_hooks(indexhtml => sub { + shift->(page => $page, destpage => $page, + content => $ret); + }); + } } if ($cached_destpage ne $destpage) { |