GetEntry for this Page
{
"draft": false,
"id": "33576a1d28e7d6bc09275a6e46a7229c",
"permalink": "https://hugo-modules.thenewdynamic.com/modules/search/",
"relpermalink": "/modules/search/",
"title": "Search",
"tnd_id": "tnd_search",
"type": "module"
}
Config
tnd_search:
instantsearch:
- apiKey: daa081e4233fac2f641033885a79f622cf60e1d83450417498a468bd18ddf274
appId: https://search.thenewdynamic.dev
indexName: tnd-modules
name: default
startEmpty: true
widgets:
- classes:
form: relative p-4 mb-0 border-b border-t border-black
input: outline-none bg-transparent border-none w-full text-3xl
reset: hidden
root: search__box
submit: hidden
submitIcon: fill-current
container: '#searchbox_default'
name: searchBox
placeholder: Search
- container: '#hits_default'
name: hits
templates:
item: |
<a class="block p-2 mb-2 text-blue-500 border text-underline" href="{{ relpermalink }}">
<div>{{#helpers.highlight}}{ "attribute": "title" }{{/helpers.highlight}}</div>
</a>
- apiKey: daa081e4233fac2f641033885a79f622cf60e1d83450417498a468bd18ddf274
appId: https://search.thenewdynamic.dev
attributesToSnippet:
- content:50
hitsPerPage: 20
indexName: tnd-modules
name: facets
snippetEllipsisText: '...'
widgets:
- js: clearRefinementsTND
name: clearRefinements
- attribute: type
container: '#refinementtype'
js: refinementBase
name: refinementList
- attribute: instructors
container: '#refine-instructors'
js: refinementBase
name: refinementList
- classes:
form: relative p-4 mb-0 border-b border-t border-black
input: outline-none bg-transparent border-none w-full text-3xl
reset: hidden
root: search__box mb-8
submit: hidden
submitIcon: fill-current
container: '#searchbox_facets'
name: searchBox
placeholder: Search now!
- classes:
list: list-reset
root: bg-white
container: '#hits_facets'
js: hits
name: hits
templates:
empty: |
<span class="block px-8 py-2 border-b border-black">No results for {{ query }}</span>
item: |
<a class="block px-8 py-2 mb-4 border border-red-500" href="{{ relpermalink }}">
<div class="flex justify-between">
<div>{{#helpers.highlight}}{ "attribute": "title" }{{/helpers.highlight}}</div>
<div>{{ type }}</div>
</div>
<div class="italic mt-4 text-gray-600">
{{#helpers.snippet}}{ "attribute": "content"}{{/helpers.snippet}}
</div>
</a>
- classes:
item: mx-4
link: text-blue-500 underline
list: flex justify-center items-center
root: my-4
selectedItem: no-underline
container: '#pagination_facets'
name: pagination
params:
- description
service: meili