Partial to loop through an array parameter, write the corresponding page title in a link to said page

structure

content/
├── posts/
│   └── test.md
├── requirements/
│   ├── dependencies.md
│   └── operating-system.md
└── _index.md

content/posts/test.md

+++
title = 'Test'
date = 2022-11-03T12:39:15-07:00
draft = false
requirements = ['/requirements/dependencies','/requirements/operating-system']
+++

layouts/partials/requirements-list.html

{{ with .Params.requirements }}
  {{ range . }}
    {{ with site.GetPage . }}
      <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
    {{ else }}
      {{ errorf "Unable to get page %q" . }}
    {{ end }}
  {{ end }}
{{ end }}

rendered

<a href="/requirements/dependencies/">Dependencies</a>
<a href="/requirements/operating-system/">Operating System</a>