%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode

\documentclass[$fontsize$, letterpaper]{article}

% LAYOUT
%--------------------------------
% Margins
\usepackage{geometry} 
\geometry{$geometry$}

% Do not indent paragraphs
\setlength\parindent{0in}

% Enable multicolumns
\usepackage{vwcol}

% Uncomment to suppress page numbers
\pagenumbering{gobble}

% LANGUAGE
%--------------------------------
% Set the main language
$if(lang)$
\usepackage{polyglossia}
\setmainlanguage{$lang$}
$endif$

% TYPOGRAPHY
%--------------------------------
\usepackage{fontspec} 
\usepackage{xunicode}
\usepackage{xltxtra}
% converts LaTeX specials (quotes, dashes etc.) to Unicode
\defaultfontfeatures{Mapping=tex-text}
\setromanfont [Ligatures={Common}, Numbers={OldStyle}]{$mainfont$}
% Cool ampersand
\newcommand{\amper}{{\fontspec[Scale=.95]{$mainfont$}\selectfont\itshape\&}}

% HEADINGS
%--------------------------------
\usepackage{sectsty} 
\usepackage[normalem]{ulem} 
\sectionfont{\rmfamily\mdseries} 
\subsectionfont{\rmfamily\mdseries\scshape\normalsize} 
\subsubsectionfont{\rmfamily\bfseries\upshape\normalsize} 

% PDF SETUP
%--------------------------------
\usepackage{hyperref}
\hypersetup
{
  pdfauthor={$name$},
  pdfsubject={$name$'s CV},
  pdftitle={$name$'s CV},
  colorlinks, breaklinks, xetex, bookmarks,
  filecolor=black,
  urlcolor=[rgb]{0.117,0.682,0.858},
  linkcolor=[rgb]{0.117,0.682,0.858},
  linkcolor=[rgb]{0.117,0.682,0.858},
  citecolor=[rgb]{0.117,0.682,0.858}
}

% DOCUMENT
%--------------------------------
\begin{document}

{\LARGE $name$}\\
\vspace{-5pt}

\begin{center}
  \fbox{
    \begin{minipage}[t]{$contact_col$}
      $address$\\
      $phone$\\
      $if(email)$
        \href{mailto:$email$}{$email$}\\
      $endif$
      $if(website)$
        \href{http://$website$}{$website$}\\
      $endif$
      $if(github)$
        \href{http://$github$}{$github$}\\
      $endif$
      $if(linkedin)$
        \href{http://$linkedin$}{$linkedin$}\\
      $endif$
    \end{minipage}
  }
  \hspace*{$col_sep$}
  \fbox{
    \begin{minipage}[t]{$profile_col$}

      $if(profile)$
        $profile$
      $endif$

    \end{minipage}
  }
\end{center}

\fbox{
  \begin{minipage}[t]{\textwidth}
    \subsection*{Skills}
    $if(skills)$
      \begin{itemize}
        $for(skills)$
          \item $skills.skill$ -- $skills.info$
        $endfor$
      \end{itemize}
    $endif$
  \end{minipage}
}

\fbox{
  \begin{minipage}{3in} $if(education)$
      \section*{Education}
        \noindent
        $for(education)$
          $education.degree$ in $education.major$\\
          \emph{$education.university$}

          $if(education.completed)$
          $else$
            Currently attending\\
          $endif$
        $endfor$
    $endif$
  \end{minipage}
  \hspace*{$col_sep$}
  \begin{minipage}{3in}
    $if(languages)$
    \section*{Languages}
    $for(languages)$
    \emph{$languages$}\\
    $endfor$
    $endif$
  \end{minipage}
}

\fbox{
  \begin{minipage}{\textwidth}
    \section*{Experience}
    \noindent
    $for(experience)$
    \textsc{$experience.employer$}\\
    \emph{$experience.title$}\\
    $experience.city$\\
    $experience.description$\\[$par_separation$]
    $endfor$
  \end{minipage}
}

\end{document}
