Skip to content

Commit fe92d80

Browse files
committed
Fix sponsors url
1 parent a935ef6 commit fe92d80

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/_partials/sponsors.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ <h2 id="sponsors_platinum">Platinum Sponsors</h2>
44
<div class="grid grid-cols-2 lg:grid-cols-4 gap-4 mb-8">
55
{% for sponsor in sponsors['Platinum'] %}
66
<div title="{{ sponsor.name }}">
7-
<a href="{{ sponsor.website }}"
7+
<a href="{{ sponsor.website ?? sponsor.profile }}"
88
class="block no-underline" target="_blank" rel="noopener noreferrer">
99
<div class="mb-2 p-2">
1010
<img class="h-32 rounded w-full object-contain object-center"
1111
src="{{ sponsor.image }}" alt="{{ sponsor.name }}"/>
1212
</div>
1313
<div class="overflow-hidden overflow-ellipsis whitespace-nowrap text-gray-900 font-medium mb-4 text-center">
14-
<a class="no-underline text-inherit" href="{{ sponsor.website }}">{{ sponsor.name }}</a>
14+
<a class="no-underline text-inherit" href="{{ sponsor.website ?? sponsor.profile }}">{{ sponsor.name }}</a>
1515
</div>
1616
</a>
1717
</div>
@@ -24,14 +24,14 @@ <h2 id="sponsors_gold">Gold Sponsors</h2>
2424
<div class="grid grid-cols-2 lg:grid-cols-5 gap-4 text-base mb-8">
2525
{% for sponsor in sponsors['Gold'] %}
2626
<div title="{{ sponsor.name }}">
27-
<a href="{{ sponsor.website }}"
27+
<a href="{{ sponsor.website ?? sponsor.profile }}"
2828
class="block no-underline" target="_blank" rel="noopener noreferrer">
2929
<div class="mb-2 p-2">
3030
<img class="h-24 rounded w-full object-contain object-center"
3131
src="{{ sponsor.image }}" alt="{{ sponsor.name }}"/>
3232
</div>
3333
<div class="overflow-hidden overflow-ellipsis whitespace-nowrap text-gray-900 font-medium mb-4 text-center">
34-
<a class="no-underline text-inherit" href="{{ sponsor.website }}">{{ sponsor.name }}</a>
34+
<a class="no-underline text-inherit" href="{{ sponsor.website ?? sponsor.profile }}">{{ sponsor.name }}</a>
3535
</div>
3636
</a>
3737
</div>
@@ -44,14 +44,14 @@ <h2 id="sponsors_silver">Silver Sponsors</h2>
4444
<div class="grid grid-cols-3 lg:grid-cols-6 gap-4 text-base mb-8">
4545
{% for sponsor in sponsors['Silver'] | filter(sponsor => sponsor.name) %}
4646
<div title="{{ sponsor.name }}">
47-
<a href="{{ sponsor.website }}"
47+
<a href="{{ sponsor.website ?? sponsor.profile }}"
4848
class="block no-underline" target="_blank" rel="noopener noreferrer">
4949
<div class="mb-2 p-2">
5050
<img class="h-20 rounded w-full object-contain object-center"
5151
src="{{ sponsor.image }}" alt="{{ sponsor.name }}"/>
5252
</div>
5353
<div class="overflow-hidden overflow-ellipsis whitespace-nowrap text-gray-900 font-medium mb-4 text-center">
54-
<a class="no-underline text-inherit" href="{{ sponsor.website }}">{{ sponsor.name }}</a>
54+
<a class="no-underline text-inherit" href="{{ sponsor.website ?? sponsor.profile }}">{{ sponsor.name }}</a>
5555
</div>
5656
</a>
5757
</div>
@@ -62,6 +62,6 @@ <h2 id="sponsors_silver">Silver Sponsors</h2>
6262
<h3 id="past_sponsors">Past Sponsors</h3>
6363
<div class="text-base mb-8">
6464
{{ sponsors['Past'] | map((sponsor) =>
65-
"<a class=\"no-underline text-inherit\" href=\"#{sponsor.website}\">#{sponsor.name}</a>")
65+
"<a class=\"no-underline text-inherit\" href=\"#{sponsor.website ?? sponsor.profile}\">#{sponsor.name}</a>")
6666
| join(', ') | raw }}.
6767
</div>

0 commit comments

Comments
 (0)