Add custom LinkedIn ID option

For users whose IDs are not the same as their usernames, modify \linkedin command
This commit is contained in:
Pranav Kumar 2018-12-27 18:14:28 +05:30 committed by GitHub
parent 7c3fbce42f
commit e91568c7f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -300,8 +300,8 @@
\newcommand*{\stackoverflow}[2]{\def\@stackoverflowid{#1}\def\@stackoverflowname{#2}}
% Defines writer's linked-in (optional)
% Usage: \linkedin{<linked-in-nick>}
\newcommand*{\linkedin}[1]{\def\@linkedin{#1}}
% Usage: \linkedin{<linked-in-nick><linked-in-id>}
\newcommand*{\linkedin}[2]{\def\@linkedindisplay{#1}\def\@linkedinid{#2}}
% Usage: \twitter{<twitter handle>}
\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}}%
{}%