Integrate cgit in page layout

cgit is a fast git repository browser written in C that comes with a plain and simple layout that can be easily customized with CSS.
But what if you want to embed cgit into your webpage’s layout without andy manual interaction?
In this post I briefly describe three approaches how cgit can be integrated in a dynamic website layout.