start migration to bundle format
This commit is contained in:
parent
64e270a868
commit
7fe9b99535
13 changed files with 378 additions and 470 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue