Skip to content

Commit a14d0d7

Browse files
author
Yassine El Haddad
committed
add anchor to search result card title
1 parent 91aa0da commit a14d0d7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/.vuepress/theme/drawer/DrawerSearchResult.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
<section v-if="data.length" class="drawer-main__search-results">
33
<template v-for="(item, index) in visibleResults" :key="item.objectID || index">
44
<div class="search-result" @click="gotTo(parseUrl(item.url))">
5-
<div
6-
class="search-result__title"
7-
v-html="highlightMatchingWords(getTitleForArticle(item.title), modelValue)"
8-
></div>
5+
<a :href="item.url" class="search-result__title" v-html="highlightMatchingWords(getTitleForArticle(item.title), modelValue)"></a>
96
<div
107
class="search-result__breadcrumb"
118
v-html="highlightMatchingWords(getBreadcrumbsForArticle(item.title), modelValue)"

0 commit comments

Comments
 (0)