Static site generator(SSG) for typst
[ English | 中文 ]
Typsite is a static site generator (SSG) that uses pure Typst for content creation. It processes these Typst files to generate a complete static website.
Typst expressions and syntaxTypst is a modern typesetting system, similar to LaTeX but designed to be simpler and easier to learn. It's primarily used for creating beautifully typeset documents like academic papers, books, and reports.
You can find the official English documentation here: Typst Document For a Chinese tutorial on Typst, I highly recommend the Typst Blue Book (The author has a remarkably clear understanding of the subject!).
The rest of this section explains the connection between Typst, HTML, and Typsite.
Typst introduced HTML export functionality in version 0.13. This includes an html-export mode and two core functions: html.elem and html.frame. These allow us to write content in Typst that targets HTML+CSS output.
Inspired by this, I developed a static site generator named Typsite using Rust.
Currently, Typst's HTML export:
html.elem function.html.frame can be used to convert it to SVG and embed it in HTML.For details on supported features and plans, you can track this issue: HTML export #5512.
While there are official plans for Typst to automatically convert styles to HTML+CSS, this doesn't conflict with Typsite. In fact, Typst's advancement will make Typsite even more useful, as Typsite's primary role is to manage inter-article interactions and build a fully-featured static website.
experimental-features = nix-command flakes in your Nix configuration.git clone https://github.com/Glomzzz/typsite.git
cd typsite
nix build .Here's more: Typsite Documant
We welcome your contributions to Typsite!
No open issues yet, or sync has not completed.