You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While reviewing the frontmatter docs I found there is an xml param that controls whether or not a page is featured in the sitemap.xml, however, the rss.xml currently has no logic to exclude content from it using this xml param.
Here are a few options:
Add functionality to rss.xml to exclude pages that have xml: true. Code can be found in 🐛 Fix(rss.xml): Add missing xml frontmatter logic #2433 to achieve this. There is some risk where users may have intended to have something in the RSS feed (index.xml) but not the sitemap.xml.
Add a separate frontmatter param, such as excludeFromRSS which would be specific to excluding from the rss.xml. This gives more granular control which xml file the page is being excluded from.
Same as 2, but the xml param could be renamed to excludeFromSitemap while still leaving the old xml param functional to prevent breaking anyone's site for the time being.
Do nothing. Technically base hugo already allows excluding from RSS since the rss.xml references RegularPages. By using the build.list: never then the page is removed from all collections (lists / RegularPages) and would be excluded from rss feed. The downsides to this could be that there might be pages someone wants included in lists but they do not want it in the RSS feed.
I am in favor or 2/3, but please let me know your thoughts. Thanks kindly
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
While reviewing the frontmatter docs I found there is an
xmlparam that controls whether or not a page is featured in thesitemap.xml, however, therss.xmlcurrently has no logic to exclude content from it using thisxmlparam.Here are a few options:
rss.xmlto exclude pages that havexml: true. Code can be found in 🐛 Fix(rss.xml): Add missingxmlfrontmatter logic #2433 to achieve this. There is some risk where users may have intended to have something in the RSS feed (index.xml) but not the sitemap.xml.excludeFromRSSwhich would be specific to excluding from therss.xml. This gives more granular control which xml file the page is being excluded from.xmlparam could be renamed toexcludeFromSitemapwhile still leaving the oldxmlparam functional to prevent breaking anyone's site for the time being.rss.xmlreferences RegularPages. By using thebuild.list: neverthen the page is removed from all collections (lists / RegularPages) and would be excluded from rss feed. The downsides to this could be that there might be pages someone wants included in lists but they do not want it in the RSS feed.I am in favor or 2/3, but please let me know your thoughts. Thanks kindly
Beta Was this translation helpful? Give feedback.
All reactions