From be7af9a06edce9dc7987a3a6b4fe97c30e0372e3 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Thu, 6 Oct 2022 01:21:36 +0800 Subject: [PATCH] ghuser --- layout/_partial/sidebar/widgets/ghuser.ejs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/layout/_partial/sidebar/widgets/ghuser.ejs b/layout/_partial/sidebar/widgets/ghuser.ejs index af64233..fac1361 100644 --- a/layout/_partial/sidebar/widgets/ghuser.ejs +++ b/layout/_partial/sidebar/widgets/ghuser.ejs @@ -2,15 +2,18 @@ var btns = []; btns.push({ key: 'followers', - desc: 'followers' + desc: 'followers', + href: 'https://github.com/xaoxuu?tab=followers' }); btns.push({ key: 'following', - desc: 'following' + desc: 'following', + href: 'https://github.com/xaoxuu?tab=following' }); btns.push({ key: 'public_repos', - desc: 'repos' + desc: 'repos', + href: 'https://github.com/xaoxuu?tab=repositories' }); function layoutDiv() { @@ -30,7 +33,7 @@ function layoutDiv() { el += '
'; btns.forEach((btn, i) => { - el += ''; + el += ''; el += ''; el += '' + btn.desc + ''; el += '';