Quartz is a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites. Thousands of students, developers, and teachers are already using Quartz to publish personal notes, websites, and digital gardens to the web.
~ (of sth)a large number of things or people of the same type 一系列;一批;一群
He faced a battery of questions.
他面临一连串的问题。
a battery of reporters
一大批记者
Digital Garden
“Gardens … lie between farmland and wilderness … The garden is farmland that delights the senses, designed for delight rather than commodity.” — Bernstein
delight: sb to give sb a lot of pleasure and enjoyment 使高兴;使愉快;使快乐
This news will delight his fans all over the world.
这消息将使全世界崇拜他的人都感到高兴。
First setup the git
make sure you install git first.
git config --global user.name "你的用户名"
git config --global user.email "你的邮箱地址"add proxy to git, make sure the port is the same as the port of your clash.
## HTTP
git config --global http.proxy http://127.0.0.1:7980
git config --global https.proxy http://127.0.0.1:7980
## SOCKS5
git config --global http.proxy socks5://127.0.0.1:7980
git config --global https.proxy socks5://127.0.0.1:7980You can only choose one of the two. It’s either HTTP or SOCKS5.
Setup Quartz
reference to:
video tutorial: https://youtu.be/6s6DT1yN4dw?si=Mk6gGYtmr5ip98LL
official github project: https://quartz.jzhao.xyz/setting-up-your-GitHub-repository
website: https://quartz.jzhao.xyz/
node: https://nodejs.org/
follow the official document, you can create this just as what you saw.
Common Commands
## preview the project
npx quartz build --serve
## preview the project with 8 threads
npx quartz build --concurrency 8 --serve
## sync
npx quartz syncLet the TOC scrollable
find the custom.scss, add these things to it
/* 让右侧栏本身可以滚动 */
.right {
max-height: 100vh;
overflow-y: auto;
}
/* toc 占满空间 */
.toc {
max-height: none;
}Push to github
https://quartz.jzhao.xyz/setting-up-your-GitHub-repository
fatal: The remote end hung up unexpectedlyIt might be due to Git’s default buffer size. You can fix it by increasing the buffer with this command:
git config http.postBuffer 524288000Sync 后导致文件丢失
在graph面板,选择要重置的分支,右键Copy Commit Hash
cd quartz
git reset --hard <哈希值>--hard 操作会清除你当前工作区所有未提交的临时修改。请确保你现在没有写到一半、还没保存的重要代码
git push origin <当前分支名> --force