|
93 | 93 | </div> |
94 | 94 | <div class="container"> |
95 | 95 | <section class="sponsors"> |
96 | | - <p class="sponsors__title">Our Open Source Sponsors</p> |
97 | | - <div class="sponsors__inner"> |
98 | | - {{#get "pages" order="featured desc, title asc" filter="tags:hash-oss-sponsors" limit="all"}} |
99 | | - {{#foreach pages}} |
100 | | - {{#if feature_image}} |
| 96 | + <p class="sponsors__title">Our Open Source Sponsors</p> |
| 97 | + <div class="sponsors__inner"> |
| 98 | + {{#get "pages" |
| 99 | + order="featured desc, title asc" |
| 100 | + filter="tags:hash-oss-sponsors" |
| 101 | + limit="all" |
| 102 | + fields="title,feature_image,custom_excerpt"}} |
| 103 | + {{#foreach pages}} |
| 104 | + {{#if feature_image}} |
| 105 | + {{#if custom_excerpt}} |
| 106 | + <a href="{{custom_excerpt}}" target="_blank" rel="noopener noreferrer" aria-label="{{title}}"> |
| 107 | + <img src="{{feature_image}}" alt="{{title}}" /> |
| 108 | + </a> |
| 109 | + {{else}} |
101 | 110 | <img src="{{feature_image}}" alt="{{title}}" /> |
102 | 111 | {{/if}} |
103 | | - {{/foreach}} |
104 | | - {{/get}} |
105 | | - </div> |
106 | | - </section> |
| 112 | + {{/if}} |
| 113 | + {{/foreach}} |
| 114 | + {{/get}} |
| 115 | + </div> |
| 116 | +</section> |
107 | 117 | </div> |
108 | 118 |
|
109 | 119 | <div class="container"> |
110 | 120 | <section class="sponsors"> |
111 | 121 | <p class="sponsors__title">RubyGems Supporters Plus</p> |
112 | 122 | <div class="sponsors__inner"> |
113 | | - {{#get "pages" order="featured desc, title asc" filter="tags:hash-rubygems-sponsors" limit="all"}} |
| 123 | + {{#get "pages" |
| 124 | + order="featured desc, title asc" |
| 125 | + filter="tags:hash-rubygems-sponsors" |
| 126 | + limit="all" |
| 127 | + fields="title,feature_image,custom_excerpt"}} |
114 | 128 | {{#foreach pages}} |
115 | 129 | {{#if feature_image}} |
116 | | - <img src="{{feature_image}}" alt="{{title}}" /> |
| 130 | + {{#if custom_excerpt}} |
| 131 | + <a href="{{custom_excerpt}}" target="_blank" rel="noopener noreferrer" aria-label="{{title}}"> |
| 132 | + <img src="{{feature_image}}" alt="{{title}}" /> |
| 133 | + </a> |
| 134 | + {{else}} |
| 135 | + <img src="{{feature_image}}" alt="{{title}}" /> |
| 136 | + {{/if}} |
117 | 137 | {{/if}} |
118 | 138 | {{/foreach}} |
119 | 139 | {{/get}} |
|
0 commit comments