2016-07-06 08:15:55 +00:00
|
|
|
<div class="searchbox">
|
|
|
|
<label for="search-by"><i class="fa fa-search"></i></label>
|
2017-07-27 19:42:07 +00:00
|
|
|
<input data-search-input id="search-by" type="text" placeholder="{{T "Search-placeholder"}}">
|
2016-07-06 08:15:55 +00:00
|
|
|
<span data-search-clear=""><i class="fa fa-close"></i></span>
|
|
|
|
</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">
|
2017-08-08 20:29:52 +00:00
|
|
|
{{ if .Site.IsMultiLingual }}
|
2018-01-06 22:27:36 +00:00
|
|
|
var baseurl = "{{.Site.LanguagePrefix | relURL }}";
|
2017-08-08 20:29:52 +00:00
|
|
|
{{ else }}
|
2018-01-06 22:27:36 +00:00
|
|
|
var baseurl = '{{ "" | relURL }}';
|
2017-08-08 20:29:52 +00:00
|
|
|
{{ end }}
|
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>
|