diff --git a/rendercv/themes/classic/Preamble.j2.tex b/rendercv/themes/classic/Preamble.j2.tex index e55ae57..57e1004 100644 --- a/rendercv/themes/classic/Preamble.j2.tex +++ b/rendercv/themes/classic/Preamble.j2.tex @@ -28,6 +28,7 @@ \usepackage{bookmark} % for bookmarks \usepackage{lastpage} % for getting the total number of pages \usepackage[default, type1]{sourcesanspro} % for using source sans pro font +\usepackage{ifthen} % Some settings: \pagestyle{empty} % no header or footer @@ -116,7 +117,7 @@ % save the original href command in a new command: \let\hrefWithoutArrow\href % new command for external links: -\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{#2 \raisebox{.15ex}{\footnotesize \faExternalLink*}}}} +\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{\mbox{\ifthenelse{\equal{#2}{}}{}{#2 }\raisebox{.15ex}{\footnotesize \faExternalLink*}}}} \let\originalTabularx\tabularx \let\originalEndTabularx\endtabularx