diff --git a/bin/gitfolio.js b/bin/gitfolio.js index 39e5c92..85ab409 100755 --- a/bin/gitfolio.js +++ b/bin/gitfolio.js @@ -23,13 +23,14 @@ program ) .option("-t, --theme [theme]", "specify a theme to use", "light") .option("-b, --background [background]", "set the background image") - .option("-f, --fork", "includes forks with repos") + .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("-c, --codepen [username]", "specify codepen username") .option("-d, --dev [username]", "specify dev username") .option("-D, --dribbble [username]", "specify dribbble username") .option("-e, --email [username]", "specify email") + .option("-f, --facebook [username]", "specify facebook username") .option("-i, --instagram [username]", "specify instagram username") .option("-k, --keybase [username]", "specify keybase username") .option("-r, --reddit [username]", "specify reddit username") diff --git a/build.js b/build.js index c6e65b2..02b4074 100644 --- a/build.js +++ b/build.js @@ -84,6 +84,7 @@ async function buildCommand(username, program) { dev: program.dev, dribbble: program.dribbble, email: program.email, + facebook: program.facebook, instagram: program.instagram, keybase: program.keybase, reddit: program.reddit, diff --git a/package.json b/package.json index bbbc82c..a117679 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "cli": "OUT_DIR='./dist' node bin/gitfolio.js", "clean": "rm -rf ./dist/*", "prettier": "prettier --write \"./**/*.{js,jsx,json,html,css,md}\"", - "test": "OUT_DIR='./dist' node bin/gitfolio.js build k4ustu3h --fork --theme dark --sort updated --twitter k4ustu3h_ --dribbble k4ustu3h --email k4ustu3h@gmail.com --codepen k4ustu3h --dev k4ustu3h --instagram k4ustu3h --telegram k4ustu3h --reddit kaustubhladiya --keybase k4ustu3h" + "test": "OUT_DIR='./dist' node bin/gitfolio.js build k4ustu3h --fork --theme dark --sort updated --twitter k4ustu3h_ --dribbble k4ustu3h --email k4ustu3h@gmail.com --codepen k4ustu3h --dev k4ustu3h --instagram k4ustu3h --telegram k4ustu3h --reddit kaustubhladiya --keybase k4ustu3h --facebook k4ustu3h" }, "author": { "name": "@imfunniee and community", diff --git a/populate.js b/populate.js index e16aba5..301e77b 100644 --- a/populate.js +++ b/populate.js @@ -37,6 +37,7 @@ module.exports.updateHTML = (username, opts) => { dev, dribbble, email, + facebook, instagram, keybase, reddit, @@ -154,6 +155,9 @@ module.exports.updateHTML = (username, opts) => { + diff --git a/ui.js b/ui.js index 9a7ad4e..9bb40eb 100644 --- a/ui.js +++ b/ui.js @@ -55,6 +55,7 @@ function uiCommand() { const dev = req.body.dev ? req.body.dev : null; const dribbble = req.body.dribbble ? req.body.dribbble : null; const email = req.body.email ? req.body.email : null; + const facebook = req.body.facebook ? req.body.facebook : null; const instagram = req.body.instagram ? req.body.instagram : null; const keybase = req.body.keybase ? req.body.keybase : null; const reddit = req.body.reddit ? req.body.reddit : null; @@ -73,6 +74,7 @@ function uiCommand() { dev, dribbble, email, + facebook, instagram, keybase, reddit, diff --git a/update.js b/update.js index 584df7d..7bd5e94 100644 --- a/update.js +++ b/update.js @@ -20,6 +20,7 @@ async function updateCommand() { dev: data[0].dev, dribbble: data[0].dribbble, email: data[0].email, + facebook: data[0].facebook, instagram: data[0].instagram, keybase: data[0].keybase, reddit: data[0].reddit, diff --git a/views/index.ejs b/views/index.ejs index 56c4d1d..96d3f93 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -138,6 +138,14 @@ name="email" />
+ +