File tree Expand file tree Collapse file tree 2 files changed +26
-30
lines changed Expand file tree Collapse file tree 2 files changed +26
-30
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"platinum" : [],
3
- "gold" : [
4
- {
5
- "href" : " https://vuejobs.com/?utm_source=vuerouter&utm_campaign=sponsor" ,
6
- "alt" : " VueJobs" ,
7
- "imgSrcLight" : " https://posva-sponsors.pages.dev/logos/vuejobs.svg" ,
8
- "imgSrcDark" : " https://posva-sponsors.pages.dev/logos/vuejobs.svg"
9
- }
10
- ],
3
+ "gold" : [],
11
4
"silver" : [
12
5
{
13
6
"href" : " https://www.vuemastery.com/" ,
31
24
},
32
25
{
33
26
"alt" : " Antony Konstantinidis" ,
34
- "href" : " www.vuejs.de" ,
27
+ "href" : " https:// www.vuejs.de" ,
35
28
"imgSrcDark" : " https://avatars.githubusercontent.com/u/4183726?u=6b50a8ea16de29d2982f43c5640b1db9299ebcd1&v=4" ,
36
29
"imgSrcLight" : " https://avatars.githubusercontent.com/u/4183726?u=6b50a8ea16de29d2982f43c5640b1db9299ebcd1&v=4"
37
30
},
45
38
"href" : " https://nuxtjs.org" ,
46
39
"imgSrcLight" : " https://posva-sponsors.pages.dev/logos/nuxt-light.svg" ,
47
40
"imgSrcDark" : " https://posva-sponsors.pages.dev/logos/nuxt-dark.svg" ,
48
- "alt" : " NuxtJS "
41
+ "alt" : " Nuxt Labs "
49
42
}
50
43
]
51
44
}
Original file line number Diff line number Diff line change @@ -73,26 +73,29 @@ export const Layout = defineComponent({
73
73
) ,
74
74
] ) ,
75
75
] ) ,
76
- 'sidebar-bottom' : ( ) =>
77
- h ( 'div' , { class : 'sponsors' } , [
78
- h ( 'span' , 'Sponsors' ) ,
79
- ...sponsors . gold . map ( ( { href, imgSrcDark, imgSrcLight, alt } ) =>
80
- h (
81
- 'a' ,
82
- {
83
- href,
84
- target : '_blank' ,
85
- rel : 'noopener' ,
86
- } ,
87
- [
88
- h ( 'img' , {
89
- src : isDark . value ? imgSrcDark : imgSrcLight ,
90
- alt,
91
- } ) ,
92
- ]
93
- )
94
- ) ,
95
- ] ) ,
76
+ 'sidebar-bottom' : sponsors . gold . length
77
+ ? ( ) =>
78
+ h ( 'div' , { class : 'sponsors' } , [
79
+ h ( 'span' , 'Sponsors' ) ,
80
+ ...sponsors . gold . map (
81
+ ( { href, imgSrcDark, imgSrcLight, alt } ) =>
82
+ h (
83
+ 'a' ,
84
+ {
85
+ href,
86
+ target : '_blank' ,
87
+ rel : 'noopener' ,
88
+ } ,
89
+ [
90
+ h ( 'img' , {
91
+ src : isDark . value ? imgSrcDark : imgSrcLight ,
92
+ alt,
93
+ } ) ,
94
+ ]
95
+ )
96
+ ) ,
97
+ ] )
98
+ : undefined ,
96
99
}
97
100
)
98
101
} ,
You can’t perform that action at this time.
0 commit comments