From 35928cd92f4ed21e1da34edeb2b803f0adb07d9a Mon Sep 17 00:00:00 2001 From: Danielle Honigstein Date: Wed, 7 Feb 2024 16:21:13 +0200 Subject: [PATCH] fix: google analytics based on this: https://github.com/mmistakes/so-simple-theme/issues/423 --- docs/_includes/google-analytics.html | 2 +- docs/_includes/scripts.html | 55 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 docs/_includes/scripts.html diff --git a/docs/_includes/google-analytics.html b/docs/_includes/google-analytics.html index 5794cd9..0230f68 100644 --- a/docs/_includes/google-analytics.html +++ b/docs/_includes/google-analytics.html @@ -1,5 +1,5 @@ - + +{%- endfor -%} +{%- else -%} + + + +{%- endif -%} + +{%- if jekyll.environment == 'production' and site.google_analytics -%} +{% include google-analytics.html %} +{%- endif %} + +{% if site.mathjax == true or site.mathjax.enable == true %} + +{% capture mathjaxjs %}https://cdn.jsdelivr.net/npm/mathjax@3/es5/{{ site.mathjax.combo | default: "tex-svg" }}.js{% +endcapture %} + + + +{% endif %} + +{%- if page.layout == "search" -%} +{% include lunr-search-scripts.html %} +{%- endif -%} \ No newline at end of file