From 7e67b018134c83969f8a2371a4dbf3a7797c56fd Mon Sep 17 00:00:00 2001 From: ebadf Date: Sat, 5 Dec 2015 15:05:24 -0600 Subject: [PATCH] Added stackoverflow, makefile for testing changes. --- Makefile | 3 +++ awesome-cv.cls | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..893b3d2 --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ + +test: + cd examples/ ; for f in *.tex; do xelatex $$f; done diff --git a/awesome-cv.cls b/awesome-cv.cls index 90b8e22..99fbc76 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -293,6 +293,12 @@ % Usage: \quote{} \renewcommand*{\quote}[1]{\def\@quote{#1}} +% Defines writer's stackoverflow profile (optional) +% Usage: \stackoverflow{}{so username} +% e.g.https://stackoverflow.com/users/123456/sam-smith +% would be \stackoverflow{123456}{sam-smith} +\newcommand*{\stackoverflow}[2]{\def\@stackoverflowid{#1}\def\@stackoverflowname{#2}} + %------------------------------------------------------------------------------- % Commands for extra @@ -376,6 +382,16 @@ {\@headersocialsep} \href{https://github.com/\@github}{\faGithubSquare\ \@github} } + \ifthenelse{\isundefined{\@stackoverflowid}} + {} + { + \ifbool{isstart} + { + \setbool{istart}{false} + } + {\@headersocialsep} + \href{https://stackoverflow.com/users/\@stackoverflowid}{\faStackOverflow\ \@stackoverflowname} + } \ifthenelse{\isundefined{\@linkedin}} {} {