Implementeren zoekfunctionaliteit
This commit is contained in:
parent
55c242d4b6
commit
372746317e
16 changed files with 247 additions and 13 deletions
15
themes/nluug/layouts/partials/scripts_loadlast.html
Normal file
15
themes/nluug/layouts/partials/scripts_loadlast.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<script src="{{ "js/search.js" | absURL }}"></script>
|
||||
|
||||
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
|
||||
{{ $scripts := getJSON "assets/js/scripts.json" }}
|
||||
|
||||
{{ $.Scratch.Set "jslibs" slice }}
|
||||
{{ range $scripts.scripts }}
|
||||
{{ $.Scratch.Add "jslibs" (resources.Get . ) }}
|
||||
{{ end }}
|
||||
|
||||
{{ $js := .Scratch.Get "jslibs" | resources.Concat "js/combined-scripts.js" | resources.Minify | fingerprint }}
|
||||
<script
|
||||
src="{{ $js.RelPermalink }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"
|
||||
integrity="{{ $js.Data.Integrity }}"
|
||||
></script>
|
Loading…
Add table
Add a link
Reference in a new issue