Skip to content

Commit 3d0f29a

Browse files
authored
Improve sorting of cases (#1799)
- Add flagship boolean which will pin a case to the top of cases - Sort all cases (including flagships) by date, most recent first - Added suggested cases: Discord, Change.org and Remote
1 parent 740b0b4 commit 3d0f29a

4 files changed

+22
-1
lines changed

Diff for: _posts/2020-10-08-real-time-communication-at-scale-with-elixir-at-discord.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ authors:
55
- José Valim
66
category: Elixir in Production
77
excerpt: A case study of how Elixir is being used at Discord.
8+
flagship: true
89
logo: /images/cases/logos/discord.png
910
tags: real-time genstage otp
1011
---

Diff for: _posts/2020-10-27-delivering-social-change-with-elixir-at-change.org.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ authors:
55
- José Valim
66
category: Elixir in Production
77
excerpt: A case study of how Elixir is being used at Change.org.
8+
flagship: true
89
logo: /images/cases/logos/change.png
910
tags: social broadway
1011
---

Diff for: _posts/2025-01-21-remote-elixir-case.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ authors:
55
- Hugo Baraúna
66
category: Elixir in Production
77
excerpt: A case study of how Elixir is being used at Remote.
8+
flagship: true
89
logo: /images/cases/logos/remote.png
910
tags: growth team web
1011
---

Diff for: cases.html

+19-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ <h1>Cases</h1>
99
<p>Click on the cases below to learn more about how companies across different industries are using the power of Elixir and its ecosystem to create and grow their businesses. Cases are listed in the order they have been published.</p>
1010

1111
<div class="cases-boxes">
12-
{% assign sorted_posts = site.categories["Elixir in Production"] | sort: 'date' %}
12+
{% assign sorted_posts = site.categories["Elixir in Production"] | sort: 'date' | reverse %}
1313
{% for post in sorted_posts %}
14+
{%- if post.flagship %}
1415
<a class="cases-box" href="{{ post.url }}" title="Case: {{ post.title }}">
1516
{% if post.logo == nil %}
1617
<div class="cases-image" style="background-image: url('/images/cases/logos/default-image.png')"></div>
@@ -23,6 +24,23 @@ <h1>Cases</h1>
2324
{% endfor %}
2425
</div>
2526
</a>
27+
{%- endif -%}
28+
{% endfor %}
29+
{% for post in sorted_posts %}
30+
{%- unless post.flagship %}
31+
<a class="cases-box" href="{{ post.url }}" title="Case: {{ post.title }}">
32+
{% if post.logo == nil %}
33+
<div class="cases-image" style="background-image: url('/images/cases/logos/default-image.png')"></div>
34+
{% else %}
35+
<div class="cases-image" style="background-image: url('{{ post.logo }}')"></div>
36+
{% endif %}
37+
<div class="cases-tag">
38+
{% for tag in post.tags %}
39+
<span>#{{tag}}</span>
40+
{% endfor %}
41+
</div>
42+
</a>
43+
{%- endunless -%}
2644
{% endfor %}
2745
</div>
2846

0 commit comments

Comments
 (0)