diff --git a/awesome-cv.cls b/awesome-cv.cls index 9c74a18..4a4e163 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -315,6 +315,10 @@ % Usage: \twitter{} \newcommand*{\twitter}[1]{\def\@twitter{#1}} +% Defines writer's Mastodon (optional) +% Usage: \mastodon{}{} +\newcommand*{\mastodon}[2]{\def\@mastodoninstance{#1}\def\@mastodonname{#2}} + % Defines writer's resarchgate (optional) % Usage: \researchgate{} \newcommand*{\researchgate}[1]{\def\@researchgate{#1}} @@ -528,6 +532,12 @@ \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% \href{https://twitter.com/\@twitter}{\faTwitter\acvHeaderIconSep\@twitter}% }% + \ifthenelse{\isundefined{\@mastodonname}}% + {}% + {% + \ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}% + \href{https://\@mastodoninstance/@\@mastodonname}{\faMastodon\acvHeaderIconSep\@mastodonname}% + }% \ifthenelse{\isundefined{\@skype}}% {}% {%