diff options
author | 2023-07-01 16:34:49 +0200 | |
---|---|---|
committer | 2023-07-01 16:34:49 +0200 | |
commit | bc9ce779d3c02e7a960a8a79ce2610a96b2afcb7 (patch) | |
tree | ca98857efd8c7e26786d45d21fa220f89646f128 /packages/integrations/prefetch | |
parent | 0251e4e6cf512967e2421c2389aafef17fb89b79 (diff) | |
download | astro-bc9ce779d3c02e7a960a8a79ce2610a96b2afcb7.tar.gz astro-bc9ce779d3c02e7a960a8a79ce2610a96b2afcb7.tar.zst astro-bc9ce779d3c02e7a960a8a79ce2610a96b2afcb7.zip |
Move code block titles into comments to match docs (#7543)
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/prefetch')
-rw-r--r-- | packages/integrations/prefetch/README.md | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/packages/integrations/prefetch/README.md b/packages/integrations/prefetch/README.md index 8f63913ab..4dab2121b 100644 --- a/packages/integrations/prefetch/README.md +++ b/packages/integrations/prefetch/README.md @@ -41,9 +41,8 @@ npm install @astrojs/prefetch Then, apply this integration to your `astro.config.*` file using the `integrations` property: -**`astro.config.mjs`** - -```js ins={2} "prefetch()" +```js ins={3} "prefetch()" +// astro.config.mjs import { defineConfig } from 'astro/config'; import prefetch from '@astrojs/prefetch'; @@ -65,9 +64,8 @@ The Astro Prefetch integration handles which links on the site are prefetched an By default the prefetch script searches the page for any links that include a `rel="prefetch"` attribute, ex: `<a rel="prefetch" />` or `<a rel="nofollow prefetch" />`. This behavior can be changed in your `astro.config.*` file to use a custom query selector when finding prefetch links. -**`astro.config.mjs`** - ```js +// astro.config.mjs import { defineConfig } from 'astro/config'; import prefetch from '@astrojs/prefetch'; @@ -86,9 +84,8 @@ export default defineConfig({ By default the prefetch script will only prefetch one link at a time. This behavior can be changed in your `astro.config.*` file to increase the limit for concurrent downloads. -**`astro.config.mjs`** - ```js +// astro.config.mjs import { defineConfig } from 'astro/config'; import prefetch from '@astrojs/prefetch'; |