Skip to content

Commit

Permalink
RSS guide: Use new URL() instead of template literal (#8632)
Browse files Browse the repository at this point in the history
* Use `new URL()` instead of string concatenation

* Update translations

* Only update English

---------
Co-authored-by: Sarah Rainsberger <[email protected]>
Co-authored-by: Yan <[email protected]>
Co-authored-by: Atharva <[email protected]>
  • Loading branch information
evadecker authored Jun 24, 2024
1 parent 4c2e8ee commit 3ca4c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/en/guides/rss.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ To enable, add a `<link>` tag with the following attributes to your site's `head
rel="alternate"
type="application/rss+xml"
title="Your Site's Title"
href={`${Astro.site}rss.xml`}
href={new URL("rss.xml", Astro.site)}
/>
```

Expand Down

0 comments on commit 3ca4c84

Please sign in to comment.