Skip to content

Commit

Permalink
i18n(zh-cn): Update api-reference.mdx (withastro#4053)
Browse files Browse the repository at this point in the history
Co-authored-by: Yan Thomas <[email protected]>
liruifengv and yanthomasdev authored Aug 4, 2023

Unverified

This user has not yet uploaded their public signing key.
1 parent c4f92db commit 927ab81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/docs/zh-cn/reference/api-reference.mdx
Original file line number Diff line number Diff line change
@@ -445,7 +445,7 @@ const orders = Array.from(Astro.locals.orders.entries());
<h1>{title}</h1>
<ul>
{orders.map(order => {
return <li>{// 每单都有收获}</li>
return <li>{ /* 每单都有收获 */ }</li>
})}
</ul>
```
@@ -933,7 +933,7 @@ import { getEntries } from 'astro:content';
const enterprisePost = await getEntry('blog', 'enterprise');
// 获取由 `data.relatedPosts` 引用的相关帖子
const captainProfile = await getEntries(enterprise.data.relatedPosts);
const enterpriseRelatedPosts = await getEntries(enterprisePost.data.relatedPosts);
---
```

0 comments on commit 927ab81

Please sign in to comment.