Proper way to include the various RSS/json feeds for blogs?

I’ve been gettin a deprecation error for a while:

ERROR 2022/01/30 12:11:50 Page.RSSLink is deprecated and will be removed in Hugo 0.93.0. Use the Output Format's link, e.g. something like:
    {{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}

I originally used .RSSLink based on looking at some official themes.

I just noticed this convention used in theme-ink that successfully removes that deprecation warning, but I want to make sure that I’m supporting json feeds and Podcasts.

{{ range .AlternativeOutputFormats }}
  <link
    rel="{{ .Rel }}"
    type="{{ .MediaType.Type }}"
    href="{{ .Permalink }}"
    title="{{ site.Title }}"
  />
  {{ end }}

What’s the best way for themes to support the range of alternative output formats?