File tree 3 files changed +11
-7
lines changed
3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ silver:
169
169
img : localazy.png
170
170
- name : AddWeb Solution
171
171
url : http://addwebsolution.com/
172
- img : addweb_solution.png
172
+ img : addweb_solution.png?v2
173
173
- name : 1394TA
174
174
url : https://1394ta.org
175
175
img : 1394ta.png
Original file line number Diff line number Diff line change
1
+ <% function logo (img ) { return ` https://sponsors.vuejs.org/images/${ img} ` } %>
2
+
1
3
<main role =" main" >
2
4
<div class =" sidebar" >
3
5
<div class =" sidebar-inner-index" >
29
31
</div >
30
32
</div >
31
33
32
- <% _ if (theme .special_sponsors ) { _% >
34
+ <% _ if (theme .special ) { _% >
33
35
< div id= " special" >
34
36
< h3> Special Sponsor< / h3>
35
- < % var specialSponsor = theme .special_sponsors [0 ]; % >
37
+ < % var specialSponsor = theme .special [0 ]; % >
36
38
< a href= " <%- specialSponsor.url %>" target= " _blank" rel= " noopener sponsored" >
37
- < img src= " <%- url_for(`/images/${ specialSponsor.img}` ) %>" style= " width:160px" alt= " Special sponsor <%- specialSponsor.name %>" >
39
+ < img src= " <%- logo( specialSponsor.img) %>" style= " width:160px" alt= " Special sponsor <%- specialSponsor.name %>" >
38
40
< br>
39
41
<!-- < span>< %- specialSponsor .description % >< / span> -->
40
42
< / a>
Original file line number Diff line number Diff line change 1
- <% _ if (theme .special_sponsors ) { _% >
1
+ <% function logo (img ) { return ` https://sponsors.vuejs.org/images/${ img} ` } %>
2
+
3
+ <% _ if (theme .special ) { _% >
2
4
< div id= " sidebar-sponsors-special" >
3
5
< div class = " main-sponsor" >
4
6
< span> Special Sponsor< / span>
5
7
< div>
6
- < % _ for (const sponsor of theme .special_sponsors ) {_% >
8
+ < % _ for (const sponsor of theme .special ) {_% >
7
9
< a href= " <%- sponsor.url %>" target= " _blank" rel= " sponsored noopener" class = " logo" >
8
- < img src= " <%- url_for(`/images/${ sponsor.wide_img || sponsor. img}` ) %>" alt= " <%-sponsor.name-%>" >
10
+ < img src= " <%- logo( sponsor.img) %>" alt= " <%-sponsor.name-%>" >
9
11
< / a>
10
12
< % _ } _% >
11
13
< / div>
You can’t perform that action at this time.
0 commit comments