diff --git a/src/resumes/cool.vue b/src/resumes/cool.vue index a243dd6..cf43efa 100644 --- a/src/resumes/cool.vue +++ b/src/resumes/cool.vue @@ -53,7 +53,7 @@ + :href="contactLinks.email"> mail{{ person.contact.email }} @@ -71,21 +71,21 @@ + :href="contactLinks.linkedin"> {{ person.contact.linkedin }} + :href="contactLinks.github"> {{ person.contact.github }} + :href="contactLinks.medium"> {{ person.contact.medium }} diff --git a/src/resumes/creative.vue b/src/resumes/creative.vue index 975a54a..6a8c3b7 100644 --- a/src/resumes/creative.vue +++ b/src/resumes/creative.vue @@ -22,7 +22,7 @@ {{ person.knowledge }} - + {{ person.contact.email }} @@ -43,7 +43,7 @@ @@ -53,7 +53,7 @@ diff --git a/src/resumes/left-right-rtl.vue b/src/resumes/left-right-rtl.vue index 3d110ba..1a35127 100755 --- a/src/resumes/left-right-rtl.vue +++ b/src/resumes/left-right-rtl.vue @@ -26,11 +26,11 @@ - {{person.contact.email}} + {{person.contact.email}} - {{person.contact.phone}} + {{person.contact.phone}} @@ -42,7 +42,7 @@ - https://github.com/{{person.contact.github}} + {{contactLinks.github}} diff --git a/src/resumes/left-right.vue b/src/resumes/left-right.vue index 3b5b7fa..3d94763 100755 --- a/src/resumes/left-right.vue +++ b/src/resumes/left-right.vue @@ -25,11 +25,11 @@ {{ lang.contact }} - {{person.contact.email}} + {{person.contact.email}} - {{person.contact.phone}} + {{person.contact.phone}} @@ -41,7 +41,7 @@ - https://github.com/{{person.contact.github}} + {{contactLinks.github}} diff --git a/src/resumes/material-dark.vue b/src/resumes/material-dark.vue index e81be27..2c6e157 100755 --- a/src/resumes/material-dark.vue +++ b/src/resumes/material-dark.vue @@ -30,7 +30,7 @@ - + phone @@ -41,7 +41,7 @@ - + email @@ -52,7 +52,7 @@ - + diff --git a/src/resumes/oblique.vue b/src/resumes/oblique.vue index bc6a6fe..de6fd08 100755 --- a/src/resumes/oblique.vue +++ b/src/resumes/oblique.vue @@ -56,17 +56,17 @@ {{ lang.contact }} - {{person.contact.email}} + {{person.contact.email}} ; - {{person.contact.phone}} + {{person.contact.phone}} ; {{person.contact.street}}, {{person.contact.city}} ; {{person.contact.website}} ; - - https://github.com/{{person.contact.github}} + + {{contactLinks.github}} diff --git a/src/resumes/options.js b/src/resumes/options.js index 5092127..032cca0 100755 --- a/src/resumes/options.js +++ b/src/resumes/options.js @@ -13,7 +13,7 @@ function getVueOptions (name) { data () { return { person: yaml.load(PERSON), - terms: terms + terms: terms, }; }, computed: { @@ -23,14 +23,44 @@ function getVueOptions (name) { // overwrite non-set fields with default lang Object.keys(defaultLang) - .filter(k => !useLang[k]) - .forEach(k => { - console.log(k); - useLang[k] = defaultLang[k]; - }); + .filter(k => !useLang[k]) + .forEach(k => { + console.log(k); + useLang[k] = defaultLang[k]; + }); return useLang; - } + }, + + contactLinks() { + const links = {}; + + if(this.person.contact.github) { + links.github = `https://github.com/${this.person.contact.github}`; + } + + if(this.person.contact.codefights) { + links.codefights = `https://codefights.com/profile/${this.person.contact.codefights}`; + } + + if(this.person.contact.medium) { + links.medium = `https://medium.com/@${this.person.contact.medium}`; + } + + if(this.person.contact.email) { + links.email = `mailto:${this.person.contact.email}`; + } + + if(this.person.contact.linkedin) { + links.linkedin = `https://linkedin.com/in/${this.person.contact.linkedin}`; + } + + if(this.person.contact.phone) { + links.phone = `tel:${this.person.contact.phone}`; + } + + return links; + }, } }; return opt; diff --git a/src/resumes/purple.vue b/src/resumes/purple.vue index 7810f84..36913fc 100755 --- a/src/resumes/purple.vue +++ b/src/resumes/purple.vue @@ -9,7 +9,7 @@ {{person.contact.email}} {{person.contact.phone}} {{person.contact.website}} - {{person.contact.github}} + {{person.contact.github}} diff --git a/src/resumes/side-bar-rtl.vue b/src/resumes/side-bar-rtl.vue index 6f3be68..2f18493 100755 --- a/src/resumes/side-bar-rtl.vue +++ b/src/resumes/side-bar-rtl.vue @@ -17,7 +17,7 @@ {{ lang.contact }} - {{person.contact.email}} + {{person.contact.email}} @@ -25,7 +25,7 @@ - {{person.contact.phone}} + {{person.contact.phone}} @@ -41,7 +41,7 @@ - https://github.com/{{person.contact.github}} + {{contactLinks.github}} diff --git a/src/resumes/side-bar.vue b/src/resumes/side-bar.vue index a88143c..fe86403 100755 --- a/src/resumes/side-bar.vue +++ b/src/resumes/side-bar.vue @@ -17,7 +17,7 @@ {{ lang.contact }} - {{person.contact.email}} + {{person.contact.email}} @@ -25,7 +25,7 @@ - {{person.contact.phone}} + {{person.contact.phone}} @@ -41,7 +41,7 @@ - https://github.com/{{person.contact.github}} + {{contactLinks.github}}