mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
fix search for multiple languages
This commit is contained in:
parent
1df25a3f06
commit
44821c94a7
1 changed files with 8 additions and 4 deletions
|
@ -3,9 +3,13 @@
|
|||
<input data-search-input id="search-by" type="text" placeholder="{{T "Search-placeholder"}}">
|
||||
<span data-search-clear=""><i class="fa fa-close"></i></span>
|
||||
</div>
|
||||
<script type="text/javascript" src="{{"js/lunr.min.js" | relLangURL}}"></script>
|
||||
<script type="text/javascript" src="{{"js/horsey.js" | relLangURL}}"></script>
|
||||
<script type="text/javascript" src="{{"js/lunr.min.js" | relURL}}"></script>
|
||||
<script type="text/javascript" src="{{"js/horsey.js" | relURL}}"></script>
|
||||
<script type="text/javascript">
|
||||
{{ if .Site.IsMultiLingual }}
|
||||
var baseurl = "{{.Site.BaseURL}}{{.Site.LanguagePrefix}}";
|
||||
{{ else }}
|
||||
var baseurl = "{{.Site.BaseURL}}";
|
||||
{{ end }}
|
||||
</script>
|
||||
<script type="text/javascript" src="{{"js/search.js" | relLangURL}}"></script>
|
||||
<script type="text/javascript" src="{{"js/search.js" | relURL}}"></script>
|
||||
|
|
Loading…
Reference in a new issue