feat(theme/i18n): allow customizing sponsor link's text (#3276)

Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
pull/3387/head
Дмитрий Бондарев 1 year ago committed by GitHub
parent 8687b86e1e
commit 9c20e3b5f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -212,6 +212,9 @@ interface TeamMember {
// URL for the sponsor page for the member. // URL for the sponsor page for the member.
sponsor?: string sponsor?: string
// Text for the sponsor link. Defaults to 'Sponsor'.
actionText?: string
} }
``` ```

@ -47,7 +47,7 @@ withDefaults(defineProps<Props>(), {
</div> </div>
<div v-if="member.sponsor" class="sp"> <div v-if="member.sponsor" class="sp">
<VPLink class="sp-link" :href="member.sponsor" no-icon> <VPLink class="sp-link" :href="member.sponsor" no-icon>
<VPIconHeart class="sp-icon" /> Sponsor <VPIconHeart class="sp-icon" /> {{ member.actionText || 'Sponsor' }}
</VPLink> </VPLink>
</div> </div>
</article> </article>

@ -345,6 +345,7 @@ export namespace DefaultTheme {
desc?: string desc?: string
links?: SocialLink[] links?: SocialLink[]
sponsor?: string sponsor?: string
actionText?: string
} }
// outline ------------------------------------------------------------------- // outline -------------------------------------------------------------------

Loading…
Cancel
Save