Fixed search by splitting up javascript files

This commit is contained in:
Brandon Rozek 2022-04-11 08:42:26 -04:00
parent 090c5d3d94
commit 453f9cb7fa

View file

@ -33,6 +33,8 @@
{{ $mark := resources.Get "js/jquery.mark.es6.min.js" }} {{ $mark := resources.Get "js/jquery.mark.es6.min.js" }}
{{ $lunr := resources.Get "js/lunr.js" }} {{ $lunr := resources.Get "js/lunr.js" }}
{{ $search := resources.Get "js/search.js" }} {{ $search := resources.Get "js/search.js" }}
{{ $js := slice $jquery $mark $lunr $search | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint }} <script src="{{ $jquery.Permalink }}"></script>
<script src="{{ $js.Permalink }}"></script> <script src="{{ $mark.Permalink }}"></script>
<script src="{{ $lunr.Permalink }}"></script>
<script src="{{ $search.Permalink }}"></script>
{{ end }} {{ end }}