Skip to content

Commit 62c9665

Browse files
authored
docs: fix right sidebar sponsors (#1477)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a "Become a sponsor" link that appears when the sponsor list has fewer than three items. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 70a1a81 commit 62c9665

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/content/.vitepress/theme/components/AsideSponsors.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ const containerIsVisible = useElementVisibility(container)
88
99
const { sponsors } = useSponsors(containerIsVisible)
1010
11-
const normalSponsors = computed(() => sponsors.value.filter(s => s.rideSidebarSize === 'normal'))
12-
const smallSponsors = computed(() => sponsors.value.filter(s => s.rideSidebarSize === 'small'))
11+
const normalSponsors = computed(() => sponsors.value.filter(s => s.rightSidebarSize === 'normal'))
12+
const smallSponsors = computed(() => sponsors.value.filter(s => s.rightSidebarSize === 'small'))
1313
</script>
1414

1515
<template>
1616
<div ref="container" class="aside-container">
1717
<a class="aside-sponsors-title" href="https://github.com/sponsors/dinwwwh" target="_blank" rel="noopener">SPONSORS</a>
1818

1919
<div class="aside-sponsors-list">
20-
<a v-for="sponsor in normalSponsors" :key="sponsor.login" class="aside-sponsor" target="_blank" :href="sponsor.rideSidebarLink">
20+
<a v-for="sponsor in normalSponsors" :key="sponsor.login" class="aside-sponsor" target="_blank" :href="sponsor.rightSidebarLink">
2121
<img :src="sponsor.rightSidebarLogo" :alt="sponsor.name">
2222
</a>
2323

@@ -26,7 +26,7 @@ const smallSponsors = computed(() => sponsors.value.filter(s => s.rideSidebarSiz
2626
</a>
2727

2828
<div class="aside-sponsors-small">
29-
<a v-for="sponsor in smallSponsors" :key="sponsor.login" class="aside-sponsor" target="_blank" :href="sponsor.rideSidebarLink">
29+
<a v-for="sponsor in smallSponsors" :key="sponsor.login" class="aside-sponsor" target="_blank" :href="sponsor.rightSidebarLink">
3030
<img :src="sponsor.rightSidebarLogo" :alt="sponsor.name">
3131
</a>
3232
</div>

apps/content/.vitepress/theme/composables/sponsors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export interface JSONSponsor {
99
amount: number
1010
link?: string
1111
org: boolean
12-
rideSidebarSize: 'normal' | 'small' | 'none'
13-
rideSidebarLink?: string
12+
rightSidebarSize: 'normal' | 'small' | 'none'
13+
rightSidebarLink?: string
1414
rightSidebarLogo: string
1515
}
1616

0 commit comments

Comments
 (0)