Skip to content

Commit 02b2839

Browse files
committed
Add title overrides for the team page
Everyone being a "Contributor" is kind of redundant, so we either add some differentiation here or remove it entirely. Since it makes sense to point out the currently active maintainers, I went for the former.
1 parent 528e966 commit 02b2839

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/.vitepress/data/contributors.data.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ export interface Data {
2222
readonly contributors: Contributor[];
2323
}
2424

25+
// Map GitHub logins/account names to special titles.
26+
const title_overrides = new Map();
27+
title_overrides.set("FichteFoll", "Maintainer");
28+
title_overrides.set("TerminalFi", "Maintainer");
29+
2530
declare const data: Data;
2631
export { data }
2732

@@ -48,7 +53,7 @@ export default defineLoader({
4853
const contributorsPage: Contributor[] = res.map(contributor => ({
4954
avatar: contributor.avatar_url,
5055
name: contributor.login,
51-
title: 'Contributor',
56+
title: title_overrides.get(contributor.login) ?? 'Contributor',
5257
links: [
5358
{ icon: 'github', link: contributor.html_url },
5459
]

0 commit comments

Comments
 (0)