mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Added support for GitLab to \social
This commit is contained in:
parent
0d674cf4c1
commit
2033517d3f
6 changed files with 24 additions and 15 deletions
10
moderncv.cls
10
moderncv.cls
|
|
@ -257,16 +257,17 @@
|
|||
|
||||
% adds a social link to one's personal information (optional)
|
||||
% usage: \social[<optional type>][<optional url>]{<account name>}
|
||||
% where <optional type> should be either "linkedin", "xing", "twitter", "github" or "skype"
|
||||
% where <optional type> should be either "linkedin", "xing", "twitter", "github", "gitlab" or "skype"
|
||||
\collectionnew{socials}
|
||||
\NewDocumentCommand{\social}{O{}O{}m}{%
|
||||
\ifthenelse{\equal{#2}{}}%
|
||||
{%
|
||||
\ifthenelse{\equal{#1}{linkedin}}{\collectionadd[linkedin]{socials}{\protect\httplink[#3]{www.linkedin.com/in/#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{xing}} {\collectionadd[xing]{socials} {\protect\httplink[#3]{www.xing.com/profile/#3}}}{}%
|
||||
\ifthenelse{\equal{#1}{twitter}} {\collectionadd[twitter]{socials} {\protect\httplink[#3]{www.twitter.com/#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{github}} {\collectionadd[github]{socials} {\protect\httplink[#3]{www.github.com/#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{skype}} {\collectionadd[skype]{socials} {#3}} {}%
|
||||
\ifthenelse{\equal{#1}{twitter}} {\collectionadd[twitter]{socials} {\protect\httplink[#3]{www.twitter.com/#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{github}} {\collectionadd[github]{socials} {\protect\httplink[#3]{www.github.com/#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{gitlab}} {\collectionadd[gitlab]{socials} {\protect\httplink[#3]{www.gitlab.com/#3}}} {}%
|
||||
\ifthenelse{\equal{#1}{skype}} {\collectionadd[skype]{socials} {#3}} {}%
|
||||
}
|
||||
{\collectionadd[#1]{socials}{\protect\httplink[#3]{#2}}}}
|
||||
|
||||
|
|
@ -307,6 +308,7 @@
|
|||
\newcommand*{\xingsocialsymbol} {}
|
||||
\newcommand*{\twittersocialsymbol} {}
|
||||
\newcommand*{\githubsocialsymbol} {}
|
||||
\newcommand*{\gitlabsocialsymbol} {}
|
||||
\newcommand*{\skypesocialsymbol} {}
|
||||
|
||||
% other
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue