diff options
Diffstat (limited to 'www/layouts/_partials/js.html')
-rw-r--r-- | www/layouts/_partials/js.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/www/layouts/_partials/js.html b/www/layouts/_partials/js.html new file mode 100644 index 0000000..16dafa4 --- /dev/null +++ b/www/layouts/_partials/js.html @@ -0,0 +1,11 @@ +{{ with resources.Get . }} + {{ if hugo.IsProduction }} + {{ with . | js.Build (dict "minify" true "sourceMap" "external") | fingerprint }} + <script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}"></script> + {{ end }} + {{ else }} + {{ with . | js.Build }} + <script src="{{ .RelPermalink }}"></script> + {{ end }} + {{ end }} +{{ end }} |