Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1016 Bytes

index.mdx

File metadata and controls

32 lines (25 loc) · 1016 Bytes
type unitTitle title description
tutorial
在你的网站上添加、设计和链接页面
第二单元:页面
教程:建立你的第一个 Astro 博客 - 在你的网站上创建、设计和链接页面文章

import Checklist from '/components/Checklist.astro'; import Badge from '/components/Badge.astro'; import Box from '~/components/tutorial/Box.astro';

现在你在网络上有了一个基础完善的网站,是时候来添加页面和博客文章了!

接下来

在本单元中,你将

  • 使用 .astro 语法创建你的第一个 Astro 页面

  • 使用 Markdown (.md) 文件编写博客文章

  • 使用 <style> 设置单个页面的样式

  • 跨页面应用全局样式

    在此过程中,你将了解.astro 文件的两个部分如何协同工作来创建页面,以及如何在页面上使用变量和条件渲染。

任务清单

- [ ] 我准备好为我的 Astro 网站创建一些新页面了!