Skip to content

Commit a84a698

Browse files
mrleeioclaude
andcommitted
fix(companies): correct sponsor filtering logic for table display
- Update sponsor filter to explicitly check for 'gold' or 'silver' values - Update non-sponsor filter to exclude 'gold' and 'silver' values - Prevents empty string issues from incorrectly categorizing companies 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 20c4ee3 commit a84a698

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

companies.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h2 class="text-center fw-semibold">Companies Hiring Ruby Developers in Vancouve
2121
</div>
2222

2323
<!-- Sponsor Companies Table -->
24-
{% assign sponsors = site.data.companies | where_exp: "company", "company.sponsor_tier != ''" %}
24+
{% assign sponsors = site.data.companies | where_exp: "company", "company.sponsor_tier == 'gold' or company.sponsor_tier == 'silver'" %}
2525
{% if sponsors.size > 0 %}
2626
<div class="mb-5 mt-5">
2727
<h3 class="mb-3">
@@ -69,7 +69,7 @@ <h3 class="mb-3">
6969
{% endif %}
7070

7171
<!-- All Other Companies Table -->
72-
{% assign non_sponsors = site.data.companies | where_exp: "company", "company.sponsor_tier == ''" %}
72+
{% assign non_sponsors = site.data.companies | where_exp: "company", "company.sponsor_tier != 'gold' and company.sponsor_tier != 'silver'" %}
7373
<div class="mb-4 mt-5">
7474
<h3 class="mb-3">
7575
Other Ruby Employers

0 commit comments

Comments
 (0)