diff --git a/src/components/Search.tsx b/src/components/Search.tsx index f576d10c..c4367e54 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -13,18 +13,20 @@ export const HitComponent = ({ hit, onClick }: HitProps) => { const path = `/${hit.slug}/`; return ( -
- - - {hit.category} - + +
+ + {Boolean(hit.category) ? `- ${hit.category}` : ''} +
- +

- -

+

+ ); }; @@ -55,7 +57,10 @@ export default function Search(props: SearchProps) { )} /> - } /> + } + /> ); }