-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding image component so the same logic is applied everywhere
- Loading branch information
1 parent
ff8c09e
commit 46f9ef6
Showing
3 changed files
with
14 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{%- if include.logo %} | ||
<img src="/assets/{{ include.logo }}" alt=""> | ||
{%- else %} | ||
<img src="/assets/sponsors/empty.svg" alt=""> | ||
{%- endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<ul class="cards-list"> | ||
{%- for sp in site.data.sponsor_logos_l %} | ||
<li class="sponsor-card"> | ||
<a href="{{ sp.url }}" class="name" rel="sponsored nofollow">{{ sp.name }}</a> | ||
<img src="/assets/{{ sp.logo }}" alt="Logo of {{sp.name}}"> | ||
<span class="last-payment" title="Last payment">{{ sp.last_payment }} per month since {{ sp.since }}</span> | ||
<span class="all-time" title="All-time total">{{ sp.all_time }}</span> | ||
</li> | ||
<li class="sponsor-card"> | ||
<a href="{{ sp.url }}" class="name" rel="sponsored nofollow">{{ sp.name }}</a> | ||
{% include components/sponsor-image.html logo=sp.logo %} | ||
<span class="last-payment" title="Last payment">{{ sp.last_payment }} per month since {{ sp.since }}</span> | ||
<span class="all-time" title="All-time total">{{ sp.all_time }}</span> | ||
</li> | ||
{%- endfor %} | ||
</ul> | ||
</ul> |