From 0a9671bddca43e7f62d40666f4666aa44208fe9f Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sun, 20 Mar 2022 18:05:48 +0600 Subject: [PATCH 1/3] Make the project items openable on right click action --- src/components/project/index.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/project/index.jsx b/src/components/project/index.jsx index 49b51aa..53351d1 100644 --- a/src/components/project/index.jsx +++ b/src/components/project/index.jsx @@ -53,10 +53,13 @@ const Project = ({ repo, loading }) => { const renderProjects = () => { return repo.map((item, index) => ( -
{ + onClick={(e) => { + e.preventDefault(); + try { if (config.googleAnalytics?.id) { ga.event({ @@ -119,7 +122,7 @@ const Project = ({ repo, loading }) => {
- + )); }; From e9ac5667373b01c72b4da77362b78d2a7f07eb44 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sun, 20 Mar 2022 18:09:31 +0600 Subject: [PATCH 2/3] Make the blog items openable on right click action --- src/components/blog/index.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/blog/index.jsx b/src/components/blog/index.jsx index bbc9fed..b3699bb 100644 --- a/src/components/blog/index.jsx +++ b/src/components/blog/index.jsx @@ -102,10 +102,13 @@ const Blog = ({ loading }) => { return ( articles && articles.slice(0, config.blog.limit).map((article, index) => ( -
{ + href={article.link} + onClick={(e) => { + e.preventDefault(); + try { if (config.googleAnalytics?.id) { ga.event({ @@ -164,7 +167,7 @@ const Blog = ({ loading }) => {
- + )) ); }; From f8fff21f3ca3cbaa481aa429ba16bbb91c39fea9 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sun, 20 Mar 2022 18:11:20 +0600 Subject: [PATCH 3/3] Increase the project limit --- src/gitprofile.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitprofile.config.js b/src/gitprofile.config.js index 523c098..f311312 100644 --- a/src/gitprofile.config.js +++ b/src/gitprofile.config.js @@ -4,7 +4,7 @@ const config = { github: { username: 'arifszn', // Your GitHub org/user name. (Required) sortBy: 'stars', // stars | updated - limit: 8, // How many projects to display. + limit: 10, // How many projects to display. exclude: { forks: false, // Forked projects will not be displayed if set to true. projects: ['laravel-ecommerce'], // These projects will not be displayed. example: ['my-project1', 'my-project2']