From: Joey Hess Date: Wed, 4 Jun 2008 17:12:10 +0000 (-0400) Subject: don't use meta title X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/295e958da57129372b801275c78be0a4aa2b7ca9?ds=inline don't use meta title Using the title obscured path info, and made search results look inconsistent. Since nothing else uses the title like that, it didn't make sense for search to. --- diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm index 14bdb8dbc..29d31dfdc 100644 --- a/IkiWiki/Plugin/search.pm +++ b/IkiWiki/Plugin/search.pm @@ -62,14 +62,7 @@ sub index (@) { #{{{ my $db=xapiandb(); my $doc=Search::Xapian::Document->new(); - 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}); - } + my $title=IkiWiki::pagetitle($params{page}); # Remove html from text to be indexed. if (! defined $scrubber) {