Skip to content

Commit f5897d0

Browse files
committed
docs: update sponsors
1 parent d2a4def commit f5897d0

File tree

2 files changed

+26
-30
lines changed

2 files changed

+26
-30
lines changed

packages/docs/.vitepress/components/sponsors.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
{
22
"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": [],
114
"silver": [
125
{
136
"href": "https://www.vuemastery.com/",
@@ -31,7 +24,7 @@
3124
},
3225
{
3326
"alt": "Antony Konstantinidis",
34-
"href": "www.vuejs.de",
27+
"href": "https://www.vuejs.de",
3528
"imgSrcDark": "https://avatars.githubusercontent.com/u/4183726?u=6b50a8ea16de29d2982f43c5640b1db9299ebcd1&v=4",
3629
"imgSrcLight": "https://avatars.githubusercontent.com/u/4183726?u=6b50a8ea16de29d2982f43c5640b1db9299ebcd1&v=4"
3730
},
@@ -45,7 +38,7 @@
4538
"href": "https://nuxtjs.org",
4639
"imgSrcLight": "https://posva-sponsors.pages.dev/logos/nuxt-light.svg",
4740
"imgSrcDark": "https://posva-sponsors.pages.dev/logos/nuxt-dark.svg",
48-
"alt": "NuxtJS"
41+
"alt": "Nuxt Labs"
4942
}
5043
]
5144
}

packages/docs/.vitepress/theme/Layout.ts

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -73,26 +73,29 @@ export const Layout = defineComponent({
7373
),
7474
]),
7575
]),
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,
9699
}
97100
)
98101
},

0 commit comments

Comments
 (0)