A new "rss" Parameter to Control Post Visibility in RSS Feeds #19
Closed
i-shivamsoni
started this conversation in
General
Replies: 2 comments
-
I use similar setting for the search function Actually one can customize the RSS templates by https://gohugo.io/templates/rss/. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you so much for the reply, now i have customized the RSS template for the above feature. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, all posts in this theme are automatically included in the RSS feeds, which might not always be desirable. There are scenarios where users might prefer to keep certain posts internal or only for direct website visitors, without broadcasting them via RSS feeds.
I propose the introduction of a new parameter for posts, named rss, which controls whether a post is included in the RSS feeds. This parameter can have two possible values:
rss = "on": The post is included in the RSS feeds. This is the default behavior, ensuring backward compatibility.
rss = "off": The post is excluded from the RSS feeds, making it accessible only through direct website navigation or other specified channels.
Implementation Details:
The rss parameter could be added to the post metadata section, allowing content creators to easily specify their preference on a per-post basis. For example:
yaml
Beta Was this translation helpful? Give feedback.
All reactions