From 935441cbf05869d0f38df7167add184add517fa6 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 26 Mar 2021 13:14:46 -0300 Subject: [PATCH] env externo --- _includes/env.html | 7 ------- _layouts/default.html | 3 ++- env.js | 8 ++++++++ 3 files changed, 10 insertions(+), 8 deletions(-) delete mode 100644 _includes/env.html create mode 100644 env.js 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 }}' +}