Update get-contact-href.js

add codepen
This commit is contained in:
Rémi BRUGUIER 2019-09-08 19:33:06 +02:00 committed by GitHub
parent aadea63ef8
commit edf37bdd36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,9 @@ const getContactHref = (name: string, contact: string) => {
case 'weibo': case 'weibo':
href = `https://www.weibo.com/${contact}`; href = `https://www.weibo.com/${contact}`;
break; break;
case 'codepen':
href = `https://www.codepen.io/${contact}`;
break;
default: default:
href = contact; href = contact;
break; break;
@ -44,4 +47,4 @@ const getContactHref = (name: string, contact: string) => {
return href; return href;
}; };
export default getContactHref; export default getContactHref;