diff options
author | Jimmy Cai <jimmehcai@gmail.com> | 2020-09-17 20:47:03 +0300 |
---|---|---|
committer | Jimmy Cai <jimmehcai@gmail.com> | 2020-09-17 20:47:03 +0300 |
commit | 845834baa6841d79ff737ef810a0270d02d21856 (patch) | |
tree | 4f5f69a138f784266b678593e4fdc213c1c468e7 /layouts/partials/footer/components/script.html | |
parent | 841508f491a8e1010efa1645312b721d67f55a3f (diff) |
refactor(footer): add footer/include.html
To include HTML code for style and script
Diffstat (limited to 'layouts/partials/footer/components/script.html')
-rw-r--r-- | layouts/partials/footer/components/script.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/partials/footer/components/script.html b/layouts/partials/footer/components/script.html new file mode 100644 index 0000000..08e357b --- /dev/null +++ b/layouts/partials/footer/components/script.html @@ -0,0 +1,7 @@ +<script src="https://cdn.jsdelivr.net/npm/node-vibrant@3.1.5/dist/vibrant.min.js" + integrity="sha256-5NovOZc4iwiAWTYIFiIM7DxKUXKWvpVEuMEPLzcm5/g=" crossorigin="anonymous"></script> + +{{- $opts := dict "minify" hugo.IsProduction -}} +{{- $script := resources.Get "ts/main.ts" | js.Build $opts -}} + +<script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script>
\ No newline at end of file |