Skip to content

Commit

Permalink
docs(example): fix html for hits (#4077)
Browse files Browse the repository at this point in the history
There can only be one main element per page:

> A document mustn't have more than one <main> element that doesn't have the hidden attribute specified.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main
  • Loading branch information
Haroenv committed Aug 28, 2019
1 parent 4bf3ab3 commit a1e27c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/e-commerce/src/widgets/Products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const products = hits({
<img src="{{image}}" alt="{{name}}" class="hit-image">
</header>
<main class="hit-info-container">
<div class="hit-info-container">
<p class="hit-category">{{categories.0}}</p>
<h1>{{#helpers.highlight}}{ "attribute": "name" }{{/helpers.highlight}}</h1>
<p class="hit-description">{{#helpers.snippet}}{ "attribute": "description" }{{/helpers.snippet}}</p>
Expand All @@ -25,7 +25,7 @@ export const products = hits({
</span>
</p>
</footer>
</main>
</div>
</article>
`,
empty(searchResults) {
Expand Down

0 comments on commit a1e27c5

Please sign in to comment.