From 32dbd38c94b63c5ae7a0b0ea8bd52588996cea15 Mon Sep 17 00:00:00 2001 From: ikouchiha47 Date: Wed, 29 Nov 2023 22:06:21 +0530 Subject: [PATCH 1/3] feat: adds feature to disable ga tracking --- _config.yml | 2 ++ _layouts/default.html | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index fb6e996934..8b10839005 100644 --- a/_config.yml +++ b/_config.yml @@ -14,6 +14,8 @@ linkedin_username: # Add your google-analytics ID here to activate google analytics google_analytics: UA-XXXXXXXXX-X # out your google-analytics code +# Opt out of tracking +disable_tracking: false # Build settings markdown: kramdown diff --git a/_layouts/default.html b/_layouts/default.html index 6fc9a457ee..cf14a0270e 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -14,7 +14,9 @@ {% include scripts.html %} - {% include google-analytics.html %} + {% unless site.disable_tracking %} + {% include google-analytics.html %} + {% endunless %} From 55ffed64adb9bd27a4bc5b0f35d6541e6f1ff3ae Mon Sep 17 00:00:00 2001 From: ikouchiha47 Date: Wed, 29 Nov 2023 22:06:48 +0530 Subject: [PATCH 2/3] Resolves StartBootstrap/startbootstrap-clean-blog-jekyll#350 feat: adds a way to add more styles to the page for jekyll plugin install --- _includes/head.html | 11 +++++++++++ _includes/overrides.styles.html | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 _includes/overrides.styles.html diff --git a/_includes/head.html b/_includes/head.html index 7848045415..1303620da7 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -10,6 +10,14 @@ + + + + {% if page.background && page.background != blank %} + + {% endif %} + @@ -19,4 +27,7 @@ + {% if site.layouts contains 'overrides.styles' %} + {% include overrides.styles.html %} + {% endif %} diff --git a/_includes/overrides.styles.html b/_includes/overrides.styles.html new file mode 100644 index 0000000000..df59e25591 --- /dev/null +++ b/_includes/overrides.styles.html @@ -0,0 +1,3 @@ + + + From 79ea27acc4ef6d143f92b434a6bfbd41fe6fe3cb Mon Sep 17 00:00:00 2001 From: ikouchiha47 Date: Thu, 30 Nov 2023 02:53:59 +0530 Subject: [PATCH 3/3] fix: url generation for meta tags --- _includes/head.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_includes/head.html b/_includes/head.html index 1303620da7..a5be42acda 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -13,9 +13,11 @@ + + {% if page.background && page.background != blank %} - + {% endif %}