Skip to content

Commit

Permalink
i18n(zh-cn): Update 5-astro-api/2.mdx (#11124)
Browse files Browse the repository at this point in the history
Co-authored-by: Yan <[email protected]>
  • Loading branch information
Nin3lee and yanthomasdev authored Mar 3, 2025
1 parent 4886c9b commit 9081778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/zh-cn/tutorial/5-astro-api/2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import { Steps } from '@astrojs/starlight/components';

确保为数组中的每个路由都添加新的 props,并将这些 props 在函数之外的组件模板中可用。

```astro title="src/pages/tags/[tag].astro" ins={5,18} "props: {posts: allPosts}"
```astro title="src/pages/tags/[tag].astro" ins={5,18} ins="props: {posts: allPosts}"
---
import BaseLayout from '../../layouts/BaseLayout.astro';
Expand Down

0 comments on commit 9081778

Please sign in to comment.