summaryrefslogtreecommitdiffstats
path: root/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/site-scripts.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/site-scripts.html')
-rw-r--r--docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/site-scripts.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/site-scripts.html b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/site-scripts.html
new file mode 100644
index 000000000..7dec9de18
--- /dev/null
+++ b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/site-scripts.html
@@ -0,0 +1,17 @@
+<!-- scripts -->
+{{ $scripts := resources.Get "output/js/app.js" }}
+{{ $isDev := eq hugo.Environment "development" }}
+{{ if not $isDev }}
+{{ $scripts = $scripts | fingerprint }}
+{{ end }}
+{{ with $scripts }}
+ {{ if $isDev }}
+ <script type="text/javascript" src="{{ .RelPermalink }}" crossorigin="anonymous" defer></script>
+ {{ else }}
+ <script type="text/javascript" src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" defer></script>
+ {{ end }}
+ {{ $.Scratch.Set "scripts" . }}
+{{end}}
+
+<!-- Place this tag in your head or just before your close body tag. -->
+<script async defer src="https://buttons.github.io/buttons.js"></script>