Merge pull request #32 from thegeeklab/fix-search

fix broken flexsearch asset loading
uci-hugo-doc
Robert Kaussow 2020-12-02 15:31:35 +01:00 committed by GitHub
commit 05a1b31545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
input.removeEventListener('focus', init); // init once input.removeEventListener('focus', init); // init once
input.required = true; input.required = true;
loadScript('{{ "js/flexsearch.min.js" | relURL }}'); loadScript('{{ index .Site.Data.assets "js/flexsearch.min.js" | relURL }}');
loadScript('{{ $searchData.RelPermalink }}', function() { loadScript('{{ $searchData.RelPermalink }}', function() {
input.required = false; input.required = false;
search(); search();