<script>
window.SITE_PHRASES = {{ .Params.typed_phrases | jsonify | safeJS }};
window.FORM_I18N = {
  success:      {{ i18n "form_success"      | jsonify | safeJS }},
  error:        {{ i18n "form_error"        | jsonify | safeJS }},
  error_fields: {{ i18n "form_error_fields" | jsonify | safeJS }}
};
</script>
{{ $js := resources.Get "js/main.js" }}
{{ if hugo.IsProduction }}{{ $js = $js | minify | fingerprint }}{{ end }}
<script src="{{ $js.RelPermalink }}"></script>
