diff options
author | 2022-12-14 13:42:13 +0000 | |
---|---|---|
committer | 2022-12-14 13:42:13 +0000 | |
commit | fa96a01fc6f7f8757f0143c75e34f366fe73073e (patch) | |
tree | c7a855ec77cf0f609b1b8e44847c6c08beb049aa /packages/astro-rss/src | |
parent | c4155daeabe1b8191ad9ed1fa5893759f1fe5c4c (diff) | |
download | astro-fa96a01fc6f7f8757f0143c75e34f366fe73073e.tar.gz astro-fa96a01fc6f7f8757f0143c75e34f366fe73073e.tar.zst astro-fa96a01fc6f7f8757f0143c75e34f366fe73073e.zip |
[ci] format
Diffstat (limited to 'packages/astro-rss/src')
-rw-r--r-- | packages/astro-rss/src/index.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/astro-rss/src/index.ts b/packages/astro-rss/src/index.ts index 3bac3feb2..a138bebde 100644 --- a/packages/astro-rss/src/index.ts +++ b/packages/astro-rss/src/index.ts @@ -105,7 +105,10 @@ export async function generateRSS({ rssOptions, items }: GenerateRSSArgs): Promi const root: any = { '?xml': { '@_version': '1.0', '@_encoding': 'UTF-8' } }; if (typeof rssOptions.stylesheet === 'string') { const isXSL = /\.xsl$/i.test(rssOptions.stylesheet); - root['?xml-stylesheet'] = { '@_href': rssOptions.stylesheet, ...(isXSL && { '@_type': 'text/xsl' }) }; + root['?xml-stylesheet'] = { + '@_href': rssOptions.stylesheet, + ...(isXSL && { '@_type': 'text/xsl' }), + }; } root.rss = { '@_version': '2.0' }; if (items.find((result) => result.content)) { |