diff --git a/README.md b/README.md index 70096b3..2da37ef 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ site generator. ## Layout - `site/` — website sources: `calepin.toml` + `.typ` pages -- `site/themes/yggdrasil/` — local theme extending the bundled `calepin` theme +- `site/themes/yggdrasil/` — local theme extending the bundled `calepin` theme (scoped sidebars, academic-styled landing) - `public/` — generated site (gitignored) - `tools/` — pinned `calepin` and `typst` binaries (gitignored, downloaded on demand) - `scripts/` — helper scripts used by the Justfile and CI diff --git a/site/index.typ b/site/index.typ index b3d1065..fcbdce9 100644 --- a/site/index.typ +++ b/site/index.typ @@ -1,5 +1,5 @@ #set document(title: [Yggdrasil]) -#metadata((title: "Home", translation_key: "home")) +#metadata((title: "Home", translation_key: "home", layout: "layouts/site-landing.html")) #title() diff --git a/site/themes/yggdrasil/layouts/site-landing.html b/site/themes/yggdrasil/layouts/site-landing.html new file mode 100644 index 0000000..0f8e955 --- /dev/null +++ b/site/themes/yggdrasil/layouts/site-landing.html @@ -0,0 +1,293 @@ +{% set calepin_theme_storage_key = "calepin-website-theme" %} +{% set calepin_theme_param = "theme" %} +{% include "partials/site-head.html" %} + +{{ doc.body_open }} +{% set show_site_sidebar = false %} +{% include "partials/site-nav.html" %} +
+ {{ doc.body }} +
+{% include "partials/site-footer.html" %} +{% include "partials/site-search.html" %} +{% include "partials/theme-scripts.html" %} +{{ doc.body_close }}