Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/danielkvist/hugo-piercer-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielkvist <d94.zaragoza@gmail.com>2019-03-24 16:20:45 +0300
committerdanielkvist <d94.zaragoza@gmail.com>2019-03-24 16:20:45 +0300
commitf6dc00a1163eee997c2b2bacb11849acd741d912 (patch)
tree36a49d6b43bad760e4d7df5f7f2e86543aa450c5
parent28994ce5b01d14b63bf5ff055f63c87900b11ed6 (diff)
add partial for JS scripts
-rw-r--r--layouts/partials/scripts.html5
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..52354f9
--- /dev/null
+++ b/layouts/partials/scripts.html
@@ -0,0 +1,5 @@
+{{ $header := resources.Get "js/header.js" }}
+{{ $bundle := slice $header | resources.Concat "js/bundle.js" }}
+{{ $js := $bundle | resources.Minify | resources.Fingerprint }}
+
+<script src="{{ $js.Permalink }}"></script> \ No newline at end of file