Skip to content

Commit c14379b

Browse files
committed
Merge branch 'optional-user-tracking'
2 parents fcf5a6b + f1edb2a commit c14379b

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ end
3535
task :submodules => ['_sass/brand/.git']
3636

3737
task :dev => [:dependencies, :submodules] do
38-
sh('bundle exec jekyll serve --host 0.0.0.0 --drafts --config _config.yml')
38+
sh('bundle exec jekyll serve --host 0.0.0.0 --drafts --config _config.yml,_dev.yml')
3939
end
4040

4141
task :build => [:dependencies, :submodules] do

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ social:
5252
icon: tiktok
5353
link: https://www.tiktok.com/@studentrobotics
5454

55+
user_tracking: true
56+
5557
exclude:
5658
- README.md
5759
- Rakefile

_dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
user_tracking: false

_includes/script.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
{% endfor %}
1111
{% endif %}
1212

13-
<script defer data-domain="studentrobotics.org" src="https://plausible.io/js/plausible.js"></script>
13+
{% if site.user_tracking %}
14+
<script defer data-domain="studentrobotics.org" src="https://plausible.io/js/plausible.js"></script>
15+
{% endif %}
1416
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
1517

1618
<script src="{{ '/js/navigation.js' | prepend: site.baseurl }}"></script>

0 commit comments

Comments
 (0)