I’m trying to create a static site generator with typst. For each page, right now I do something akin to
#import "../lib.typ": page
#show: page(
title: "Hello",
description: "Hello world",
...
draft: true,
)
I can set some of these fields with set document.title = ... or similar, but not all.
How would I get the data out when I generate my page?
Right now I thought of having a global state that I get after I make the page with a document(...), but I can’t really get it to work well because I don’t fully understand how context works