New \forgejo command

Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
This commit is contained in:
Sergio Durigan Junior 2024-03-16 16:41:40 -04:00
parent 4895246507
commit 15b6b40e4a
Signed by: sergiodj
GPG key ID: D0EB762865FC5E36

View file

@ -294,6 +294,10 @@
% Usage: \gitlab{<gitlab-nick>}
\newcommand*{\gitlab}[1]{\def\@gitlab{#1}}
% Defines writer's forgejo (optional)
% Usage: \forgejo{<gitlab-nick>}
\newcommand*{\forgejo}[1]{\def\@forgejo{#1}}
% Defines writer's bitbucket (optional)
% Usage: \bitbucket{<bitbucket-nick>}
\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}}%
{}%
{%