0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/.changeset/popular-rules-divide.md
Emanuele Stoppa 2e362042c2
feat(rss): add option to remove the trailing slash (#6453)
* feat(rss): add option to remove the trailing slash

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* suggestions

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-03-09 07:57:03 +00:00

303 B

@astrojs/rss
minor

Added trailingSlash option to control whether or not the emitted URLs should have trailing slashes.

import rss from '@astrojs/rss';

export const get = () => rss({
  trailingSlash: false
});

By passing false, the emitted links won't have trailing slashes.