summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/search.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm
index 3e3e9dfab..fc77a7d2f 100644
--- a/IkiWiki/Plugin/search.pm
+++ b/IkiWiki/Plugin/search.pm
@@ -68,11 +68,14 @@ sub filter (@) { #{{{
# index page
my $db=xapiandb();
my $doc=Search::Xapian::Document->new();
- my $title=$params{page};
+ my $title;
if (exists $pagestate{$params{page}}{meta} &&
exists $pagestate{$params{page}}{meta}{title}) {
$title=$pagestate{$params{page}}{meta}{title};
}
+ else {
+ $title=IkiWiki::pagetitle($params{page});
+ }
# data used by omega
$doc->set_data(