Skip to content

Improve sorting of cases #1799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ authors:
- José Valim
category: Elixir in Production
excerpt: A case study of how Elixir is being used at Discord.
flagship: true
logo: /images/cases/logos/discord.png
tags: real-time genstage otp
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ authors:
- José Valim
category: Elixir in Production
excerpt: A case study of how Elixir is being used at Change.org.
flagship: true
logo: /images/cases/logos/change.png
tags: social broadway
---
Expand Down
1 change: 1 addition & 0 deletions _posts/2025-01-21-remote-elixir-case.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ authors:
- Hugo Baraúna
category: Elixir in Production
excerpt: A case study of how Elixir is being used at Remote.
flagship: true
logo: /images/cases/logos/remote.png
tags: growth team web
---
Expand Down
20 changes: 19 additions & 1 deletion cases.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ <h1>Cases</h1>
<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>

<div class="cases-boxes">
{% assign sorted_posts = site.categories["Elixir in Production"] | sort: 'date' %}
{% assign sorted_posts = site.categories["Elixir in Production"] | sort: 'date' | reverse %}
{% for post in sorted_posts %}
{%- if post.flagship %}
<a class="cases-box" href="{{ post.url }}" title="Case: {{ post.title }}">
{% if post.logo == nil %}
<div class="cases-image" style="background-image: url('/images/cases/logos/default-image.png')"></div>
Expand All @@ -23,6 +24,23 @@ <h1>Cases</h1>
{% endfor %}
</div>
</a>
{%- endif -%}
{% endfor %}
{% for post in sorted_posts %}
{%- unless post.flagship %}
<a class="cases-box" href="{{ post.url }}" title="Case: {{ post.title }}">
{% if post.logo == nil %}
<div class="cases-image" style="background-image: url('/images/cases/logos/default-image.png')"></div>
{% else %}
<div class="cases-image" style="background-image: url('{{ post.logo }}')"></div>
{% endif %}
<div class="cases-tag">
{% for tag in post.tags %}
<span>#{{tag}}</span>
{% endfor %}
</div>
</a>
{%- endunless -%}
{% endfor %}
</div>

Expand Down