diff options
author | 2021-04-30 10:52:00 -0600 | |
---|---|---|
committer | 2021-04-30 11:52:00 -0500 | |
commit | 1d498facc8f78a3ffbfecd05cc6ecd45e8a4a1ae (patch) | |
tree | c6ce9bbda2a8c5a62a1f4482719b2ce59adf22bb /docs/api.md | |
parent | f39a91e6ecbcf5c3c2f431fa8dfc3fbc9a71d89a (diff) | |
download | astro-1d498facc8f78a3ffbfecd05cc6ecd45e8a4a1ae.tar.gz astro-1d498facc8f78a3ffbfecd05cc6ecd45e8a4a1ae.tar.zst astro-1d498facc8f78a3ffbfecd05cc6ecd45e8a4a1ae.zip |
Fix RSS dategen (#156)
Diffstat (limited to 'docs/api.md')
-rw-r--r-- | docs/api.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/api.md b/docs/api.md index 805fb6824..e45c87bd8 100644 --- a/docs/api.md +++ b/docs/api.md @@ -47,8 +47,8 @@ const data = Astro.fetchContent('../pages/post/*.md'); // returns an array of po `Astro.request` returns an object with the following properties: -| Name | Type | Description | -| :----- | :------- | :--------------------------------------------------------------------------------------------------------- | +| Name | Type | Description | +| :---- | :---- | :------------------------------------- | | `url` | `URL` | The URL of the request being rendered. | ### `collection` @@ -128,7 +128,7 @@ export async function createCollection() { item: (item) => ({ title: item.title, description: item.description, - pubDate: item.pubDate, + pubDate: item.pubDate + 'Z', // enforce GMT timezone (otherwise it’ll be different based on where it’s built) /** (optional) add arbitrary XML to each <item> */ customData: `<itunes:episodeType>${item.type}</itunes:episodeType> <itunes:duration>${item.duration}</itunes:duration> |