搭建

https://quartz.jzhao.xyz/

Empty Quartz。或直接导入已有的 content 文件夹。

仓库 setting 里的 PagesGithub Actions

\.github\workflows\deploy.yml 文件。缺这个可以上传,无法更新到网站上。

上传到仓库。先 npx quartz sync --no-pullnpx quartz sync

\quartz\static 里换 icon.png 改头像。

使用 https://obsidian.md/ 写作。

评论:quartz.layout.ts,使用 giscus。

同步时报错

** Please tell me who you are. 报错。.git/config 最后加:

[user]
	email = gdfyhmyhm@gmail.com	
	user = yhddd123

unable to access 'https://github.com//.git/': recv failure: connection was reset。cmd 输入 git config --global http.proxy http://127.0.0.1:7890

error: ebusy: resource busy or locked, rmdir,不会解决,可以使用 GitHub Desktop 代替。

特殊语法

创建链接显示指定文本 [[real|text]]

#Tag 指向 tag。

![[]] 支持嵌入 pdf 文件。

非 markdown 标准分段:quartz.config.ts 加 Plugin.HardLineBreaks(),