From 15b6b40e4acc03a0bc894a3334e9c8480e682bf5 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sat, 16 Mar 2024 16:41:40 -0400 Subject: [PATCH] New \forgejo command Signed-off-by: Sergio Durigan Junior --- awesome-cv.cls | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/awesome-cv.cls b/awesome-cv.cls index 95b91bf..b5adbb2 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -294,6 +294,10 @@ % Usage: \gitlab{} \newcommand*{\gitlab}[1]{\def\@gitlab{#1}} +% Defines writer's forgejo (optional) +% Usage: \forgejo{} +\newcommand*{\forgejo}[1]{\def\@forgejo{#1}} + % Defines writer's bitbucket (optional) % Usage: \bitbucket{} \newcommand*{\bitbucket}[1]{\def\@bitbucket{#1}} @@ -517,6 +521,12 @@ \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% \href{https://gitlab.com/\@gitlab}{\faGitlab\acvHeaderIconSep\@gitlab}% }% + \ifthenelse{\isundefined{\@forgejo}}% + {}% + {% + \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% + \href{https://git.sergiodj.net/\@forgejo}{\faGitSquare\acvHeaderIconSep\@forgejo}% + }% \ifthenelse{\isundefined{\@bitbucket}}% {}% {%