\documentclass[8pt,xcolor={table,dvipsnames,t}]{beamer}
\usepackage{graphicx}
\usepackage{parskip}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{environ}
\usepackage{tcolorbox}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{tikz,ifthen}
\usepackage{xparse}
\usepackage{listings}
\usepackage{minted}
\usepackage{multicol}
\usetikzlibrary{calc,intersections,through,backgrounds}

\usepackage[english]{babel}
\usepackage[autostyle, english = american]{csquotes}
\MakeOuterQuote{"}
\usepackage[lined]{algorithm2e}
\setlength{\parskip}{\baselineskip} 

\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}

\usepackage{pgfpages}

\ifdef{\ifnotes}{
  \ifnotes
    \setbeameroption{show notes on second screen=right}
  \fi
}{}

\setbeamertemplate{note page}{\pagecolor{yellow!5}\insertnote}
\usepackage{palatino}

\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamercolor{block body}{bg=orange, fg=black}

%
% Custom font for a frame.
%
\newcommand{\customframefont}[1]{
\setbeamertemplate{itemize/enumerate body begin}{#1}
\setbeamertemplate{itemize/enumerate subbody begin}{#1}
}

\NewEnviron{framefont}[1]{
\customframefont{#1} % for itemize/enumerate
{#1 % For the text outside itemize/enumerate
\BODY
}
\customframefont{\normalsize}
}

\usetheme{UVic}


\title{UVic \LaTeX beamer template}
\author{\texorpdfstring{Author\newline\newline\url{email@uvic.ca}}{Author}}
\date{\today}

\begin{document}

\begin{frame}
  \titlepage
\end{frame}

\begin{frame}{Template}

    Common text.

    \begin{itemize}
        \item Item 1.
        \begin{itemize}
            \item Item 2.
        \end{itemize}
    \end{itemize}    

\end{frame}

\end{document}
