|
8 | 8 | <br>
|
9 | 9 | ---
|
10 | 10 |
|
11 |
| -<!-- I'll make a nice function for this eventually --> |
12 | 11 | <style>
|
13 | 12 | img {
|
14 | 13 | display: block;
|
|
17 | 16 | }
|
18 | 17 | </style>
|
19 | 18 |
|
| 19 | +{% assign tiers = "Diamond, Platinum, Gold, Silver, Educational" | split: ', ' %} |
| 20 | +{% for tier in tiers%} |
20 | 21 | <div class="row" style="text-align: center">
|
21 |
| - <h2 style="text-align:center">Diamond</h2> |
| 22 | + <h2 style="text-align:center">{{tier}}</h2> |
22 | 23 | <br />
|
23 |
| - {% for sponsor in site.data.sponsors %} {% if sponsor.tier == 'Diamond' %} {% |
24 |
| - assign link = sponsor.link %} |
25 |
| - <div |
26 |
| - class="col-lg-2 col-md-4 col-sm-3 col-xs-6" |
27 |
| - style="display: inline-block;float: none;" |
28 |
| - > |
29 |
| - <a href="{{ link }}" target="_blank"> |
30 |
| - <img |
31 |
| - style="text-align:center" |
32 |
| - class="ritsec-thumbnail img-responsive" |
33 |
| - src="assets/images/sponsorLogos/{{ sponsor.image }}" |
34 |
| - alt="{{ sponsor.name }}" |
35 |
| - /> |
36 |
| - </a> |
37 |
| - </div> |
38 |
| - {% endif %} {% endfor %} |
39 |
| -</div> |
| 24 | + {% assign count = 0 %} |
| 25 | + {% for sponsor in site.data.sponsors %} |
| 26 | + {% if {{sponsor.tier}} == {{tier}} %} |
| 27 | + |
| 28 | + {% assign link = sponsor.link %} |
| 29 | + {% assign remainder = {{count}} | modulo: 3 %} |
| 30 | + {% if remainder == 0 and count > 0 %} |
| 31 | + <br> |
| 32 | + {%endif%} |
| 33 | + {% assign count = count | plus: 1 %} |
| 34 | + <div |
| 35 | + class="col-lg-2 col-md-4 col-sm-3 col-xs-6" |
| 36 | + style="display: inline-block;float: none;" |
| 37 | + > |
| 38 | + <a href="{{ link }}" target="_blank"> |
| 39 | + {% if sponsor.name == "Expel" or sponsor.name == "Security Risk Advisors" or sponsor.name |
| 40 | + == "Indeed" %} |
| 41 | + <img |
| 42 | + style="text-align:center; position: relative; top: -50px" |
| 43 | + class="ritsec-thumbnail img-responsive" |
| 44 | + src="assets/images/sponsorLogos/{{ sponsor.image }}" |
| 45 | + alt="{{ sponsor.name }}" |
| 46 | + /> |
| 47 | + {% elsif sponsor.name == "MITRE" %} |
40 | 48 |
|
41 |
| -<div class="row" style="text-align: center"> |
42 |
| - <h2 style="text-align:center">Platinum</h2> |
43 |
| - <br /> |
44 |
| - {% for sponsor in site.data.sponsors %} {% if sponsor.tier == 'Platinum' %} {% |
45 |
| - assign link = sponsor.link %} |
46 |
| - <div |
47 |
| - class="col-lg-2 col-md-4 col-sm-3 col-xs-6" |
48 |
| - style="display: inline-block;float: none;" |
49 |
| - > |
50 |
| - <a href="{{ link }}" target="_blank"> |
51 |
| - <img |
52 |
| - style="text-align:center" |
53 |
| - class="ritsec-thumbnail img-responsive" |
54 |
| - src="assets/images/sponsorLogos/{{ sponsor.image }}" |
55 |
| - alt="{{ sponsor.name }}" |
56 |
| - /> |
57 |
| - </a> |
58 |
| - </div> |
59 |
| - {% endif %} {% endfor %} |
60 |
| -</div> |
61 |
| - |
62 |
| -<div class="row" style="text-align: center"> |
63 |
| - <h2 style="text-align:center">Gold</h2> |
64 |
| - <br /> |
65 |
| - {% for sponsor in site.data.sponsors %} {% if sponsor.tier == 'Gold' %} {% |
66 |
| - assign link = sponsor.link %} |
67 |
| - <div |
68 |
| - class="col-lg-2 col-md-4 col-sm-3 col-xs-6" |
69 |
| - style="display: inline-block;float: none;" |
70 |
| - > |
71 |
| - <a href="{{ link }}" target="_blank"> |
72 |
| - {% if sponsor.name == "Expel" or sponsor.name == "Security Risk Advisors" |
73 |
| - %} |
74 |
| - |
75 |
| - <img |
76 |
| - style="text-align:center; position: relative; top: -40px" |
77 |
| - class="ritsec-thumbnail img-responsive" |
78 |
| - src="assets/images/sponsorLogos/{{ sponsor.image }}" |
79 |
| - alt="{{ sponsor.name }}" |
80 |
| - /> |
81 |
| - {% else %} |
82 |
| - <img |
83 |
| - style="text-align:center" |
84 |
| - class="ritsec-thumbnail img-responsive" |
85 |
| - src="assets/images/sponsorLogos/{{ sponsor.image }}" |
86 |
| - alt="{{ sponsor.name }}" |
87 |
| - /> |
88 |
| - {% endif %} |
89 |
| - </a> |
90 |
| - </div> |
91 |
| - {% endif %} {% endfor %} |
92 |
| -</div> |
| 49 | + <img |
| 50 | + style="text-align:center; position: relative; top: -35px" |
| 51 | + class="ritsec-thumbnail img-responsive" |
| 52 | + src="assets/images/sponsorLogos/{{ sponsor.image }}" |
| 53 | + alt="{{ sponsor.name }}" |
| 54 | +/> |
| 55 | +{% elsif sponsor.name == "Caetra.io" %} |
93 | 56 |
|
94 |
| -<div class="row" style="text-align: center"> |
95 |
| - <h2 style="text-align:center">Silver</h2> |
96 |
| - <br /> |
97 |
| - {% for sponsor in site.data.sponsors %} {% if sponsor.tier == 'Silver' %} {% |
98 |
| - assign link = sponsor.link %} |
99 |
| - <div |
100 |
| - class="col-lg-2 col-md-4 col-sm-3 col-xs-6" |
101 |
| - style="display: inline-block;float: none;" |
102 |
| - > |
103 |
| - <a href="{{ link }}" target="_blank"> |
104 |
| - <img |
105 |
| - class="ritsec-thumbnail img-responsive center-block" |
106 |
| - src="assets/images/sponsorLogos/{{ sponsor.image }}" |
107 |
| - alt="{{ sponsor.name }}" |
108 |
| - /> |
109 |
| - </a> |
110 |
| - </div> |
111 |
| - {% endif %} {% endfor %} |
| 57 | + <img |
| 58 | + style="text-align:center; position: relative; top: -60px" |
| 59 | + class="ritsec-thumbnail img-responsive" |
| 60 | + src="assets/images/sponsorLogos/{{ sponsor.image }}" |
| 61 | + alt="{{ sponsor.name }}" |
| 62 | +/> |
| 63 | +{% elsif sponsor.name == "Charles River Associates" %} |
| 64 | + <img |
| 65 | + style="text-align:center; position: relative; top: -25px; width: 200%; height: 200%;" |
| 66 | + class="ritsec-thumbnail img-responsive" |
| 67 | + src="assets/images/sponsorLogos/{{ sponsor.image }}" |
| 68 | + alt="{{ sponsor.name }}" |
| 69 | +/> |
| 70 | + {% else %} |
| 71 | + <img |
| 72 | + class="ritsec-thumbnail img-responsive center" |
| 73 | + src="assets/images/sponsorLogos/{{ sponsor.image }}" |
| 74 | + alt="{{ sponsor.name }}" |
| 75 | + /> |
| 76 | + {%endif%} |
| 77 | + </a> |
112 | 78 | </div>
|
113 |
| - |
114 |
| -<div class="row" style="text-align: center"> |
115 |
| - <h2 style="text-align:center">Bronze</h2> |
116 |
| - <br /> |
117 |
| - {% for sponsor in site.data.sponsors %} {% if sponsor.tier == 'Bronze' %} {% |
118 |
| - assign link = sponsor.link %} |
119 |
| - <div |
120 |
| - class="col-lg-2 col-md-4 col-sm-3 col-xs-6" |
121 |
| - style="display: inline-block;float: none;" |
122 |
| - > |
123 |
| - <a href="{{ link }}" target="_blank"> |
124 |
| - <img |
125 |
| - class="ritsec-thumbnail img-responsive center" |
126 |
| - src="assets/images/sponsorLogos/{{ sponsor.image }}" |
127 |
| - alt="{{ sponsor.name }}" |
128 |
| - /> |
129 |
| - </a> |
130 |
| - </div> |
131 | 79 | {% endif %} {% endfor %}
|
132 | 80 | </div>
|
| 81 | +{% endfor %} |
133 | 82 |
|
134 |
| -<div class="row" style="text-align: center"> |
135 |
| - <h2 style="text-align:center">Educational</h2> |
136 |
| - <br /> |
137 |
| - {% for sponsor in site.data.sponsors %} {% if sponsor.tier == 'Educational' %} |
138 |
| - {% assign link = sponsor.link %} |
139 |
| - <div |
140 |
| - class="col-lg-2 col-md-4 col-sm-3 col-xs-6" |
141 |
| - style="display: inline-block;float: none;" |
142 |
| - > |
143 |
| - <a href="{{ link }}" target="_blank"> |
144 |
| - <img |
145 |
| - class="ritsec-thumbnail img-responsive center" |
146 |
| - src="assets/images/sponsorLogos/{{ sponsor.image }}" |
147 |
| - alt="{{ sponsor.name }}" |
148 |
| - /> |
149 |
| - </a> |
150 |
| - </div> |
151 |
| - {% endif %} {% endfor %} |
152 |
| -</div> |
0 commit comments