
{{ define "main" }}
<main class="big-container">
    <article>
        <header>
            <h1>{{.Title}}</h1>
        </header>
        {{.Content}}
    </article>
    <ul class="toc">
    {{ range .Pages }}
        <li>
            <a class="sub-container" href="{{.Permalink}}">
                <div>
                    <span>{{.Date.Format "02. January 2006"}}</span><br>
                    <span>{{.Title}}</span>
                </div>
                {{if .Params.teaser}}
                <div class="img-container">
                    <div class="img-container-child" style="background-image: url({{.Params.teaser}})">
                    </div>
                </div>
                {{end}}
            </a>
        </li>
    {{ end }}
    </ul>
</main>
{{ end }}
