summaryrefslogtreecommitdiff
path: root/site/common.typ
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2026-06-15 20:25:47 +0200
committerPaweł Redman <pawel.redman@gmail.com>2026-06-15 20:25:47 +0200
commit6ecf59b7a764a1ec03289473a9735c10a9896211 (patch)
tree934a7f8b27d04bee10f01559f5a39f19684b57f4 /site/common.typ
parent9f72120b9ff063ab0d41f850a7bb6ee394a623b7 (diff)
WIP
Diffstat (limited to 'site/common.typ')
-rw-r--r--site/common.typ22
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.
+ ]
+ })
})
}