From 295e958da57129372b801275c78be0a4aa2b7ca9 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 4 Jun 2008 13:12:10 -0400 Subject: [PATCH] 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. --- IkiWiki/Plugin/search.pm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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) { -- 2.44.0