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
// (optional) add trailing slashes to URLs (default: true)
77
+
trailingSlash:false
76
78
});
77
79
}
78
80
```
@@ -185,6 +187,21 @@ The `content` key contains the full content of the post as HTML. This allows you
185
187
186
188
[See our RSS documentation](https://docs.astro.build/en/guides/rss/#including-full-post-content) for examples using content collections and glob imports.
187
189
190
+
### `trailingSlash`
191
+
192
+
Type: `boolean (optional)`
193
+
Default: `true`
194
+
195
+
By default, the library will add trailing slashes to the emitted URLs. To prevent this behavior, add `trailingSlash: false` to the `rss` function.
196
+
197
+
```js
198
+
import rss from '@astrojs/rss';
199
+
200
+
export const get = () => rss({
201
+
trailingSlash: false
202
+
});
203
+
```
204
+
188
205
## `rssSchema`
189
206
190
207
When using content collections, you can configure your collection schema to enforce expected [`RSSFeedItem`](#items) properties. Import and apply `rssSchema` to ensure that each collection entry produces a valid RSS feed item:
0 commit comments