start migration to bundle format

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2026-06-17 12:40:20 +02:00
parent 64e270a868
commit 7fe9b99535
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
13 changed files with 378 additions and 470 deletions

View file

@ -4,10 +4,14 @@
/// Generate the html <head> element for the page.
#let html-head(
/// Page url,
url,
/// The base url of the site (eg: "http://test.example.com")
base-url,
/// The url path of the page (full url of the page is base-url + path), eg: "/index.html"
path,
/// Title of the page
title,
/// Label of the page
page-label,
/// Path to the icon (TODO: /!\ must be an url, typst image not yet supported)
icon: none,
/// Type of the page for open-graph data
@ -25,6 +29,7 @@
/// List of related sites for metadata
me-links: (),
) = {
let url = base-url + path
html.head({
html.meta(charset: "utf-8")
if title != none {
@ -95,9 +100,9 @@
}
}}
get-css()
get-js()
context for tag in additionnal-head-tags.final() {
get-css(page-label)
get-js(page-label)
context for tag in additionnal-head-tags.at(label(str(page-label) + "-end")) {
tag
}