Astro博客生成
关于如何配置astro博客。
Astro博客生成
安装环境
- 下载安装Node.js
https://nodejs.org/zh-cn
- 创建GitHub账号和仓库
初始化博客
- 使用模板创建Astro项目
1
npm create astro@latest -- --template <github用户名/github仓库名>
开启代理可能会导致报错,不开代理速度又比较慢。
- 启动本地测试
1
npm run server
- 生成静态网页(dist文件夹内)
1
npm run build
This post is licensed under
CC BY 4.0
by the author.