Skip to content

Commit

Permalink
Build a section around the categories #3342
Browse files Browse the repository at this point in the history
  • Loading branch information
LinaKind committed Jun 21, 2024
1 parent b26fa1d commit 191ec3d
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ const renderSearchCategories = (viewModel: ViewModel) => pipe(
RA.map((category) => toHtmlFragment(`<a href="${category.href}">${category.title}</a>`)),
renderListItems,
(categories) => `
<ul role="list" class="search-categories">
${categories}
</ul>
<section>
<h2>Browse by category</h2>
<ul role="list" class="search-categories">
${categories}
</ul>
</section>
`,
);

Expand Down

0 comments on commit 191ec3d

Please sign in to comment.