posquit0 / Awesome-CV

:page_facing_up: Awesome CV is LaTeX template for your outstanding job application
LaTeX Project Public License v1.3c
23.03k stars 4.79k forks source link

How to have homepage only displayed the domain name? #180

Open ooker777 opened 6 years ago

ooker777 commented 6 years ago

How to make the CV to display my homepage as

www.example.com

but the actual link is

www.example.com/google-analysis-tracking 

so that click count can be tracked?

Also asked on Stack Exchange

johannesbottcher commented 6 years ago

This is hard coded in the template and cannot be changed without changing the class file according to the license and copyright conditions.

johannesbottcher commented 6 years ago

You can of course always patch. But as i said so many times before in so many threads and questions: Templates are designed to be fixed and not changed.

\usepackage{xpatch}
\makeatletter
\tracingpatches
\xpatchcmd{\makecvheader}{%
          \href{http://\@homepage}{\faHome\acvHeaderIconSep\@homepage}%
      }
      {\href{http://www.example.com/google-analysis-tracking}{www.example.com}%
      }{}{}
\makeatother