{{- partial "nav.html" . -}}
{{- partial "meta-custom.html" . -}}

{{ if not (eq .Layout "page") }}
<div class="post-date mt-2
            text-sm text-henryt-lighter">{{ .Date.Format "Jan 2006" }}</div>
{{ end }}

{{ if .Params.externalLink }}
<div class="post-permalink mt-1">
    <a class="text-sm text-henryt-light" href="{{ .RelPermalink }}">Permalink</a>
</div>
{{ end }}

{{ $related := .Site.RegularPages.Related . }}
{{ with $related }}
<div class="related-posts pt-6 pb-10">
    <h4 class="font-bold text-henryt-light"> Related: </h4>
    <ul class="post-related-links mt-2 ms-3.5">
        {{ range . }}
        <li class="related-post list-disc w-fit text-henryt-lighter ">
            <a class="decoration-henryt-lightest" href="{{ .RelPermalink }}">{{ .Title }}</a>
        </li>
        {{ end }}
    </ul>
</div>
{{ end }}