From 31d163247d9e531fcafe7c6c6ec01d156a6b3374 Mon Sep 17 00:00:00 2001 From: "Posquit0.BJ" Date: Sat, 30 Jan 2016 11:18:36 +0900 Subject: [PATCH] refactor header code in awesome-cv.cls --- awesome-cv.cls | 54 +++++++++----------------------------------------- 1 file changed, 9 insertions(+), 45 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index cc360c4..fe1ae19 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -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]%