diff --git a/.travis.yml b/.travis.yml index dddd90b..c04ae35 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ before_install: before_script: - npm install -g script: - - gitfolio build k4ustu3h --fork --theme dark --sort updated --twitter k4ustu3h_ --dribbble k4ustu3h --email k4ustu3h@gmail.com --codepen k4ustu3h --dev k4ustu3h --instagram k4ustu3h + - gitfolio build k4ustu3h --fork --theme dark --sort updated --twitter k4ustu3h_ --dribbble k4ustu3h --email k4ustu3h@gmail.com --codepen k4ustu3h --dev k4ustu3h --instagram k4ustu3h --telegram k4ustu3h after_success: - lhci autorun --upload.target=temporary-public-storage --staticDistDir=/home/travis/build/k4ustu3h/gitfolio/dist deploy: diff --git a/bin/gitfolio.js b/bin/gitfolio.js index 14126e1..1048149 100755 --- a/bin/gitfolio.js +++ b/bin/gitfolio.js @@ -31,7 +31,8 @@ program .option("-D, --dribbble [username]", "specify dribbble username") .option("-e, --email [username]", "specify email") .option("-i, --instagram [username]", "specify instagram username") - .option("-T, --twitter [username]", "specify twitter username") + .option("-T, --telegram [username]", "specify telegram username") + .option("-w, --twitter [username]", "specify twitter username") .action(buildCommand); program diff --git a/build.js b/build.js index fc72bcc..13666e7 100644 --- a/build.js +++ b/build.js @@ -82,6 +82,7 @@ async function buildCommand(username, program) { dribbble: program.dribbble, email: program.email, instagram: program.instagram, + telegram: program.telegram, twitter: program.twitter }; diff --git a/populate.js b/populate.js index a654f41..35da3b8 100644 --- a/populate.js +++ b/populate.js @@ -38,6 +38,7 @@ module.exports.updateHTML = (username, opts) => { dribbble, email, instagram, + telegram, twitter } = opts; //add data to assets/index.html @@ -154,6 +155,9 @@ module.exports.updateHTML = (username, opts) => { + diff --git a/ui.js b/ui.js index b74b09b..a8d46fa 100644 --- a/ui.js +++ b/ui.js @@ -56,6 +56,7 @@ function uiCommand() { let dribbble = req.body.dribbble ? req.body.dribbble : null; let email = req.body.email ? req.body.email : null; let instagram = req.body.instagram ? req.body.instagram : null; + let telegram = req.body.telegram ? req.body.telegram : null; let twitter = req.body.twitter ? req.body.twitter : null; let background = req.body.background ? req.body.background @@ -71,6 +72,7 @@ function uiCommand() { dribbble: dribbble, email: email, instagram: instagram, + telegram: telegram, twitter: twitter }; diff --git a/update.js b/update.js index 6c915ff..79d584c 100644 --- a/update.js +++ b/update.js @@ -20,6 +20,7 @@ async function updateCommand() { dribbble: data[0].dribbble, email: data[0].email, instagram: data[0].instagram, + telegram: data[0].telegram, twitter: data[0].twitter }; updateHTML(username, opts); diff --git a/views/index.ejs b/views/index.ejs index 5f2ebc7..1bfa10d 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -145,6 +145,12 @@ id="instagram" name="instagram" /> +
+