From c1180c50d720abbd8e03aa504d7f2a11c867e83f Mon Sep 17 00:00:00 2001 From: "DC\\ Simmons" Date: Fri, 24 Dec 2021 20:58:53 -0600 Subject: [PATCH] Add Mastodon social link (#389) Closes #389 Closes #354 --- awesome-cv.cls | 10 ++++++++++ 1 file changed, 10 insertions(+) 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}}% {}% {%