Question about Hugo RSS 2.0 template

As we read:

Hugo ships with its own RSS 2.0 template. The embedded template will be sufficient for most use cases.

If we look into the template, the main specification is RSS 2.0, however my question is, what is the purpose of Atom namespace declaration?


The only reference later in file is

{{- with .OutputFormats.Get "RSS" -}}
    {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end -}}

Which self-referencing to that same file in RSS 2.0 format, not Atom. Or I am missing something?

If we look at Google example for RSS and Atom, both have different things in use.

Is the purpose of that to refer in RSS 2.0 to separate file in Atom format? If yes, how to specify Atom output in config so that <atom:link href will refers to Atom file and not self-referencing to RSS 2.0 file?

Its a bit confusing (for me) the purpose of it, even if you read this atom:link.

ATOM will be used additional to add missing functions/attributes/values to RSS.

my samples for RSS/ATOM/JSON feeds

:wink: HTH

1 Like