diff options
author | 2021-07-15 18:14:46 +0000 | |
---|---|---|
committer | 2021-07-15 18:14:46 +0000 | |
commit | f51f6c85d124226dbf35205f0550862a47ed3d5f (patch) | |
tree | 3dcdaf3019cc20362d41ae7bd791424f6e651288 /docs/src/pages/reference/api-reference.md | |
parent | 166e22bdf35b9751dc42f5cc6cb27a99b077df93 (diff) | |
download | astro-f51f6c85d124226dbf35205f0550862a47ed3d5f.tar.gz astro-f51f6c85d124226dbf35205f0550862a47ed3d5f.tar.zst astro-f51f6c85d124226dbf35205f0550862a47ed3d5f.zip |
[ci] yarn format
Diffstat (limited to 'docs/src/pages/reference/api-reference.md')
-rw-r--r-- | docs/src/pages/reference/api-reference.md | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/src/pages/reference/api-reference.md b/docs/src/pages/reference/api-reference.md index 834ab92c3..b5f4f1bf1 100644 --- a/docs/src/pages/reference/api-reference.md +++ b/docs/src/pages/reference/api-reference.md @@ -65,6 +65,7 @@ const data = Astro.fetchContent('../pages/post/*.md'); // returns an array of po `Astro.site` returns a `URL` made from `buildOptions.site` in your Astro config. If undefined, this will return a URL generated from `localhost`. ## Collections API + ### `collection` prop ```jsx @@ -158,7 +159,12 @@ Astro will generate an RSS 2.0 feed at `/feed/[collection].xml` (for example, `/ ⚠️ Even though Astro will create the RSS feed for you, you’ll still need to add `<link>` tags manually in your `<head>` HTML: ```html -<link rel="alternate" type="application/rss+xml" title="My RSS Feed" href="/feed/podcast.xml" /> +<link + rel="alternate" + type="application/rss+xml" + title="My RSS Feed" + href="/feed/podcast.xml" +/> ``` ## `import.meta` @@ -176,4 +182,3 @@ export default function () { ``` [canonical]: https://en.wikipedia.org/wiki/Canonical_link_element - |