add support for page summary and summary cards

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2026-04-20 14:13:32 +02:00
parent 383cf855b5
commit ff024740a4
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
5 changed files with 176 additions and 7 deletions

View file

@ -1,12 +1,13 @@
#import "./html_head.typ": html_head
#import "./html_body.typ": html_body
#import "./html_utils.typ": html_show
#import "./summary.typ": summary, card-list
/// Mail template function
#let webpage(
/// Page url
url,
url: none,
/// Title of the page, default to document.title
title: none,
/// Use only for html 'lang' attribute.
@ -41,6 +42,7 @@
/// Body of the page
body
) = {
assert(type(url) == str, message: "A page must have an url")
show: html_show
html.html(lang: lang, {
html_head(