diff options
author | panda-z <panda.hust@gmail.com> | 2020-04-13 21:18:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 21:18:35 +0800 |
commit | 5657112dfb0e6eac2faa2ae1dc0978ed29030709 (patch) | |
tree | f22279cb587444b0649f95da647b60daf1f370e9 /layouts/partials/scripts.html | |
parent | d39d3e443953caea05510b19fdd7a259c71a0ab3 (diff) |
chore(build): drop webpack and use Hugo Pipes (#130)
Diffstat (limited to 'layouts/partials/scripts.html')
-rw-r--r-- | layouts/partials/scripts.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index de35229..16cec74 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -67,7 +67,10 @@ <link rel="stylesheet" href="{{ "lib/js-sequence-diagrams/sequence-diagram-2.0.1.min.css" | relURL }}" integrity="sha384-6QbLKJMz5dS3adWSeINZe74uSydBGFbnzaAYmp+tKyq60S7H2p6V7g1TysM5lAaF" crossorigin="anonymous"> {{- end -}} {{- end }} -<script type="text/javascript" src="{{ print "dist/" .Site.Data.even.assets.even.js | relURL }}"></script> +{{ $even := resources.Get "js/even.js" }} +{{ $main := resources.Get "js/main.js" }} +{{ $js := slice $even $main | resources.Concat "js/main.js" | fingerprint }} +<script type="text/javascript" src="{{ $js.Permalink }}"></script> {{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }} <script type="text/javascript"> |