I have been looking for a way to make this work also…
my logic would suggest your standard code…
{{ if .RSSLink }} <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" /> {{ end }}
is at fault as it is only looking for the link name which is set by default in config to index.xml - so therefore… there is a link name set in config and your <link… will be generated and throw a 404 as you have RSS turned off in disableKinds
but, @rdwatters .RSSLink is still listed as the standard method for access in docs - template/rss
I think you are on the right track looking to the newer disableKinds array…
I have tried…
{{ if not (in .Site.DisableKinds "RSS") }} <link rel="alternate" href="{{ .RSSlink }}" type="application/rss+xml" title="{{ .Site.Title }}"> {{ end }}
also tried…
{{ if not (isset .Site.DisableKinds “RSS”) }}
but my knowledge/experience may be lacking as it throws errors either way with …
…can’t evaluate field DisableKinds
Any help in the right direction would be appreciated