From 351dcb985e8ad1361f0b9e93ab2093a02cb3ecec Mon Sep 17 00:00:00 2001 From: George <31376482+george-gca@users.noreply.github.com> Date: Wed, 9 Apr 2025 11:36:16 -0300 Subject: [PATCH] Fixed liquid variables in some js files (#3117) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #3095 --------- Signed-off-by: George Araújo --- .github/workflows/deploy.yml | 2 ++ .prettierignore | 2 +- _includes/distill_scripts.liquid | 8 ++++---- _includes/scripts.liquid | 8 ++++---- _layouts/bib.liquid | 2 +- {assets/js => _scripts}/cronitor-analytics-setup.js | 3 +++ {assets/js => _scripts}/google-analytics-setup.js | 3 +++ {assets/js => _scripts}/open-panel-analytics-setup.js | 3 +++ {assets/js => _scripts}/photoswipe-setup.js | 3 +++ 9 files changed, 24 insertions(+), 10 deletions(-) rename {assets/js => _scripts}/cronitor-analytics-setup.js (77%) rename {assets/js => _scripts}/google-analytics-setup.js (75%) rename {assets/js => _scripts}/open-panel-analytics-setup.js (80%) rename {assets/js => _scripts}/photoswipe-setup.js (86%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7046747..5fb7e8a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,7 @@ on: paths: - "assets/**" - "_sass/**" + - "_scripts/**" - "**.bib" - "**.html" - "**.js" @@ -36,6 +37,7 @@ on: paths: - "assets/**" - "_sass/**" + - "_scripts/**" - "**.bib" - "**.html" - "**.js" diff --git a/.prettierignore b/.prettierignore index 2929bf4..b276dd9 100644 --- a/.prettierignore +++ b/.prettierignore @@ -9,4 +9,4 @@ lighthouse_results/** _posts/2015-10-20-math.md _sass/font-awesome/*.scss _sass/tabler-icons/*.scss -_scripts/search.liquid.js +_scripts/* diff --git a/_includes/distill_scripts.liquid b/_includes/distill_scripts.liquid index 8d6a63c..12d365d 100644 --- a/_includes/distill_scripts.liquid +++ b/_includes/distill_scripts.liquid @@ -195,13 +195,13 @@ - + {% endif %} {% if site.enable_cronitor_analytics %} - + {% endif %} {% if site.enable_pirsch_analytics %} {% endif %} {% if site.enable_openpanel_analytics %} - + {% endif %} @@ -240,7 +240,7 @@ > {% endif %} {% if page.images.photoswipe %} - + {% endif %} {% if page.images.slider %} + {% endif %} {% if site.enable_cronitor_analytics %} - + {% endif %} {% if site.enable_pirsch_analytics %} {% endif %} {% if site.enable_openpanel_analytics %} - + {% endif %} @@ -281,7 +281,7 @@ > {% endif %} {% if page.images.photoswipe %} - + {% endif %} {% if page.images.slider %}