diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-06-04 13:12:10 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-06-04 13:12:10 -0400 |
commit | 295e958da57129372b801275c78be0a4aa2b7ca9 (patch) | |
tree | 0607a27a5996eefb17dccaa4339036ece27bf712 /IkiWiki/Plugin | |
parent | a0970423a72a6e687eeb79b660d7609f2539d7b8 (diff) |
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.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/search.pm | 9 |
1 files changed, 1 insertions, 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) { |