diff --git a/_includes/env.html b/_includes/env.html deleted file mode 100644 index 245978b..0000000 --- a/_includes/env.html +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/_layouts/default.html b/_layouts/default.html index ba67055..f942cd8 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -16,7 +16,8 @@ desarrollo hay que evitar el archivo .env (copiarlo de .env.example si no existe. {% endcomment %} - {%- include_cached env.html -%} + + {% comment %} diff --git a/env.js b/env.js new file mode 100644 index 0000000..6210493 --- /dev/null +++ b/env.js @@ -0,0 +1,8 @@ +--- +--- + +window.env = { + AIRBRAKE_PROJECT_ID: {{ site.env.AIRBRAKE_PROJECT_ID | default: 0 }}, + AIRBRAKE_PROJECT_KEY: '{{ site.env.AIRBRAKE_PROJECT_KEY }}', + JEKYLL_ENV: '{{ site.env.JEKYLL_ENV }}' +}