feat: add some details

This commit is contained in:
Youwen Wu 2024-12-29 02:30:48 -08:00
parent e8a89ae2a9
commit 970c4e2ece
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
3 changed files with 47 additions and 12 deletions

2
.gitignore vendored
View file

@ -3,3 +3,5 @@ main.pdf
public public
node_modules node_modules
.quartz-cache

View file

@ -1,6 +1,39 @@
--- ---
title: Welcome to Quartz title: "Alexandria: a knowledge garden"
--- ---
This is a blank Quartz installation. Welcome! You've stumbled upon (or perhaps were pointed to) my public-facing
See the [documentation](https://quartz.jzhao.xyz) for how to get started. [Zettelkasten](https://en.wikipedia.org/wiki/Zettelkasten), or _knowledge
garden_.
This is where I grow my ideas, and they are meticulously tagged to form the
knowledge webs you see in the top right.
Feel free to take a look around and appreciate the scenery.
## FAQ
> How do you edit these notes?
The underlying notes are simply Markdown files. Precisely, they are
[Obsidian](https://obsidian.md/) compatible Markdown files, which are tagged
with metadata for use the Obsidian apps.
However, I do not use the Obsidian desktop app, for two reasons:
1. Out of principle, Obsidian is [free as in free beer, but not free as in free
speech](https://www.gnu.org/philosophy/free-sw.en.html).
2. (main reason) [Vim](https://neovim.io/) is just too good to give up.
Therefore, I edit my notes using the free and open source
[obsidian.nvim](https://github.com/epwalsh/obsidian.nvim) plugin for Neovim.
> I want to know cool technical details about the site!
Glad you asked, real person who is interested! This site is powered by [Quartz
4](https://quartz.jzhao.xyz/), and uses `typst` for math typesetting, not the
common `LaTeX`. Behold:
$$
integral _(diff Omega) omega = integral _Omega dif omega
$$

View file

@ -1,5 +1,5 @@
import { QuartzConfig } from "./quartz/cfg" import { QuartzConfig } from "./quartz/cfg";
import * as Plugin from "./quartz/plugins" import * as Plugin from "./quartz/plugins";
/** /**
* Quartz 4.0 Configuration * Quartz 4.0 Configuration
@ -8,7 +8,7 @@ import * as Plugin from "./quartz/plugins"
*/ */
const config: QuartzConfig = { const config: QuartzConfig = {
configuration: { configuration: {
pageTitle: "🪴 Quartz 4.0", pageTitle: "📚 Alexandria",
pageTitleSuffix: "", pageTitleSuffix: "",
enableSPA: true, enableSPA: true,
enablePopovers: true, enablePopovers: true,
@ -16,7 +16,7 @@ const config: QuartzConfig = {
provider: "plausible", provider: "plausible",
}, },
locale: "en-US", locale: "en-US",
baseUrl: "quartz.jzhao.xyz", baseUrl: "alexandria.youwen.dev",
ignorePatterns: ["private", "templates", ".obsidian"], ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "created", defaultDateType: "created",
generateSocialImages: false, generateSocialImages: false,
@ -62,8 +62,8 @@ const config: QuartzConfig = {
}), }),
Plugin.SyntaxHighlighting({ Plugin.SyntaxHighlighting({
theme: { theme: {
light: "github-light", light: "rose-pine",
dark: "github-dark", dark: "rose-pine-dawn",
}, },
keepBackground: false, keepBackground: false,
}), }),
@ -72,7 +72,7 @@ const config: QuartzConfig = {
Plugin.TableOfContents(), Plugin.TableOfContents(),
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }), Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
Plugin.Description(), Plugin.Description(),
Plugin.Latex({ renderEngine: "katex" }), Plugin.Latex({ renderEngine: "typst" }),
], ],
filters: [Plugin.RemoveDrafts()], filters: [Plugin.RemoveDrafts()],
emitters: [ emitters: [
@ -90,6 +90,6 @@ const config: QuartzConfig = {
Plugin.NotFoundPage(), Plugin.NotFoundPage(),
], ],
}, },
} };
export default config export default config;