add cards_stamped_card template

This commit is contained in:
Artemis Tosini 2024-01-18 20:03:31 +00:00
parent 078107e9b8
commit 4d7ac67def
Signed by: artemist
GPG key ID: EE5227935FE3FF18
2 changed files with 24 additions and 1 deletions

View file

@ -10,7 +10,7 @@
let content_fn = if args.no_content {
_ => []
} else {
import "content/content.typ"
import "cache/content/content.typ"
content.content
}

23
cards_stamped_card.typ Normal file
View file

@ -0,0 +1,23 @@
#{
set page(width: 5.5in, height: 3.5in, margin: 0em)
import "common.typ"
let options = json("options.json")
let cards = options.cards
let args = options.args
let content_fn = if args.no_content {
_ => []
} else {
import "cache/content/content.typ"
content.content
}
for (idx, card) in cards.enumerate() {
if idx != 0 {
pagebreak()
}
common.postcard_content(100%, 100%, content_fn, card)
}
}