Skip to content

Commit

Permalink
fix(rss): Make sure enclosure links are absolutes
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Mar 17, 2024
1 parent 23ba884 commit 6ee6e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/rss/catalogue.astro
Expand Up @@ -49,7 +49,7 @@ function makeOutro() {
<title><![CDATA[${entry.data.title}]]></title>
<link>${getBaseSiteURL()}catalogue</link>
<description><![CDATA[Entry for ${entry.data.title}]]></description>
<enclosure url="${(await getImage({ src: entry.data.cover, width: 240 })).src}" length="0" type="image/${entry.data.cover.format}" />
<enclosure url="${getBaseSiteURL().slice(0, -1) + (await getImage({ src: entry.data.cover, width: 240 })).src}" length="0" type="image/${entry.data.cover.format}" />
<pubDate>${new Date(entry.data.finishedDate).toUTCString()}</pubDate>
<guid isPermaLink="false"><![CDATA[${entry.data.title}]]></guid>
<content:encoded><![CDATA[${prettyRating(entry.data.rating)}<br/>`.trim();
Expand Down

0 comments on commit 6ee6e7b

Please sign in to comment.