diff options
author | 2024-08-20 17:26:36 +0800 | |
---|---|---|
committer | 2024-08-20 10:26:36 +0100 | |
commit | 88b6dca63b56ef12b92543384365f8f7f1cad85d (patch) | |
tree | 81caa3d186b7fe1f28559b6ae17f81ff906cf05a | |
parent | b5584248b1b5bc7b6a99d207f6eb6edee6f957f8 (diff) | |
download | astro-88b6dca63b56ef12b92543384365f8f7f1cad85d.tar.gz astro-88b6dca63b56ef12b92543384365f8f7f1cad85d.tar.zst astro-88b6dca63b56ef12b92543384365f8f7f1cad85d.zip |
[docs] fix indents (#11786)
-rw-r--r-- | packages/astro/src/@types/astro.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 6dad34561..c584e5657 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -2359,8 +2359,8 @@ export interface AstroUserConfig { * * const blog = defineCollection({ * // For content layer you no longer define a `type` - * type: 'content', - * loader: glob({ pattern: '**\/[^_]*.md', base: "./src/data/blog" }), + * type: 'content', + * loader: glob({ pattern: '**\/[^_]*.md', base: "./src/data/blog" }), * schema: z.object({ * title: z.string(), * description: z.string(), @@ -2391,13 +2391,13 @@ export interface AstroUserConfig { * ```astro ins={4,9} del={3,8} * // src/pages/index.astro * --- - * import { getEntry } from 'astro:content'; - * import { getEntry, render } from 'astro:content'; + * import { getEntry } from 'astro:content'; + * import { getEntry, render } from 'astro:content'; * - * const post = await getEntry('blog', params.slug); + * const post = await getEntry('blog', params.slug); * - * const { Content, headings } = await post.render(); - * const { Content, headings } = await render(post); + * const { Content, headings } = await post.render(); + * const { Content, headings } = await render(post); * --- * * <Content /> |