Skip to content

Commit

Permalink
refactor: move baseURL setting to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
rhnvrm committed Jun 4, 2020
1 parent c6eb2f3 commit 911e80f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions layouts/_default/search.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{{ define "footerfiles" }}
<script>
var baseURL = {{ .Site.BaseURL }}
</script>
<script src="{{ "/js/jquery-3.3.1.min.js" | relURL }}"></script>
<script src="{{ "/js/fuse.min.js" | relURL }}"></script>
<script src="{{ "/js/jquery.mark.min.js" | relURL }}"></script>
Expand All @@ -18,9 +21,7 @@ <h3>Matching pages</h3>
</div>
</div>
</div>
<script>
var baseURL = {{ .Site.BaseURL }}
</script>

<!-- this template is sucked in by search.js and appended to the search-results div above. So editing here will adjust style -->
<script id="search-result-template" type="text/x-js-template">
<div id="summary-${key}">
Expand Down

0 comments on commit 911e80f

Please sign in to comment.