posquit0 / Awesome-CV

:page_facing_up: Awesome CV is LaTeX template for your outstanding job application
LaTeX Project Public License v1.3c
23.03k stars 4.79k forks source link

Support Multiple GitHub Repositories in Resume Header #212

Closed carlcorder closed 6 years ago

carlcorder commented 6 years ago

Hello,

First, let me say that I am really enjoying Awesome CV, the style and layout are fantastic! I would like to know if there is a way to display several (say 3) GitHub repositories at the top?

I have taken a look into awesome-cv.cls and noticed:

% Defines writer's github (optional) % Usage: \github{} \newcommand*{\github}[1]{\def\@github{#1}}

Would there be a way to simply modify this to achieve the desired effect?

thedch commented 6 years ago

Hi Carl —

A hacky way to do this would be to define as many github commands as you want, github1, github2, etc, and then your resume.tex file would look like:

...
\github{thedch}
\github1{other_github}
\github2{other_other_github}
...

Then, in awesome-cv.cls, find this bit of code:

      \ifthenelse{\isundefined{\@github}}
        {}
        {
          \ifbool{isstart}
            {
              \setbool{istart}{false} 
            }
            {\@headersocialsep}
          \href{https://github.com/\@github}{github.com/\@github }
        }

and duplicate it, changing the \ifthenelse{\isundefined{\@github}} to \ifthenelse{\isundefined{\@github1}}, etc.

I'm not positive this will work, but try it! 😄

carlcorder commented 6 years ago

@thedch worked like a charm. Thanks for your response!