mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Socials: Add gaming services (Steam, Xbox, Playstation, BattleNet)
This commit is contained in:
parent
c895ef1f90
commit
c88397528c
4 changed files with 24 additions and 0 deletions
12
moderncv.cls
12
moderncv.cls
|
|
@ -276,6 +276,10 @@
|
|||
% - "youtube"
|
||||
% - "tiktok"
|
||||
% - "instagram"
|
||||
% - "steam
|
||||
% - "xbox"
|
||||
% - "playstation"
|
||||
% - "battlenet"
|
||||
\collectionnew{socials}
|
||||
\NewDocumentCommand{\social}{O{}O{}m}{%
|
||||
\ifthenelse{\equal{#2}{}}%
|
||||
|
|
@ -303,6 +307,10 @@
|
|||
\ifthenelse{\equal{#1}{youtube}} {\collectionadd[youtube]{socials} {\protect\httpslink[#3]{youtube.com/#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{tiktok}} {\collectionadd[tiktok]{socials} {\protect\httpslink[#3]{tiktok.com/@#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{instagram}} {\collectionadd[instagram]{socials} {\protect\httpslink[#3]{instagram.com/#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{steam}} {\collectionadd[steam]{socials} {\protect\httpslink[#3]{steamcommunity.com/id/#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{xbox}} {\collectionadd[xbox]{socials} {\protect\httpslink[#3]{account.xbox.com/profile?gamertag=#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{playstation}} {\collectionadd[playstation]{socials} {#3}} {}%
|
||||
\ifthenelse{\equal{#1}{battlenet}} {\collectionadd[battlenet]{socials} {#3}} {}%
|
||||
}
|
||||
{\collectionadd[#1]{socials}{\protect\httpslink[#3]{#2}}}}%
|
||||
|
||||
|
|
@ -363,6 +371,10 @@
|
|||
\newcommand*{\youtubesocialsymbol} {}
|
||||
\newcommand*{\tiktoksocialsymbol} {}
|
||||
\newcommand*{\instagramsocialsymbol} {}
|
||||
\newcommand*{\steamsocialsymbol} {}
|
||||
\newcommand*{\xboxsocialsymbol} {}
|
||||
\newcommand*{\playstationsocialsymbol} {}
|
||||
\newcommand*{\battlenetsocialsymbol} {}
|
||||
|
||||
% other
|
||||
%------
|
||||
|
|
|
|||
|
|
@ -53,6 +53,10 @@
|
|||
\renewcommand*{\youtubesocialsymbol} {{\small\faYoutube}~}
|
||||
\renewcommand*{\tiktoksocialsymbol} {{\small\faTiktok}~}
|
||||
\renewcommand*{\instagramsocialsymbol} {{\small\faInstagram}~}
|
||||
\renewcommand*{\steamsocialsymbol} {{\small\faSteam}~}
|
||||
\renewcommand*{\xboxsocialsymbol} {{\small\faXbox}~}
|
||||
\renewcommand*{\playstationsocialsymbol} {{\small\faPlaystation}~}
|
||||
\renewcommand*{\battlenetsocialsymbol} {{\small\faBattleNet}~}
|
||||
%\renewcommand*{\signalsocialsymbol} {}
|
||||
%\renewcommand*{\matrixsocialsymbol} {}
|
||||
\renewcommand*{\bornsymbol} {{\small\faAsterisk}~} % alternative: \faBabyCarriage
|
||||
|
|
|
|||
|
|
@ -51,6 +51,10 @@
|
|||
\renewcommand*{\youtubesocialsymbol} {\textbf{yt}~}
|
||||
\renewcommand*{\tiktoksocialsymbol} {\textbf{tok}~}
|
||||
\renewcommand*{\instagramsocialsymbol} {\textbf{insta}~}
|
||||
\renewcommand*{\steamsocialsymbol} {\textbf{st}~}
|
||||
\renewcommand*{\xboxsocialsymbol} {\textbf{xb}~}
|
||||
\renewcommand*{\playstationsocialsymbol} {\textbf{psn}~}
|
||||
\renewcommand*{\battlenetsocialsymbol} {\textbf{bn}~}
|
||||
|
||||
\renewcommand*{\listitemsymbol} {\labelitemi~}
|
||||
|
||||
|
|
|
|||
|
|
@ -80,6 +80,10 @@
|
|||
\social[tiktok]{jdoe} % optional, remove / comment the line if not wanted
|
||||
\social[instagram]{jdoe} % optional, remove / comment the line if not wanted
|
||||
|
||||
\social[steam]{jdoe} % optional, remove / comment the line if not wanted
|
||||
\social[xbox]{jdoe} % optional, remove / comment the line if not wanted
|
||||
\social[playstation]{jdoe} % optional, remove / comment the line if not wanted
|
||||
\social[battlenet]{jdoe\#0000} % optional, remove / comment the line if not wanted
|
||||
|
||||
|
||||
\extrainfo{additional information} % optional, remove / comment the line if not wanted
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue