mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-17 19:33:30 +00:00
16 lines
902 B
HTML
16 lines
902 B
HTML
<div class="searchbox">
|
|
<label for="search-by"><i class="fas fa-search"></i></label>
|
|
<input data-search-input id="search-by" type="text" placeholder="{{T "Search-placeholder"}}">
|
|
<span data-search-clear=""><i class="fas fa-close"></i></span>
|
|
</div>
|
|
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
|
|
<script type="text/javascript" src="{{"js/lunr.min.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
|
<script type="text/javascript" src="{{"js/auto-complete.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|
|
<script type="text/javascript">
|
|
{{ if .Site.IsMultiLingual }}
|
|
var baseurl = "{{.Site.LanguagePrefix | relURL }}";
|
|
{{ else }}
|
|
var baseurl = '{{ "" | relURL }}';
|
|
{{ end }}
|
|
</script>
|
|
<script type="text/javascript" src="{{"js/search.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
|