Skip to content

Commit

Permalink
[docs] fix indents (#11786)
Browse files Browse the repository at this point in the history
  • Loading branch information
liruifengv authored and ematipico committed Aug 21, 2024
1 parent e73d31a commit 9b2d802
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/astro/src/types/public/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1992,8 +1992,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(),
Expand Down Expand Up @@ -2024,13 +2024,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 />
Expand Down

0 comments on commit 9b2d802

Please sign in to comment.