2e362042c2
* 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>
15 lines
303 B
Markdown
15 lines
303 B
Markdown
---
|
|
'@astrojs/rss': minor
|
|
---
|
|
|
|
Added `trailingSlash` option to control whether or not the emitted URLs should have trailing slashes.
|
|
|
|
```js
|
|
import rss from '@astrojs/rss';
|
|
|
|
export const get = () => rss({
|
|
trailingSlash: false
|
|
});
|
|
```
|
|
|
|
By passing `false`, the emitted links won't have trailing slashes.
|