{{- $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>This is the design portfolio for <a href="https://andrewgioia.com">Andrew Gioia</a>, co-founder of TeachBoost and current Staff Designer at SchoolStatus.</p>
        <div>{{ partial "icon.html" (dict "name" "cc") }} 2026 BY-NC-ND. Please share this responsibly.</div>
    </div>
</section>