diff --git a/gitprofile.config.js b/gitprofile.config.js index c2f6786..aa7b96e 100644 --- a/gitprofile.config.js +++ b/gitprofile.config.js @@ -10,9 +10,6 @@ const config = { projects: [], // These projects will not be displayed. example: ['my-project1', 'my-project2'] }, }, - resume: { - fileUrl: 'resume.pdf', // Empty fileUrl will hide the `Download Resume` button. - }, social: { linkedin: 'ariful-alam', twitter: 'arif_szn', @@ -26,6 +23,9 @@ const config = { phone: '', email: 'arifulalamszn@gmail.com', }, + resume: { + fileUrl: 'resume.pdf', // Empty fileUrl will hide the `Download Resume` button. + }, skills: [ 'PHP', 'Laravel', diff --git a/src/helpers/utils.jsx b/src/helpers/utils.jsx index 8cbec7b..856e9b8 100644 --- a/src/helpers/utils.jsx +++ b/src/helpers/utils.jsx @@ -144,9 +144,6 @@ export const sanitizeConfig = (config) => { projects: config?.github?.exclude?.projects || [], }, }, - resume: { - fileUrl: config?.resume?.fileUrl || '', - }, social: { linkedin: config?.social?.linkedin, twitter: config?.social?.twitter, @@ -160,6 +157,9 @@ export const sanitizeConfig = (config) => { phone: config?.social?.phone, email: config?.social?.email, }, + resume: { + fileUrl: config?.resume?.fileUrl || '', + }, skills: config?.skills || [], experiences: config?.experiences || [], education: config?.education || [], diff --git a/types/index.d.ts b/types/index.d.ts index 920947a..d03d6c8 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -216,6 +216,10 @@ export interface Education { to?: string; } +export interface Resume { + fileUrl?: string; +} + export interface Config { /** * GitHub Config @@ -227,6 +231,11 @@ export interface Config { */ social?: Social; + /** + * Resume + */ + resume?: Resume; + /** * Skill list */