Skip to content

Commit e45a99b

Browse files
Merge pull request #602 from srobo/sr2025/competition-links
Revert "Remove competition pages link from the homepage"
2 parents 49d1309 + d6f6cef commit e45a99b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

_config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ sponsors:
108108

109109
user_tracking: true
110110

111+
show_competition_status: true
112+
competition_status_previous_event: Virtual League
113+
111114
exclude:
112115
- README.md
113116
- Rakefile

_layouts/home.html

+9
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ <h4>Latest Post</h4>
2727
{{ latest_post.date | date: "%e %B, %Y" }}
2828
</div>
2929
</div>
30+
{% if site.show_competition_status %}
31+
<div class="content">
32+
<h4>Competition Status</h4>
33+
<a href="https://studentrobotics.org/comp/league">Leaderboard</a>
34+
<div class="content-details">
35+
after the {{ site.competition_status_previous_event }}
36+
</div>
37+
</div>
38+
{% endif %}
3039
<div class="content">
3140
{% assign next_event = site.events | where_exp: "event", "event.date > site.time"
3241
| where_exp: "event", "event.cancelled != true" | first %}

0 commit comments

Comments
 (0)