From 8817ef6600e0e67a6d7c3c26967e2715e4c4628d Mon Sep 17 00:00:00 2001 From: Antonio Ruberto Date: Sun, 16 Oct 2016 19:23:56 -0400 Subject: [PATCH] Add social links --- src/partials/contact.html | 35 +++++++++++++++++++++++++++++++---- test/resume.json | 1 - 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/src/partials/contact.html b/src/partials/contact.html index 87dde10..7b94f2c 100644 --- a/src/partials/contact.html +++ b/src/partials/contact.html @@ -1,7 +1,34 @@

{{{r.name}}}

- {{#if r.location.city}}

 {{r.location.city}}{{#if r.location.region}}, {{r.location.region}}{{/if}}{{#if r.location.country}}, {{r.location.country}}{{/if}}

{{/if}} - {{#if r.contact.email}}

 {{r.contact.email}}

{{/if}} - {{#if r.contact.phone}}

 {{r.contact.phone}}

{{/if}} - {{#if r.contact.website}}

 {{RAW.contact.website}}

{{/if}} + {{#if r.location.city}} +

 {{r.location.city}}{{#if r.location.region}}, {{r.location.region}}{{/if}}{{#if r.location.country}}, {{r.location.country}}{{/if}}

+ {{/if}} + {{#if r.contact.email}} +

 {{r.contact.email}}

+ {{/if}} + {{#if r.contact.phone}} +

 {{r.contact.phone}}

+ {{/if}} + {{#if r.contact.website}} +

 {{RAW.contact.website}}

+ {{/if}} + {{#if r.social}} + {{#each r.social}} + {{#compare network "GitHub" operator="=="}} +

 {{{url}}}

+ {{/compare}} + {{#compare network "Bitbucket" operator="=="}} +

 {{{url}}}

+ {{/compare}} + {{#compare network "LinkedIn" operator="=="}} +

 {{{url}}}

+ {{/compare}} + {{#compare network "Twitter" operator="=="}} +

 {{{url}}}

+ {{/compare}} + {{#compare network "Facebook" operator="=="}} +

 {{{url}}}

+ {{/compare}} + {{/each}} + {{/if}}
diff --git a/test/resume.json b/test/resume.json index bf817ab..8043945 100644 --- a/test/resume.json +++ b/test/resume.json @@ -88,7 +88,6 @@ ], "social": [ - { "label": "GitHub", "network": "GitHub",