diff --git a/docs/reference/default-theme-team-page.md b/docs/reference/default-theme-team-page.md index 5a6e2a9e..29b071ff 100644 --- a/docs/reference/default-theme-team-page.md +++ b/docs/reference/default-theme-team-page.md @@ -212,6 +212,9 @@ interface TeamMember { // URL for the sponsor page for the member. sponsor?: string + + // Text for the sponsor link. Defaults to 'Sponsor'. + actionText?: string } ``` diff --git a/src/client/theme-default/components/VPTeamMembersItem.vue b/src/client/theme-default/components/VPTeamMembersItem.vue index c17ccec6..5acb21e8 100644 --- a/src/client/theme-default/components/VPTeamMembersItem.vue +++ b/src/client/theme-default/components/VPTeamMembersItem.vue @@ -47,7 +47,7 @@ withDefaults(defineProps(), {
- Sponsor + {{ member.actionText || 'Sponsor' }}
diff --git a/types/default-theme.d.ts b/types/default-theme.d.ts index 94dfb95c..c89551b0 100644 --- a/types/default-theme.d.ts +++ b/types/default-theme.d.ts @@ -345,6 +345,7 @@ export namespace DefaultTheme { desc?: string links?: SocialLink[] sponsor?: string + actionText?: string } // outline -------------------------------------------------------------------