Skip to content

Commit

Permalink
Add \dateofbirth command (posquit0#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Würfl authored and OJFord committed Dec 18, 2021
1 parent 44c5ec3 commit 52ef4af
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions awesome-cv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@
% Usage: \email{<email address>}
\newcommand*{\email}[1]{\def\@email{#1}}

% Defines writer's date of birth (optional)
% Usage: \dateofbirth{<date>}
\newcommand*{\dateofbirth}[1]{\def\@dateofbirth{#1}}

% Defines writer's homepage (optional)
% Usage: \homepage{<url>}
\newcommand*{\homepage}[1]{\def\@homepage{#1}}
Expand Down Expand Up @@ -475,6 +479,13 @@
\ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}%
\href{mailto:\@email}{\faEnvelope\acvHeaderIconSep\@email}%
}%
\ifthenelse{\isundefined{\@dateofbirth}}%
{}%
{%
\ifbool{isstart}{\setbool{isstart}{false}}{\acvHeaderSocialSep}%
% \mbox prevents wrapping of elements%
\mbox{\faBirthdayCake\acvHeaderIconSep\@dateofbirth}%
}%
\ifthenelse{\isundefined{\@homepage}}%
{}%
{%
Expand Down
1 change: 1 addition & 0 deletions examples/coverletter.tex
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

\mobile{(+82) 10-9030-1843}
\email{posquit0.bj@gmail.com}
%\dateofbirth{January 1st, 1970}
\homepage{www.posquit0.com}
\github{posquit0}
\linkedin{posquit0}
Expand Down
1 change: 1 addition & 0 deletions examples/cv.tex
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

\mobile{(+82) 10-9030-1843}
\email{posquit0.bj@gmail.com}
%\dateofbirth{January 1st, 1970}
\homepage{www.posquit0.com}
\github{posquit0}
\linkedin{posquit0}
Expand Down
1 change: 1 addition & 0 deletions examples/resume.tex
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

\mobile{(+82) 10-9030-1843}
\email{posquit0.bj@gmail.com}
%\dateofbirth{January 1st, 1970}
\homepage{www.posquit0.com}
\github{posquit0}
\linkedin{posquit0}
Expand Down

0 comments on commit 52ef4af

Please sign in to comment.