From 6ecf59b7a764a1ec03289473a9735c10a9896211 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 15 Jun 2026 20:25:47 +0200 Subject: WIP --- site/common.typ | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'site/common.typ') diff --git a/site/common.typ b/site/common.typ index 3f2bd61..d724bc0 100644 --- a/site/common.typ +++ b/site/common.typ @@ -63,7 +63,13 @@ } } -#let template(title, header, main) = { +#let template(title, header, main, front_page: false) = { + let body_attrs = if front_page { + (class: "front-page") + } else { + (:) + } + html.html({ html.head({ html.meta(charset: "utf-8") @@ -71,12 +77,14 @@ html.title(title) html.link(rel: "stylesheet", href: static("style.css")) }) - html.header(header) - html.main(main) - html.footer[ - © 2019--2026 Paweł Redman \ - Text and images are licensed under #link("https://creativecommons.org/licenses/by-sa/4.0/")[CC-BY-SA 4.0] unless noted otherwise. - ] + html.elem("body", attrs: body_attrs, { + html.header(header) + html.main(main) + html.footer[ + © 2019--2026 Paweł Redman \ + Text and images are licensed under #link("https://creativecommons.org/licenses/by-sa/4.0/")[CC-BY-SA 4.0] unless noted otherwise. + ] + }) }) } -- cgit