Skip to content

Commit 2b2f722

Browse files
committed
Add lvl4 in search results if present
1 parent 4e2159d commit 2b2f722

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/Search/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,13 @@ const PageHit = (clickHandler) => ({ hit }) => {
132132
tagName="mark"
133133
/>
134134
)}
135+
{hit.hierarchy.lvl4 && (
136+
<StyledHighlight
137+
attribute="hierarchy.lvl4"
138+
hit={hit}
139+
tagName="mark"
140+
/>
141+
)}
135142
{hit.content && (
136143
<StyledSnippet attribute="content" hit={hit} tagName="mark" />
137144
)}

0 commit comments

Comments
 (0)