diff options
Diffstat (limited to 'site/common.typ')
| -rw-r--r-- | site/common.typ | 22 |
1 files changed, 15 insertions, 7 deletions
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. + ] + }) }) } |
