From: Eduardo San Martin Morote Date: Tue, 24 Jan 2023 15:01:58 +0000 (+0100) Subject: docs: update sponsors X-Git-Tag: pinia@2.0.30~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5897d0673419164410311d658f45d0201262ff0;p=thirdparty%2Fvuejs%2Fpinia.git docs: update sponsors --- diff --git a/packages/docs/.vitepress/components/sponsors.json b/packages/docs/.vitepress/components/sponsors.json index c0843da0..e9c704b3 100644 --- a/packages/docs/.vitepress/components/sponsors.json +++ b/packages/docs/.vitepress/components/sponsors.json @@ -1,13 +1,6 @@ { "platinum": [], - "gold": [ - { - "href": "https://vuejobs.com/?utm_source=vuerouter&utm_campaign=sponsor", - "alt": "VueJobs", - "imgSrcLight": "https://posva-sponsors.pages.dev/logos/vuejobs.svg", - "imgSrcDark": "https://posva-sponsors.pages.dev/logos/vuejobs.svg" - } - ], + "gold": [], "silver": [ { "href": "https://www.vuemastery.com/", @@ -31,7 +24,7 @@ }, { "alt": "Antony Konstantinidis", - "href": "www.vuejs.de", + "href": "https://www.vuejs.de", "imgSrcDark": "https://avatars.githubusercontent.com/u/4183726?u=6b50a8ea16de29d2982f43c5640b1db9299ebcd1&v=4", "imgSrcLight": "https://avatars.githubusercontent.com/u/4183726?u=6b50a8ea16de29d2982f43c5640b1db9299ebcd1&v=4" }, @@ -45,7 +38,7 @@ "href": "https://nuxtjs.org", "imgSrcLight": "https://posva-sponsors.pages.dev/logos/nuxt-light.svg", "imgSrcDark": "https://posva-sponsors.pages.dev/logos/nuxt-dark.svg", - "alt": "NuxtJS" + "alt": "Nuxt Labs" } ] } diff --git a/packages/docs/.vitepress/theme/Layout.ts b/packages/docs/.vitepress/theme/Layout.ts index 7119ce84..7aad456a 100644 --- a/packages/docs/.vitepress/theme/Layout.ts +++ b/packages/docs/.vitepress/theme/Layout.ts @@ -73,26 +73,29 @@ export const Layout = defineComponent({ ), ]), ]), - 'sidebar-bottom': () => - h('div', { class: 'sponsors' }, [ - h('span', 'Sponsors'), - ...sponsors.gold.map(({ href, imgSrcDark, imgSrcLight, alt }) => - h( - 'a', - { - href, - target: '_blank', - rel: 'noopener', - }, - [ - h('img', { - src: isDark.value ? imgSrcDark : imgSrcLight, - alt, - }), - ] - ) - ), - ]), + 'sidebar-bottom': sponsors.gold.length + ? () => + h('div', { class: 'sponsors' }, [ + h('span', 'Sponsors'), + ...sponsors.gold.map( + ({ href, imgSrcDark, imgSrcLight, alt }) => + h( + 'a', + { + href, + target: '_blank', + rel: 'noopener', + }, + [ + h('img', { + src: isDark.value ? imgSrcDark : imgSrcLight, + alt, + }), + ] + ) + ), + ]) + : undefined, } ) },