diff --git a/src/_sass/_search.scss b/src/_sass/_search.scss index dfc3de154..4a0d27d75 100644 --- a/src/_sass/_search.scss +++ b/src/_sass/_search.scss @@ -39,13 +39,9 @@ list-style-type: none; margin-bottom: 2rem; - &-title { + &-heading { margin: 0 0 1rem; } - - &-breadcrumbs { - margin-bottom: 1rem; - } &-excerpt { margin: 0; diff --git a/src/assets/js/search.js b/src/assets/js/search.js index db92b687a..f44d1c23c 100644 --- a/src/assets/js/search.js +++ b/src/assets/js/search.js @@ -81,15 +81,15 @@ breadcrumbs.pop() - const breadcrumbsString = breadcrumbs.join(' > ') + const breadcrumbsString = breadcrumbs.length ? breadcrumbs.join(' > ') + ' > ' : '' + const heading = breadcrumbsString + item.title const excerpt = getExcerpt(item.content, searchQuery) innerHtml += '
${excerpt}
` + '