I’m migrating an old project to Netlify. The code is identical, but on Netlify the templating is not working.
Here’s the code that shows my ‘hits’:
instantsearch.widgets.hits({
container: "#search-results",
cssClasses: {
root: "results-wrapper",
list: "emoji-wrapper",
item: "emoji",
},
templates: {
item: `
<a
href="#"
class="emoji-link"
style="transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg)
rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
transform-style: preserve-3d;
">
{{ symbol }}
</a>`,
},
}),
For some reason, Algolia is not reading the symbol
attribute from my dataset and shows empty search results.
Here’s the old link:
And the new link:
Appreciate any help!