Skip to content

Commit 5c52e97

Browse files
mrleeioclaude
andcommitted
fix(companies): resolve Liquid syntax error in sponsor filtering
- Replace where_exp with OR logic using concat for sponsors - Use loop with unless for non-sponsors filtering - Fixes build error: "Expected end_of_string but found id" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1a90319 commit 5c52e97

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

companies.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ <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 == 'gold' or company.sponsor_tier == 'silver'" %}
24+
{% assign gold_sponsors = site.data.companies | where: "sponsor_tier", "gold" %}
25+
{% assign silver_sponsors = site.data.companies | where: "sponsor_tier", "silver" %}
26+
{% assign sponsors = gold_sponsors | concat: silver_sponsors %}
2527
{% if sponsors.size > 0 %}
2628
<div class="mb-5 mt-5">
2729
<h3 class="mb-3">
@@ -69,7 +71,12 @@ <h3 class="mb-3">
6971
{% endif %}
7072

7173
<!-- All Other Companies Table -->
72-
{% assign non_sponsors = site.data.companies | where_exp: "company", "company.sponsor_tier != 'gold' and company.sponsor_tier != 'silver'" %}
74+
{% assign non_sponsors = "" | split: "" %}
75+
{% for company in site.data.companies %}
76+
{% unless company.sponsor_tier == 'gold' or company.sponsor_tier == 'silver' %}
77+
{% assign non_sponsors = non_sponsors | push: company %}
78+
{% endunless %}
79+
{% endfor %}
7380
<div class="mb-4 mt-5">
7481
<h3 class="mb-3">
7582
Other Ruby Employers

0 commit comments

Comments
 (0)