Fixed the configuration according to this blog post
https://davidbuck.net/post/setup-hugo-to-output-only-an-rss-feed-of-blog-posts/
<link rel="shortcut icon" href="/favicon.png">
<!-- RSS etc -->
<link rel="shortcut icon" href="/favicon.png">
<!-- RSS etc -->
- {{ range .AlternativeOutputFormats -}}
- {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }}
- {{ end -}}
+ <link rel="alternate" type="application/rss+xml" href='{{ "feed.xml" | absURL }}' />
{{ partial "hook_head_end.html" . }}
</head>
{{ partial "hook_head_end.html" . }}
</head>
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
+ {{ range where .Site.RegularPages "Section" "posts" }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>