Astro博客生成

安装环境

  1. 下载安装Node.js

    https://nodejs.org/zh-cn
  2. 创建GitHub账号和仓库

初始化博客

  1. 使用模板创建Astro项目

    npm create astro@latest -- --template <github用户名/github仓库名>

    开启代理可能会导致报错,不开代理速度又比较慢。

  2. 启动本地测试

    npm run dev
  3. 生成静态网页(dist文件夹内)

    npm run build

评论区:

评论已关闭