Typst lesson template with Jellyfin media frontmatter #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Create
templates/lesson.typ— a Typst template for homeschool lessons with:Also create
templates/example-lesson.typ— a complete example lesson that demonstrates the template.Acceptance
typst compile templates/example-lesson.typ lesson.htmlproduces valid HTMLNotes
Jellyfin item IDs are UUIDs. The Typst template doesn't need to know how Jellyfin works — it just needs to mark media IDs in the output so the plugin's HTML renderer can hook them up to the Jellyfin player.
Use
#metadataor custom functions to extract frontmatter-style data from Typst documents.Implemented in PR #9: https://os.scoble.me/forgejo/sscoble/jellyfin-lessons/pulls/9
What was built
templates/lesson.typ— Reusable template withlesson-template()function:raw(lang: "jellyfin-media", "uuid|Title")→<code data-lang="jellyfin-media">in HTMLmedia-ref()helper for inline media referencestemplates/example-lesson.typ— Complete example (The Water Cycle):Acceptance met
typst compile --features htmlproduces valid HTML<code data-lang="jellyfin-media">uuid|Title</code>