Fixed liquid variables in some js files (#3117)
Fixes #3095 --------- Signed-off-by: George Araújo <george.gcac@gmail.com>
This commit is contained in:
parent
fea4b7c550
commit
351dcb985e
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@ -8,6 +8,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- "assets/**"
|
- "assets/**"
|
||||||
- "_sass/**"
|
- "_sass/**"
|
||||||
|
- "_scripts/**"
|
||||||
- "**.bib"
|
- "**.bib"
|
||||||
- "**.html"
|
- "**.html"
|
||||||
- "**.js"
|
- "**.js"
|
||||||
@ -36,6 +37,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- "assets/**"
|
- "assets/**"
|
||||||
- "_sass/**"
|
- "_sass/**"
|
||||||
|
- "_scripts/**"
|
||||||
- "**.bib"
|
- "**.bib"
|
||||||
- "**.html"
|
- "**.html"
|
||||||
- "**.js"
|
- "**.js"
|
||||||
|
|||||||
@ -9,4 +9,4 @@ lighthouse_results/**
|
|||||||
_posts/2015-10-20-math.md
|
_posts/2015-10-20-math.md
|
||||||
_sass/font-awesome/*.scss
|
_sass/font-awesome/*.scss
|
||||||
_sass/tabler-icons/*.scss
|
_sass/tabler-icons/*.scss
|
||||||
_scripts/search.liquid.js
|
_scripts/*
|
||||||
|
|||||||
@ -195,13 +195,13 @@
|
|||||||
<!-- Analytics -->
|
<!-- Analytics -->
|
||||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
||||||
<script defer src="{{ '/assets/js/google-analytics-setup.js' | relative_url | bust_file_cache }}"></script>
|
<script defer src="{{ '/assets/js/google-analytics-setup.js' | relative_url }}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.enable_cronitor_analytics %}
|
{% if site.enable_cronitor_analytics %}
|
||||||
<!-- Cronitor RUM -->
|
<!-- Cronitor RUM -->
|
||||||
<script async src="https://rum.cronitor.io/script.js"></script>
|
<script async src="https://rum.cronitor.io/script.js"></script>
|
||||||
<script defer src="{{ '/assets/js/cronitor-analytics-setup.js' | relative_url | bust_file_cache }}"></script>
|
<script defer src="{{ '/assets/js/cronitor-analytics-setup.js' | relative_url }}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if site.enable_pirsch_analytics %}
|
{% if site.enable_pirsch_analytics %}
|
||||||
<script
|
<script
|
||||||
@ -212,7 +212,7 @@
|
|||||||
></script>
|
></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if site.enable_openpanel_analytics %}
|
{% if site.enable_openpanel_analytics %}
|
||||||
<script defer src="{{ '/assets/js/open-panel-analytics-setup.js' | relative_url | bust_file_cache }}"></script>
|
<script defer src="{{ '/assets/js/open-panel-analytics-setup.js' | relative_url }}"></script>
|
||||||
<script async defer src="https://openpanel.dev/op1.js"></script>
|
<script async defer src="https://openpanel.dev/op1.js"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@ -240,7 +240,7 @@
|
|||||||
></script>
|
></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.images.photoswipe %}
|
{% if page.images.photoswipe %}
|
||||||
<script defer src="{{ '/assets/js/photoswipe-setup.js' | relative_url | bust_file_cache }}" type="module"></script>
|
<script defer src="{{ '/assets/js/photoswipe-setup.js' | relative_url }}" type="module"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.images.slider %}
|
{% if page.images.slider %}
|
||||||
<script
|
<script
|
||||||
|
|||||||
@ -236,13 +236,13 @@
|
|||||||
|
|
||||||
gtag('config', '{{ site.google_analytics }}');
|
gtag('config', '{{ site.google_analytics }}');
|
||||||
</script>
|
</script>
|
||||||
<script defer src="{{ '/assets/js/google-analytics-setup.js' | relative_url | bust_file_cache }}"></script>
|
<script defer src="{{ '/assets/js/google-analytics-setup.js' | relative_url }}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.enable_cronitor_analytics %}
|
{% if site.enable_cronitor_analytics %}
|
||||||
<!-- Cronitor RUM -->
|
<!-- Cronitor RUM -->
|
||||||
<script async src="https://rum.cronitor.io/script.js"></script>
|
<script async src="https://rum.cronitor.io/script.js"></script>
|
||||||
<script defer src="{{ '/assets/js/cronitor-analytics-setup.js' | relative_url | bust_file_cache }}"></script>
|
<script defer src="{{ '/assets/js/cronitor-analytics-setup.js' | relative_url }}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if site.enable_pirsch_analytics %}
|
{% if site.enable_pirsch_analytics %}
|
||||||
<script
|
<script
|
||||||
@ -253,7 +253,7 @@
|
|||||||
></script>
|
></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if site.enable_openpanel_analytics %}
|
{% if site.enable_openpanel_analytics %}
|
||||||
<script defer src="{{ '/assets/js/open-panel-analytics-setup.js' | relative_url | bust_file_cache }}"></script>
|
<script defer src="{{ '/assets/js/open-panel-analytics-setup.js' | relative_url }}"></script>
|
||||||
<script async defer src="https://openpanel.dev/op1.js"></script>
|
<script async defer src="https://openpanel.dev/op1.js"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@ -281,7 +281,7 @@
|
|||||||
></script>
|
></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.images.photoswipe %}
|
{% if page.images.photoswipe %}
|
||||||
<script defer src="{{ '/assets/js/photoswipe-setup.js' | relative_url | bust_file_cache }}" type="module"></script>
|
<script defer src="{{ '/assets/js/photoswipe-setup.js' | relative_url }}" type="module"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.images.slider %}
|
{% if page.images.slider %}
|
||||||
<script
|
<script
|
||||||
|
|||||||
@ -1,3 +1,6 @@
|
|||||||
|
---
|
||||||
|
permalink: /assets/js/cronitor-analytics-setup.js
|
||||||
|
---
|
||||||
window.cronitor =
|
window.cronitor =
|
||||||
window.cronitor ||
|
window.cronitor ||
|
||||||
function () {
|
function () {
|
||||||
@ -1,3 +1,6 @@
|
|||||||
|
---
|
||||||
|
permalink: /assets/js/google-analytics-setup.js
|
||||||
|
---
|
||||||
window.dataLayer = window.dataLayer || [];
|
window.dataLayer = window.dataLayer || [];
|
||||||
function gtag() {
|
function gtag() {
|
||||||
window.dataLayer.push(arguments);
|
window.dataLayer.push(arguments);
|
||||||
@ -1,3 +1,6 @@
|
|||||||
|
---
|
||||||
|
permalink: /assets/js/open-panel-analytics-setup.js
|
||||||
|
---
|
||||||
window.op =
|
window.op =
|
||||||
window.op ||
|
window.op ||
|
||||||
function (...args) {
|
function (...args) {
|
||||||
@ -1,3 +1,6 @@
|
|||||||
|
---
|
||||||
|
permalink: /assets/js/photoswipe-setup.js
|
||||||
|
---
|
||||||
import PhotoSwipeLightbox from "{{ site.third_party_libraries.photoswipe-lightbox.url.js }}";
|
import PhotoSwipeLightbox from "{{ site.third_party_libraries.photoswipe-lightbox.url.js }}";
|
||||||
import PhotoSwipe from "{{ site.third_party_libraries.photoswipe.url.js }}";
|
import PhotoSwipe from "{{ site.third_party_libraries.photoswipe.url.js }}";
|
||||||
const photoswipe = new PhotoSwipeLightbox({
|
const photoswipe = new PhotoSwipeLightbox({
|
||||||
Loading…
Reference in New Issue
Block a user