mirror of
https://github.com/posquit0/Awesome-CV.git
synced 2024-12-25 14:03:34 +00:00
refactor header code in awesome-cv.cls
This commit is contained in:
parent
fd8b88ba15
commit
31d163247d
1 changed files with 9 additions and 45 deletions
|
@ -412,91 +412,55 @@
|
|||
\ifthenelse{\isundefined{\@email}}%
|
||||
{}%
|
||||
{%
|
||||
\ifbool{isstart}%
|
||||
{%
|
||||
\setbool{istart}{false}%
|
||||
}%
|
||||
{\acvHeaderSocialSep}%
|
||||
\ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
|
||||
\href{mailto:\@email}{\faEnvelope\acvHeaderIconSep\@email}%
|
||||
}%
|
||||
\ifthenelse{\isundefined{\@homepage}}%
|
||||
{}%
|
||||
{%
|
||||
\ifbool{isstart}%
|
||||
{%
|
||||
\setbool{istart}{false}%
|
||||
}%
|
||||
{\acvHeaderSocialSep}%
|
||||
\ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
|
||||
\href{http://\@homepage}{\faHome\acvHeaderIconSep\@homepage}%
|
||||
}%
|
||||
\ifthenelse{\isundefined{\@github}}%
|
||||
{}%
|
||||
{%
|
||||
\ifbool{isstart}%
|
||||
{%
|
||||
\setbool{istart}{false}%
|
||||
}%
|
||||
{\acvHeaderSocialSep}%
|
||||
\ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
|
||||
\href{https://github.com/\@github}{\faGithubSquare\acvHeaderIconSep\@github}%
|
||||
}%
|
||||
\ifthenelse{\isundefined{\@stackoverflowid}}%
|
||||
{}%
|
||||
{%
|
||||
\ifbool{isstart}%
|
||||
{%
|
||||
\setbool{istart}{false} %
|
||||
}%
|
||||
{\acvHeaderSocialSep}%
|
||||
\ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
|
||||
\href{https://stackoverflow.com/users/\@stackoverflowid}{\faStackOverflow\acvHeaderIconSep\@stackoverflowname}%
|
||||
}%
|
||||
\ifthenelse{\isundefined{\@linkedin}}%
|
||||
{}%
|
||||
{%
|
||||
\ifbool{isstart}%
|
||||
{%
|
||||
\setbool{istart}{false}%
|
||||
}%
|
||||
{\acvHeaderSocialSep}%
|
||||
\ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
|
||||
\href{https://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\acvHeaderIconSep\@linkedin}%
|
||||
}%
|
||||
\ifthenelse{\isundefined{\@twitter}}%
|
||||
{}%
|
||||
{%
|
||||
\ifbool{isstart}%
|
||||
{%
|
||||
\setbool{istart}{false} %
|
||||
}%
|
||||
{\acvHeaderSocialSep}%
|
||||
\ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
|
||||
\href{https://twitter.com/\@twitter}{\faTwitter\acvHeaderIconSep\@twitter}%
|
||||
}%
|
||||
\ifthenelse{\isundefined{\@skype}}%
|
||||
{}%
|
||||
{%
|
||||
\ifbool{isstart}%
|
||||
{%
|
||||
\setbool{istart}{false} %
|
||||
}%
|
||||
{\acvHeaderSocialSep}%
|
||||
\ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
|
||||
\faSkype\acvHeaderIconSep\@skype%
|
||||
}%
|
||||
\ifthenelse{\isundefined{\@reddit}}%
|
||||
{}%
|
||||
{%
|
||||
\ifbool{isstart}%
|
||||
{%
|
||||
\setbool{istart}{false} %
|
||||
}%
|
||||
{\acvHeaderSocialSep}%
|
||||
\ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
|
||||
\href{https://www.reddit.com/user/\@reddit}{\faReddit\acvHeaderIconSep\@reddit}%
|
||||
}%
|
||||
\ifthenelse{\isundefined{\@extrainfo}}%
|
||||
{}%
|
||||
{%
|
||||
\ifbool{isstart}%
|
||||
{%
|
||||
\setbool{istart}{false} %
|
||||
}%
|
||||
{\acvHeaderSocialSep}%
|
||||
\ifbool{isstart}{\setbool{istart}{false}}{\acvHeaderSocialSep}%
|
||||
\@extrainfo%
|
||||
}%
|
||||
} \\[\acvHeaderAfterSocialSkip]%
|
||||
|
|
Loading…
Reference in a new issue