From e91568c7f2da0af8f15abe7f3b7d8788a662d191 Mon Sep 17 00:00:00 2001 From: Pranav Kumar <31352593+pranavmk98@users.noreply.github.com> Date: Thu, 27 Dec 2018 18:14:28 +0530 Subject: [PATCH] Add custom LinkedIn ID option For users whose IDs are not the same as their usernames, modify \linkedin command --- awesome-cv.cls | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index d1c1074..cf25c9d 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -300,8 +300,8 @@ \newcommand*{\stackoverflow}[2]{\def\@stackoverflowid{#1}\def\@stackoverflowname{#2}} % Defines writer's linked-in (optional) -% Usage: \linkedin{} -\newcommand*{\linkedin}[1]{\def\@linkedin{#1}} +% Usage: \linkedin{} +\newcommand*{\linkedin}[2]{\def\@linkedindisplay{#1}\def\@linkedinid{#2}} % Usage: \twitter{} \newcommand*{\twitter}[1]{\def\@twitter{#1}} @@ -472,11 +472,11 @@ \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% \href{https://stackoverflow.com/users/\@stackoverflowid}{\faStackOverflow\acvHeaderIconSep\@stackoverflowname}% }% - \ifthenelse{\isundefined{\@linkedin}}% + \ifthenelse{\isundefined{\@linkedinid}}% {}% {% \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% - \href{https://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\acvHeaderIconSep\@linkedin}% + \href{https://www.linkedin.com/in/\@linkedinid}{\faLinkedinSquare\acvHeaderIconSep\@linkedindisplay}% }% \ifthenelse{\isundefined{\@twitter}}% {}%