Skip to content

Commit

Permalink
Merge pull request #177 from matalo33/fix-showcase-search
Browse files Browse the repository at this point in the history
Fix baseurl used by search to load json data
  • Loading branch information
matalo33 authored Oct 17, 2018
2 parents c8e6161 + ff09216 commit 3359511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<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 }}";
var baseurl = "{{.Site.BaseURL}}{{.Site.LanguagePrefix}}";
{{ else }}
var baseurl = '{{ "" | relURL }}';
var baseurl = "{{.Site.BaseURL}}";
{{ end }}
</script>
<script type="text/javascript" src="{{"js/search.js" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>

0 comments on commit 3359511

Please sign in to comment.