Start Writing with Typefolio
/ 1 min read
Table of Contents
This post can serve as the starting point for future writing.
Regular technical notes go directly under src/content/blog/. Each post can be
a single .md file, or it can live in a folder with an index.md, like this
post.
Math
Typefolio is already configured with KaTeX, so inline math works directly: .
Block math also renders correctly:
Code Blocks
```ts title="example.ts"const site = "Jimjimu Notes";console.log(site);```Rendered result:
const site = "Jimjimu Notes";console.log(site);Typst / PDF
If a piece of content is closer to a handout, assignment, or report, write it in Typst in a separate directory:
typst/ linear-algebra/ hw1.typCompile it to PDF and place the output under public/pdf/:
typst compile typst/linear-algebra/hw1.typ public/pdf/linear-algebra-hw1.pdfThen embed it in a post:
<iframe src="/pdf/linear-algebra-hw1.pdf" width="100%" height="800" style="border: 1px solid #ddd; border-radius: 8px;"></iframe>Keep a download link as well, because some mobile browsers do not render embedded PDFs reliably.