Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/js/offline-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
})
.slice(
0,
$targetSearchInput.data('offlnie-search-max-results')
$targetSearchInput.data('offline-search-max-results')
);

//
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/search-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
placeholder=" {{ T "ui_search" }}"
aria-label="{{ T "ui_search" }}"
autocomplete="off"
{{/*
{{/*
The data attribute name of the json file URL must end with `src` since
Hugo's absurlreplacer requires `src`, `href`, `action` or `srcset` suffix for the attribute name.
If the absurlreplacer is not applied, the URL will start with `/`.
Expand All @@ -18,6 +18,6 @@
*/}}
data-offline-search-index-json-src="{{ $offlineSearchIndexFingerprint.RelPermalink }}"
data-offline-search-base-href="/"
data-offlnie-search-max-results="{{ .Site.Params.offlineSearchMaxResults | default 10 }}"
data-offline-search-max-results="{{ .Site.Params.offlineSearchMaxResults | default 10 }}"
>
{{ end }}