Add \git and \gitlab

This commit is contained in:
Ceda EI 2020-07-07 16:51:11 +05:30
parent b8677bd4be
commit cf74ca499d
1 changed files with 10 additions and 0 deletions

View File

@ -196,6 +196,8 @@
\newcommand{\viadeoSymbol}{\faViadeo}
\newcommand{\mobileSymbol}{\faMobile*}
\newcommand{\githubSymbol}{\faGithub}
\newcommand{\gitlabSymbol}{\faGitlab}
\newcommand{\gitSymbol}{\faGit}
\newcommand{\stackoverflowSymbol}{\faStackOverflow}
\newcommand{\stackexchangeSymbol}{\faStackExchange}
\newcommand{\mediumSymbol}{\faMedium}
@ -264,6 +266,14 @@
% Usage: \github{<github-nick>}
\newcommand*{\github}[1]{\sociallink{\githubSymbol}{https://www.github.com/#1}{github.com/#1}} % Github icon + URL
% Render author's gitlab (optional)
% Usage: \gitlab{<gitlab-nick>}
\newcommand*{\gitlab}[1]{\sociallink{\gitlabSymbol}{https://www.gitlab.com/#1}{gitlab.com/#1}} % gitlab icon + URL
% Render author's git (optional)
% Usage: \git{<git-nick>}
\newcommand*{\git}[1]{\sociallink{\gitSymbol}{https://#1}{#1}} % git icon + URL
% Render author's stackoverflow profile (optional)
% Usage: \stackoverflow{<stackoverflow-user-id>}
\newcommand*{\stackoverflow}[1]{\sociallink{\stackoverflowSymbol}{https://www.stackoverflow.com/u/#1}{stackoverflow.com/u/#1}}