diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-06-03 22:11:33 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-06-03 22:11:33 -0400 |
commit | 18b0aa1f13b61f460b4775567df909fa6d8d2e50 (patch) | |
tree | 3cba90f2918e1024669dabd195cc03dc63c5c124 /IkiWiki | |
parent | 02357b0b32decfa2214c8c2fada529b44fceee0e (diff) |
prettify page names, and drop the redunadant url display
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/search.pm | 5 |
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( |