Skip to content

Commit

Permalink
Merge pull request #2 from zoglo/bugfix/default-language-index
Browse files Browse the repository at this point in the history
Correctly load the index.json for docs with one language
  • Loading branch information
Toflar authored Feb 23, 2024
2 parents 7c06142 + 79117c1 commit 9598218
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions page/layouts/partials/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
<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.BaseURL}}{{.Site.LanguagePrefix}}";
{{ else }}
var baseurl = "{{.Site.BaseURL}}";
{{ end }}
</script>
<script type="text/javascript" src="{{"js/search.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>

Expand Down

0 comments on commit 9598218

Please sign in to comment.