Skip to content

Commit 7ffdcf7

Browse files
committed
Quartz sync: Feb 24, 2025, 11:24 PM
1 parent dd6bd49 commit 7ffdcf7

File tree

4 files changed

+36
-434
lines changed

4 files changed

+36
-434
lines changed

content/.gitkeep

Whitespace-only changes.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## 语法
2+
Quartz使用markdown文件作为主要的编写内容的方式,其完全支持markdown语法。同时Quartz还默认支持一些像 [Github Flavored Markdown](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) 的脚注、删除线、表格、任务清单和[Obsidian Flavored Markdown](https://help.obsidian.md/Editing+and+formatting/Obsidian+Flavored+Markdown)`callout` `wikilinks`语法。
3+
4+
此外,Quartz还允许你给你的笔记指定metadata元信息——`frontmatter`
5+
6+
```
7+
---
8+
title: Example Title
9+
draft: false
10+
tags:
11+
- example-tag
12+
---
13+
14+
The rest of your content lives here. You can use **Markdown** here :)
15+
```
16+
这些常用的 frontmatter 字段是 Quartz 自带的:
17+
- `title`:page 的标题,默认值是文件的名字
18+
- `description`:文件的介绍,用于链接预览(link previews)
19+
- `permalink`:永久路径
20+
- `aliases`:笔记的别名。这是一个string list
21+
- `tags`:笔记的 tags
22+
- `draft`: 决定笔记是否公开
23+
- `date`:代表笔记公布/发行的字符串,通常是 `YYYY-MM-DD` 格式。
24+
## 同步笔记
25+
当你和你的笔记相处得不错的时候,你可以保存你的更改到Github。首先,确保你[已经准备了Github仓库](https://quartz.jzhao.xyz/setting-up-your-GitHub-repository),然后运行 `npx quartz sync`

content/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
欢迎来到鸽子的图书馆。

0 commit comments

Comments
 (0)