diff options
author | Zach Berwaldt <17715430+zberwaldt@users.noreply.github.com> | 2023-10-20 22:58:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-20 22:58:33 -0400 |
commit | c516745d0dc2c6a51777ef00ef116c1b26e95ec7 (patch) | |
tree | adcce31c689d3e63ab3ea8bd36f9ac384eca4cad /layouts/partials/scripts.html | |
parent | b34e09f8fe1011963934dbf40dc92f0b258592ca (diff) | |
parent | 6bfd84ae2c7aad006c3bc84cdce9aebf894cbe62 (diff) |
Develop
Diffstat (limited to 'layouts/partials/scripts.html')
-rw-r--r-- | layouts/partials/scripts.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html new file mode 100644 index 0000000..f7c95bd --- /dev/null +++ b/layouts/partials/scripts.html | |||
@@ -0,0 +1,5 @@ | |||
1 | {{ $scripts := resources.Match "js/*.js" }} | ||
2 | {{ range $script := $scripts }} | ||
3 | {{ $script := $script | minify | fingerprint }} | ||
4 | <script src="{{ $script.RelPermalink }}" defer></script> | ||
5 | {{ end }} | ||