主要参考☞ https://quartz.jzhao.xyz 这是基于quartz网站搭建官方文档,里面考虑的情况更加全面,下面是我的搭建流程。

安装node.js和npm

注意:版本 Node** v20 and npm v9.3.1

克隆并初始化

在命令行中运行

git clone https://github.com/jackyzha0/quartz.git
cd quartz
npm i
npx quartz create

将博客部署到github上

全面参考☞ https://quartz.jzhao.xyz/setting-up-your-GitHub-repository

注意:将自己的仓库URL替换掉示例的 https://github.com/jackyzha0/quartz.git