mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 15:16:40 -04:00
add content-type and access-control headers to hit function response
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
{{/* only parse and append analytics script on production site */}}
|
||||
{{- $includeProdScripts := eq hugo.Environment "production" -}}
|
||||
|
||||
{{- $twemoji := resources.Get "js/vendor/twemoji.js" | resources.ExecuteAsTemplate "js/vendor/twemoji.js" . -}}
|
||||
{{- $counter := resources.Get "js/counter.js" -}}
|
||||
{{- $twemoji := resources.Get "js/vendor/twemoji.js" -}}
|
||||
|
||||
{{- $bundle := slice $twemoji $counter -}}
|
||||
{{- $bundle := slice $counter $twemoji -}}
|
||||
|
||||
{{- if $includeProdScripts }}
|
||||
{{- $fathom := resources.Get "js/fathom.js" | resources.ExecuteAsTemplate "js/fathom.js" . }}
|
||||
{{- $bundle = $bundle | append $fathom }}
|
||||
{{- end }}
|
||||
{{- if $includeProdScripts -}}
|
||||
{{- $fathom := resources.Get "js/fathom.js" -}}
|
||||
{{- $bundle = $bundle | append $fathom -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $js := $bundle | resources.Concat "/js/app.js" -}}
|
||||
<script async defer src="{{ $js.Permalink }}"></script>
|
||||
|
Reference in New Issue
Block a user