Skip to content

Commit 6310e20

Browse files
vuejs-jp-botre-fort
authored andcommitted
docs: add main focus for An (vuejs#1255) (vuejs#429)
* update sponsor link * update sponsor image * docs: add main focus for An (vuejs#1255) Add vi.vuejs.org as an additional main focus for An (that’s me). Also, since vi.vuejs.org’s repo is intentially outside of vuejs org, modified the code a bit to accept an object { name, url } as a valid repo.
1 parent 82f549e commit 6310e20

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/v2/guide/team.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ order: 803
2424
<dd>
2525
<ul>
2626
<li v-for="repo in profile.reposOfficial">
27-
<a :href="githubUrl('vuejs', repo)" target=_blank>{{ repo }}</a>
27+
<a :href="githubUrl('vuejs', repo)" target=_blank>{{ repo.name || repo }}</a>
2828
</li>
2929
</ul>
3030
</dd>
@@ -34,7 +34,7 @@ order: 803
3434
<dd>
3535
<ul>
3636
<li v-for="repo in profile.reposPersonal">
37-
<a :href="githubUrl(profile.github, repo)" target=_blank>{{ repo }}</a>
37+
<a :href="githubUrl(profile.github, repo)" target=_blank>{{ repo.name || repo }}</a>
3838
</li>
3939
</ul>
4040
</dd>
@@ -429,7 +429,10 @@ order: 803
429429
github: 'phanan',
430430
twitter: 'notphanan',
431431
reposOfficial: [
432-
'vuejs.org'
432+
'vuejs.org', {
433+
name: 'vi.vuejs.org',
434+
url: 'https://github.com/vuejs-vn/vuejs.org'
435+
}
433436
],
434437
reposPersonal: [
435438
'vuequery', 'vue-google-signin-button'
@@ -905,6 +908,9 @@ order: 803
905908
* Generate a GitHub URL using a repo and a handle.
906909
*/
907910
githubUrl: function (handle, repo) {
911+
if (repo && repo.url) {
912+
return repo.url
913+
}
908914
if (repo && repo.indexOf('/') !== -1) {
909915
// If the repo name has a slash, it must be an organization repo.
910916
// In such a case, we discard the (personal) handle.

0 commit comments

Comments
 (0)