Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/content/docs/zh-cn/tutorial/5-astro-api/3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ import PreCheck from '~/components/tutorial/PreCheck.astro';
```astro title="src/pages/tags/index.astro"
---
import BaseLayout from '../../layouts/BaseLayout.astro';
const allPosts = await Astro.glob("../posts/*.md");
const tags = [...new Set(allPosts.map((post) => post.frontmatter.tags).flat())];
const tags = ['astro', 'blogging', 'learning in public', 'successes', 'setbacks', 'community']
const pageTitle = "Tag Index";
---
<BaseLayout pageTitle={pageTitle}>
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/zh-cn/tutorial/6-islands/1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ import PreCheck from '~/components/tutorial/PreCheck.astro';
</BaseLayout>
```

5. 查看你的页面并比较这两个组件。第二个按钮可工作,因为 `client:load` 指令告诉 Astro 在页面加载时将其 JavaScript 发送并重新运行到客户端,使组件可交互。这称为 **被 Hydrate 的** 组件。
5. 查看你的页面并比较这两个组件。第二个按钮可工作,因为 `client:load` 指令告诉 Astro 在页面加载时将其 JavaScript 发送并重新运行到客户端上,使组件可交互。这称为 **被 Hydrate 的** 组件。
Comment thread
100gle marked this conversation as resolved.

6. 一旦明确区别后,删除未被 Hydrate 的 Greeting 组件。

Expand Down