Closed xuhdev closed 7 months ago
I started a thread on hugo forum, which may be helpful.
Hi @xuhdev,
I never had the insight that someone would like to disable RSS. I will take a look at it
Funny thing is there is already a provision to use disableKinds for RSS and it just so happens that my smartass decided to comment it out for no apparent reason and forgotten about it... XD
{{/*{{- with (not (in (.Site.Language.Get "disableKinds") "RSS")) }}*/}}
· <a href="{{ "posts/index.xml" | absLangURL }}" target="_blank" title="rss">{{ partial "svg.html" (dict "context" . "name" "rss") }}</a>
{{/*{{ end }}*/}}
I tried to uncomment them directly, but it doesn't work...
Yep, I did the same. Looks like .Site.Language.Get
is either depreciated or is not working as intended.
I will try to smash my head onto this and hopefully come out with a working stuff
Just got a revelation... And My reaction was WTF!?
https://discourse.gohugo.io/t/disablekinds-and-rsslink-not-playing-together/7313/13
From Our Man Himself (bep)
RSS is not a kind (or it is, but that is for internal use and will be removed soon). To disable RSS you need to define output formats…
Hi @xuhdev,
Sorry for earlier post. I just saw your hugo forum thread and realized you're asking of the same thing.
I have pushed a temporary fix. Please test it out let me know if RSS is being generated or not.
You have to put below in hugo.toml
[outputs]
home = ['html']
page = ['html']
section = ['html']
taxonomy = ['html']
term = ['html']
Keeping this Issue opened for a week. Hoping to get a response from you
Yes, it addressed the issue! Thanks!!
Describe the bug After disabling RSS in
hugo.toml
viadisableKinds = ["RSS"]
, the footer RSS icon is still visible, and it links to a 404 page.To Reproduce Steps to reproduce the behavior:
disableKinds = ["RSS"]
tohugo.toml
.Expected behavior RSS icon should become invisible.
Hugo (please complete the following information):