mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-24 00:56:34 -05:00
Asset management #18
This commit is contained in:
parent
68bec37a82
commit
195888938e
6 changed files with 7 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
resources
|
||||||
|
|
|
@ -20,8 +20,10 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
<script src="/js/jquery-3.3.1.min.js"></script>
|
{{ $jquery := resources.Get "js/jquery-3.3.1.min.js" }}
|
||||||
<script src="/js/jquery.mark.es6.min.js"></script>
|
{{ $mark := resources.Get "js/jquery.mark.es6.min.js" }}
|
||||||
<script src="/js/lunr.js"></script>
|
{{ $lunr := resources.Get "js/lunr.js" }}
|
||||||
<script src="/js/search.js"></script>
|
{{ $search := resources.Get "js/search.js" }}
|
||||||
|
{{ $js := slice $jquery $mark $lunr $search | resources.Concat "js/bundle.js" | resources.Minify | resources.Fingerprint }}
|
||||||
|
<script src="{{ $js.Permalink }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue