Skip to content

Commit 176ecb8

Browse files
i18n(zh-cn): Update configuring-astro.mdx (#11072)
Co-authored-by: Yan <[email protected]>
1 parent df100e8 commit 176ecb8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/content/docs/zh-cn/guides/configuring-astro.mdx

+4-3
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@ const { ...props } = Astro.props;
8787
<head>
8888
<meta charset="utf-8">
8989
<Head />
90-
<!-- -->
90+
<!-- head 部分的附加元素 -->
9191
</head>
92-
<body><!-- --></body>
92+
<body>
93+
<!-- 你的页面内容在这 -->
94+
</body>
9395
</html>
94-
```
9596
9697
因为 `Head.astro` 只是一个常规的 Astro 组件,所以你可以导入文件并接收从其他组件传递的 props,例如特定的页面标题。
9798

0 commit comments

Comments
 (0)