{{- $footnotes := slice -}}
{{- with .Params.footnotes -}}
    {{- $footnotes = . -}}
{{- else -}}
    {{- with .Params.study.footnotes -}}
        {{- $footnotes = . -}}
    {{- end -}}
{{- end -}}

{{- if gt (len $footnotes) 0 -}}
<section id="footnotes">
    <big>Ag</big>
    <ul aria-label="Footnotes">
        {{- range $footnotes -}}
        <li class="footnote">
            {{- with .symbol -}}
            <span class="symbol">{{ . | safeHTML }}</span>
            {{- end -}}
            {{- with .note -}}
            <span class="note">{{ . }}</span>
            {{- end -}}
        </li>
        {{- end -}}
    </ul>
</section>
{{- end -}}

<section id="end">
    {{ if eq (len $footnotes) 0 }}<big>Ag</big>{{ end }}
    <div class="text">
        <p>
            Product design portfolio for <a href="https://andrewgioia.com">Andrew Gioia</a>, co-founder of TeachBoost and current Principal Designer at SchoolStatus.
        </p>
        <menu>
            <li>
                <a href="/#studies">Case studies</a>
            </li>
            <li>
                <a href="https://linkedin.com/in/andrewgioia">Get in touch</a>
            </li>
            <li>
                <a href="https://github.com/andrewgioia">GitHub</a>
            </li>
        </menu>
        <p>
            {{ partial "icon.html" (dict "name" "cc") }} 2026 BY-NC-ND. Please share this responsibly.
        </p>
    </div>
</section>