Skip to content

Commit

Permalink
Improve default title for search by removing file format ending (#1826)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaixin-hc committed Mar 19, 2022
1 parent 23d2e0e commit d0c5eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-components/src/Searchbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default {
headingKeywords,
} = entry;
const keywords = entry.keywords || '';
const displayTitle = title || src;
const displayTitle = title || src.substring(0, src.lastIndexOf('.'));
const pageSearchTargets = [
displayTitle,
Expand Down

0 comments on commit d0c5eb5

Please sign in to comment.