\documentclass[
  year = 2018,
  eventsCsv = ./data/holidays-compact.csv,
  moonsCsv = ./data/moonphases-2018.csv,
  markDefaultsCsv = ./data/mark_defaults.csv,
  imageFolder = ./photos/,
  a4Paper,
  hMargin = 7mm,
  topMargin = 7mm,
  bottomMargin = 7mm,
]{wallcalendar}

\makeatletter

\usepackage{fontspec}
\defaultfontfeatures{Ligatures={TeX}}
\setmainfont{Alegreya Sans}

\newfontfamily\EmojiFont{Noto Color Emoji}[Renderer=Harfbuzz]
%\newfontfamily\EmojiFont{Twemoji Mozilla}[Renderer=Harfbuzz]

\newcommand\emoji[1]{{\EmojiFont\selectfont #1}}

\newcommand\plannerYearFmt{\fontsize{26}{26}\selectfont\color{orangegold}}

\renewcommand\symbolSeparator{,}

\newlength\plannerNotesSep
\setlength{\plannerNotesSep}{3mm}

\newcommand\preYearPlannerPageHook{%
  \setlength{\markNumberAbove}{-9pt}%
  \setlength{\markNumberRight}{-6pt}%
  \setlength{\markDayTextAbove}{-11pt}%
  \setlength{\markDayTextRight}{-6pt}%
}

\newcommand\postYearPlannerPageHook{%
  \setlength{\markNumberAbove}{-10pt}%
  \setlength{\markNumberRight}{-3pt}%
  \setlength{\markDayTextAbove}{-10pt}%
  \setlength{\markDayTextRight}{-3pt}%
}

\newcommand\printPlannerTitle{\plannerYearFmt \CalendarYear}

\newcommand\YearPlannerPage{%
\newpage
\ifvarnishmask
\mbox{}
\else
\preYearPlannerPageHook

\vspace*{10mm}

{\centering

{\printPlannerTitle}

\vspace*{7mm}

\YearPlannerPortrait

\vspace*{\plannerNotesSep}

\plannerEvents

}
\postYearPlannerPageHook

\fi
}

\makeatother

\begin{document}

\YearPlannerPage

\end{document}
