From c0d9eb7aa9eb69b65ea0c59df7bc9f4f16d9c1ac Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Thu, 27 Jul 2023 13:41:22 +0600 Subject: [PATCH] Add new config `projects` --- gitprofile.config.js | 54 ++++++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/gitprofile.config.js b/gitprofile.config.js index acb9790..9ff007a 100644 --- a/gitprofile.config.js +++ b/gitprofile.config.js @@ -3,11 +3,38 @@ const config = { github: { username: 'arifszn', // Your GitHub org/user name. (Required) - sortBy: 'stars', // stars | updated - limit: 10, // How many projects to display. - exclude: { - forks: false, // Forked projects will not be displayed if set to true. - projects: [], // These projects will not be displayed. example: ['my-project1', 'my-project2'] + }, + projects: { + github: { + header: 'Github Projects', + display: true, // Display GitHub projects? + sortBy: 'stars', // stars | updated + limit: 10, // How many projects to display. + exclude: { + forks: false, // Forked projects will not be displayed if set to true. + projects: [], // These projects will not be displayed. example: ['my-project1', 'my-project2'] + }, + }, + + external: { + header: 'External Projects', + display: true, // Display external projects? + projects: [ + { + title: 'Project Name', + description: + 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nunc ut.', + imageUrl: 'https://via.placeholder.com/250x250', + link: 'https://example.com', + }, + { + title: 'Project Name', + description: + 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nunc ut.', + imageUrl: 'https://via.placeholder.com/250x250', + link: 'https://example.com', + }, + ], }, }, social: { @@ -87,23 +114,6 @@ const config = { }, ], - // To hide the `My Projects` section, keep it empty. - externalProjects: [ - { - title: 'Project Name', - description: - 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nunc ut.', - imageUrl: 'https://via.placeholder.com/250x250', - link: 'https://example.com', - }, - { - title: 'Project Name', - description: - 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nunc ut.', - imageUrl: 'https://via.placeholder.com/250x250', - link: 'https://example.com', - }, - ], // Display blog posts from your medium or dev account. (Optional) blog: { source: 'dev', // medium | dev