Skip to content

Commit d556d82

Browse files
committed
Don’t show the search result name if it’s the same as the title
Also remove the parenthesis around the module name.
1 parent 14c10f0 commit d556d82

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

templates/search-results.stache

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818
<li>
1919
<a href="{{docUrl}}" title="{{result.name}}" class="result-name">
2020
{{#if result.title}}{{result.title}}{{else}}{{result.name}}{{/if}}
21-
21+
2222

2323
{{#if result.title}}
24-
<span class="name">
25-
({{result.name}})
26-
</span>
24+
{{^eq result.name result.title}}
25+
<span class="name">
26+
{{result.name}}
27+
</span>
28+
{{/eq}}
2729
{{/if}}
2830

2931
{{#if result.description}}

0 commit comments

Comments
 (0)