{{ define "main" }}
<h1 style="color: whitesmoke">Notes</h1>

<div style="color: whitesmoke;">
    {{ .Content }}
</div>


<ul class="notes-list" style="list-style-type:none">
    {{ if (.Pages.ByDate.Reverse) }}
    {{ range .Pages.ByDate.Reverse }}
    <li class="block">
        <h2>
            <a href="{{ .Permalink }} " style="color: whitesmoke;"> {{ .Title }} <i class="fas fa-link"></i></a>
        </h2>
        <small style="color: whitesmoke;">{{ .Date.Format "2006-01-02" }}</small>
        {{ if .Params.subtitle }}
        <p style="color: whitesmoke">{{ .Params.subtitle }}</p>
        {{ end }}
    </li>
    {{ end }}
    {{ else }}
    No notes found.
    {{ end }}
</ul>
{{ end }}
