Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths:
- "assets/**"
- "_sass/**"
- "_scripts/**"
- "**.bib"
- "**.html"
- "**.js"
Expand Down Expand Up @@ -36,6 +37,7 @@ on:
paths:
- "assets/**"
- "_sass/**"
- "_scripts/**"
- "**.bib"
- "**.html"
- "**.js"
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
8 changes: 4 additions & 4 deletions _includes/distill_scripts.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@
<!-- Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<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 %}

{% if site.enable_cronitor_analytics %}
<!-- Cronitor RUM -->
<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 %}
{% if site.enable_pirsch_analytics %}
<script
Expand All @@ -212,7 +212,7 @@
></script>
{% endif %}
{% 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>
{% endif %}

Expand Down Expand Up @@ -240,7 +240,7 @@
></script>
{% endif %}
{% 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 %}
{% if page.images.slider %}
<script
Expand Down
8 changes: 4 additions & 4 deletions _includes/scripts.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@

gtag('config', '{{ 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 %}

{% if site.enable_cronitor_analytics %}
<!-- Cronitor RUM -->
<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 %}
{% if site.enable_pirsch_analytics %}
<script
Expand All @@ -253,7 +253,7 @@
></script>
{% endif %}
{% 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>
{% endif %}

Expand Down Expand Up @@ -281,7 +281,7 @@
></script>
{% endif %}
{% 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 %}
{% if page.images.slider %}
<script
Expand Down
2 changes: 1 addition & 1 deletion _layouts/bib.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@

{%- if forloop.length > 1 -%}
{% if forloop.first == false -%}
{%- if forloop.length > 2 %}, {% elsif forloop.length == 2 %} {% endif %}
{%- if forloop.length > 2 %}, {% elsif forloop.length == 2 %} {% endif %}
{%- endif %}
{%- if forloop.last and author_array_limit == author_array_size %}and {% endif -%}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
permalink: /assets/js/cronitor-analytics-setup.js
---
window.cronitor =
window.cronitor ||
function () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
permalink: /assets/js/google-analytics-setup.js
---
window.dataLayer = window.dataLayer || [];
function gtag() {
window.dataLayer.push(arguments);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
permalink: /assets/js/open-panel-analytics-setup.js
---
window.op =
window.op ||
function (...args) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
permalink: /assets/js/photoswipe-setup.js
---
import PhotoSwipeLightbox from "{{ site.third_party_libraries.photoswipe-lightbox.url.js }}";
import PhotoSwipe from "{{ site.third_party_libraries.photoswipe.url.js }}";
const photoswipe = new PhotoSwipeLightbox({
Expand Down