diff --git a/bin/gitfolio.js b/bin/gitfolio.js index 8398668..eea9c1d 100755 --- a/bin/gitfolio.js +++ b/bin/gitfolio.js @@ -42,12 +42,9 @@ program .option("-f, --fork", "includes forks with repos") .option("-s, --sort [sort]", "set default sort for repository", "created") .option("-o, --order [order]", "set default order on sort", "asc") - .option("-w, --twitter [username]", "specify twitter username") - .option("-l, --linkedin [username]", "specify linkedin username") - .option("-m, --medium [username]", "specify medium username") .option("-d, --dribbble [username]", "specify dribbble username") - .option("-T, --telegram [username]", "specify telegram username") .option("-e, --email [username]", "specify email") + .option("-T, --twitter [username]", "specify twitter username") .action(buildCommand); program diff --git a/build.js b/build.js index 987d709..0b492b2 100644 --- a/build.js +++ b/build.js @@ -96,12 +96,9 @@ async function buildCommand(username, program) order: program.order, includeFork: program.fork ? true : false, types, - twitter: program.twitter, - linkedin: program.linkedin, - medium: program.medium, dribbble: program.dribbble, - telegram: program.telegram, - email: program.email + email: program.email, + twitter: program.twitter }; await populateConfig(opts); diff --git a/populate.js b/populate.js index 6027e30..9b414ec 100644 --- a/populate.js +++ b/populate.js @@ -50,12 +50,9 @@ module.exports.updateHTML = (username, opts) => const { includeFork, - twitter, - linkedin, - medium, dribbble, - telegram, - email + email, + twitter } = opts; //add data to assets/index.html jsdom @@ -166,24 +163,15 @@ module.exports.updateHTML = (username, opts) => user.hireable == false || !user.hireable ? "none" : "block" };">    Available for hire
- - - - +
`; //add data to config.json diff --git a/ui.js b/ui.js index 6a8024d..89b3c8a 100644 --- a/ui.js +++ b/ui.js @@ -69,12 +69,9 @@ function uiCommand() let order = req.body.order ? req.body.order : "asc"; let includeFork = req.body.fork == "true" ? true : false; let types = ["owner"]; - let twitter = req.body.twitter ? req.body.twitter : null; - let linkedin = req.body.linkedin ? req.body.linkedin : null; - let medium = req.body.medium ? req.body.medium : null; let dribbble = req.body.dribbble ? req.body.dribbble : null; - let telegram = req.body.telegram ? req.body.telegram : null; let email = req.body.email ? req.body.email : null; + let twitter = req.body.twitter ? req.body.twitter : null; let background = req.body.background ? req.body.background : "https://images.unsplash.com/photo-1553748024-d1b27fb3f960?w=1500&q=80"; @@ -84,12 +81,9 @@ function uiCommand() order: order, includeFork: includeFork, types, - twitter: twitter, - linkedin: linkedin, - medium: medium, dribbble: dribbble, - telegram: telegram, - email: email + email: email, + twitter: twitter }; updateHTML(username, opts); diff --git a/update.js b/update.js index 0e140e7..c89297f 100644 --- a/update.js +++ b/update.js @@ -23,12 +23,9 @@ async function updateCommand() order: data[0].order, includeFork: data[0].includeFork, types: data[0].types, - twitter: data[0].twitter, - linkedin: data[0].linkedin, - medium: data[0].medium, dribbble: data[0].dribbble, - telegram: data[0].telegram, - email: data[0].email + email: data[0].email, + twitter: data[0].twitter }; updateHTML(username, opts); } diff --git a/views/index.ejs b/views/index.ejs index 4daeb31..092d904 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -116,36 +116,21 @@