Skip to content

Commit 37ad6ad

Browse files
committed
Merge remote-tracking branch 'origin/main' into sr2024
2 parents dcf378d + 3f43c4b commit 37ad6ad

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

.github/workflows/validate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Validate
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request: {}
88

99
jobs:
@@ -14,7 +14,7 @@ jobs:
1414
# See https://github.com/ruby/setup-ruby/issues/291
1515
GLOBAL_GEMS: 1
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818
with:
1919
submodules: recursive
2020

@@ -31,7 +31,7 @@ jobs:
3131
docker:
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v4
3535

3636
- name: Build container
3737
run: docker-compose build

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)