hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

site-scripts.html (678B)

    1 <!-- scripts -->
    2 {{ $scripts := resources.Get "output/js/app.js" }}
    3 {{ $isDev := eq hugo.Environment "development" }}
    4 {{ if not $isDev }}
    5 {{ $scripts = $scripts | fingerprint }}
    6 {{ end }}
    7 {{ with $scripts }}
    8   {{ if  $isDev }}
    9   <script type="text/javascript" src="{{ .RelPermalink }}" crossorigin="anonymous" defer></script>
   10   {{ else }}
   11   <script type="text/javascript" src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" defer></script>
   12   {{ end }}
   13   {{ $.Scratch.Set "scripts" . }}    
   14 {{end}} 
   15 
   16 <!-- Place this tag in your head or just before your close body tag. -->
   17 <script async defer src="https://buttons.github.io/buttons.js"></script>