2022-05-08 22:02:35 +00:00
|
|
|
<!-- search box -->
|
|
|
|
<div id="searchBox">
|
|
|
|
<input type="text" id="searchBoxInput" placeholder="Search..." />
|
|
|
|
<img id="searchBoxIcon" src="{{ .Site.BaseURL }}/img/search.png" />
|
|
|
|
</div>
|
|
|
|
<!-- search results -->
|
|
|
|
<div id="searchResults"></div>
|
|
|
|
|
|
|
|
{{ $jquery := resources.Get "js/jquery-3.5.1.min.js" }}
|
|
|
|
{{ $mark := resources.Get "js/jquery.mark.es6.min.js" }}
|
|
|
|
{{ $lunr := resources.Get "js/lunr.js" }}
|
|
|
|
{{ $search := resources.Get "js/search.js" }}
|
2022-11-23 03:24:06 +00:00
|
|
|
{{ $lunrPackage := slice $jquery $mark $lunr | resources.Concat "js/lunrPackage.js" | resources.Minify | resources.Fingerprint }}
|
|
|
|
<script src="{{ $lunrPackage.Permalink }}"></script>
|
|
|
|
<script src="{{ $search.Permalink }}" async></script>
|