blob: 7dec9de18154a231a42c7b2c32d8a2ec9e8b87f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>
|