-
Notifications
You must be signed in to change notification settings - Fork 833
/
Copy pathcases.html
47 lines (43 loc) · 1.6 KB
/
cases.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
section: cases
layout: default
image: /images/social/elixir-og-card.jpg
---
<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' | 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(http://github.com/'/images/cases/logos/default-image.png')"></div>
{% else %}
<div class="cases-image" style="background-image: url(http://github.com/'{{%20post.logo%20}}')"></div>
{% endif %}
<div class="cases-tag">
{% for tag in post.tags %}
<span>#{{tag}}</span>
{% 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(http://github.com/'/images/cases/logos/default-image.png')"></div>
{% else %}
<div class="cases-image" style="background-image: url(http://github.com/'{{%20post.logo%20}}')"></div>
{% endif %}
<div class="cases-tag">
{% for tag in post.tags %}
<span>#{{tag}}</span>
{% endfor %}
</div>
</a>
{%- endunless -%}
{% endfor %}
</div>
<p></p>