2016-07-06 08:15:55 +00:00
|
|
|
<div class="searchbox">
|
2018-02-19 11:10:41 +00:00
|
|
|
<label for="search-by"><i class="fas fa-search"></i></label>
|
2018-12-13 12:59:54 +00:00
|
|
|
<input data-search-input id="search-by" type="search" placeholder="{{T "Search-placeholder"}}">
|
2018-12-20 16:15:38 +00:00
|
|
|
<span data-search-clear=""><i class="fas fa-times"></i></span>
|
2016-07-06 08:15:55 +00:00
|
|
|
</div>
|
2017-08-16 21:14:58 +00:00
|
|
|
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
|
|
|
|
<script type="text/javascript" src="{{"js/lunr.min.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
2017-09-28 16:47:26 +00:00
|
|
|
<script type="text/javascript" src="{{"js/auto-complete.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
2016-10-24 22:45:15 +00:00
|
|
|
<script type="text/javascript">
|
2021-08-24 22:36:26 +00:00
|
|
|
// hack to let hugo tell us how to get to the root when using relativeURLs, it needs to be called *url= for it to do its magic:
|
|
|
|
// https://github.com/gohugoio/hugo/blob/145b3fcce35fbac25c7033c91c1b7ae6d1179da8/transform/urlreplacers/absurlreplacer.go#L72
|
|
|
|
var index_url={{"index.json" | relLangURL}};
|
|
|
|
var root_url="/";
|
|
|
|
var baseUri=root_url.replace(/\/$/, '');
|
2016-10-24 22:45:15 +00:00
|
|
|
</script>
|
2017-08-16 21:14:58 +00:00
|
|
|
<script type="text/javascript" src="{{"js/search.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|