{{ define "main" }}
<main class="list container py-6">
    {{- if or .Title .Content -}}
    <div class="row py-3">
        <div class="col">
            {{ with .Title }}<h1>{{ . }}</h1>{{ end }}
            {{- with .Content -}}
            <div class="content">
                {{ . }}
            </div>
            {{- end -}}
        </div>
    </div>
    {{- end -}}
    <div class="row row-cols-1 row-cols-lg-3">
        {{ range $name, $taxonomy := .Site.Taxonomies.tags }}
        <div class="col my-1">
            <a href="{{ $.Site.BaseURL }}tags/{{ $name }}/" style="text-decoration: none;">
                <div class="card-regular h-100" >
                    <div class="card-body" >
                        <h5 class="lead" style="margin-bottom: 0px; "><i class="fas fa-tag" style="font-size: 0.8em;"></i> {{ $name }}</h4> {{ len $taxonomy }} articles
                    </div>
                </div>
            </a>
        </div>
        {{ end }}

    </div>
</main>
{{ end }}
