6
6
# thumbnail:
7
7
permalink: /posts/sponsors/
8
8
---
9
+
10
+ {% assign platinum_sponsors = site.data.sponsors | where: "type", "platinum" %}
11
+ {% assign gold_sponsors = site.data.sponsors | where: "type", "gold" %}
12
+ {% assign silver_sponsors = site.data.sponsors | where: "type", "silver" %}
13
+ {% assign bronze_sponsors = site.data.sponsors | where: "type", "bronze" %}
14
+ {% assign inkind_sponsors = site.data.sponsors | where: "type", "inkind" %}
15
+ {% assign individual_sponsors = site.data.sponsors | where: "type", "individual" %}
16
+
9
17
< p >
10
18
DojoCon Japan 2023は、スポンサー企業のご協力により開催されています。協賛くださいました、企業のみなさまありがとうございます。
11
19
</ p >
12
- {% if site.data.sponsor.platinum and site.data.sponsor.platinum.size != 0 %}
20
+ {% if platinum_sponsors != empty %}
13
21
< div id ="platinum-sponsors " class ="sponsors-container ">
14
22
< h3 > Platinum Sponsor</ h3 >
15
23
< ul >
16
- {% for sponsor in site.data.sponsor.platinum %}
24
+ {% for sponsor in platinum_sponsors %}
17
25
< li id ="{{ sponsor.id }} ">
18
26
< a href ="{{ sponsor.link }} " target ="_blank ">
19
27
< img src ="/img/{{ site.year }}/sponsor/{{ sponsor.logo }} " alt ="{{ sponsor.name }} " />
@@ -26,11 +34,11 @@ <h3>Platinum Sponsor</h3>
26
34
</ div >
27
35
{% endif %}
28
36
29
- {% if site.data.sponsor.gold and site.data.sponsor.gold.size != 0 %}
37
+ {% if gold_sponsors != empty %}
30
38
< div id ="gold-sponsors " class ="sponsors-container ">
31
39
< h3 > Gold Sponsor</ h3 >
32
40
< ul >
33
- {% for sponsor in site.data.sponsor.gold %}
41
+ {% for sponsor in gold_sponsors %}
34
42
< li id ="{{ sponsor.id }} ">
35
43
< a href ="{{ sponsor.link }} " target ="_blank ">
36
44
< img src ="/img/{{ site.year }}/sponsor/{{ sponsor.logo }} " alt ="{{ sponsor.name }} " />
@@ -43,11 +51,11 @@ <h3>Gold Sponsor</h3>
43
51
</ div >
44
52
{% endif %}
45
53
46
- {% if site.data.sponsor.silver and site.data.sponsor.silver.size != 0 %}
54
+ {% if silver_sponsors != empty %}
47
55
< div id ="silver-sponsors " class ="sponsors-container ">
48
56
< h3 > Sliver Sponsor</ h3 >
49
57
< ul >
50
- {% for sponsor in site.data.sponsor.silver %}
58
+ {% for sponsor in silver_sponsors %}
51
59
< li id ="{{ sponsor.id }} ">
52
60
< a href ="{{ sponsor.link }} " target ="_blank ">
53
61
< img src ="/img/{{ site.year }}/sponsor/{{ sponsor.logo }} " alt ="{{ sponsor.name }} " />
@@ -60,11 +68,11 @@ <h3>Sliver Sponsor</h3>
60
68
</ div >
61
69
{% endif %}
62
70
63
- {% if site.data.sponsor.bronze and site.data.sponsor.bronze.size != 0 %}
71
+ {% if bronze_sponsors != empty %}
64
72
< div id ="bronze-sponsors " class ="sponsors-container ">
65
73
< h3 > Bronze Sponsor</ h3 >
66
74
< ul >
67
- {% for sponsor in site.data.sponsor.bronze %}
75
+ {% for sponsor in bronze_sponsors %}
68
76
< li id ="{{ sponsor.id }} ">
69
77
< a href ="{{ sponsor.link }} " target ="_blank ">
70
78
< img src ="/img/{{ site.year }}/sponsor/{{ sponsor.logo }} " alt ="{{ sponsor.name }} " />
0 commit comments