hugo/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/site-scripts.html
Bjørn Erik Pedersen 5ac0f751aa Squashed 'docs/' changes from 0584815c8..723da4a37
723da4a37 Vendor the theme

git-subtree-dir: docs
git-subtree-split: 723da4a3769ee8a6c02758b553618143f92fccef
2019-10-21 10:52:23 +02:00

17 lines
678 B
HTML

<!-- 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>