From f7beeb5e158e00db87d5962ed8637ea4615655ed Mon Sep 17 00:00:00 2001 From: Klagarge Date: Sat, 10 Oct 2026 21:02:20 +0200 Subject: [PATCH] fix: align site scaffold with calepin conventions Assisted-by: Delta:zai-glm-5.3 --- site/404.typ | 6 +++--- site/calepin.toml | 16 +++++++++++++--- site/homelab/index.typ | 8 ++++++-- site/index.typ | 12 +++++++++--- site/security/index.typ | 8 ++++++-- site/thermo/index.typ | 8 ++++++-- 6 files changed, 43 insertions(+), 15 deletions(-) diff --git a/site/404.typ b/site/404.typ index 347e278..1f94c8c 100644 --- a/site/404.typ +++ b/site/404.typ @@ -1,5 +1,5 @@ -#import "@preview/calepin:0.1.7": * +#set document(title: [Not found]) -= 404 +#title() -Page not found. +The requested page does not exist. diff --git a/site/calepin.toml b/site/calepin.toml index 189de85..877b2f7 100644 --- a/site/calepin.toml +++ b/site/calepin.toml @@ -1,7 +1,7 @@ title = "Yggdrasil" -description = "Knowledge Base" +description = "Personal knowledge base." +base-url = "https://yggdrasil.kb28.ch" theme = "calepin" - pdf = false [static] @@ -12,14 +12,24 @@ fold = false [[sidebar.section]] title = "Start" + [[sidebar.section.item]] target = "index.typ" [[sidebar.section]] -title = "Categories" +title = "Thermodynamics" + [[sidebar.section.item]] target = "thermo/index.typ" + +[[sidebar.section]] +title = "Security" + [[sidebar.section.item]] target = "security/index.typ" + +[[sidebar.section]] +title = "Homelab" + [[sidebar.section.item]] target = "homelab/index.typ" diff --git a/site/homelab/index.typ b/site/homelab/index.typ index c22d75e..14a7241 100644 --- a/site/homelab/index.typ +++ b/site/homelab/index.typ @@ -1,3 +1,7 @@ -#import "@preview/calepin:0.1.7": * +#set document(title: [Homelab]) +#metadata((title: "Overview", translation_key: "homelab")) -= Homelab +#title() + +Placeholder page for the homelab category. +The real content comes later. diff --git a/site/index.typ b/site/index.typ index 860c9e6..f8f22e7 100644 --- a/site/index.typ +++ b/site/index.typ @@ -1,5 +1,11 @@ -#import "@preview/calepin:0.1.7": * +#set document(title: [Yggdrasil]) +#metadata((title: "Home", translation_key: "home")) -= Yggdrasil +#title() -Welcome to Yggdrasil, the central knowledge base. +Welcome to Yggdrasil, my personal knowledge base. +Pick a category from the sidebar to start reading: + +- Thermodynamics — heat, energy, and friends +- Security — hardening, cryptography, and operations +- Homelab — self-hosted services and infrastructure diff --git a/site/security/index.typ b/site/security/index.typ index d9703ba..0d70aa4 100644 --- a/site/security/index.typ +++ b/site/security/index.typ @@ -1,3 +1,7 @@ -#import "@preview/calepin:0.1.7": * +#set document(title: [Security]) +#metadata((title: "Overview", translation_key: "security")) -= Security +#title() + +Placeholder page for the security category. +The real content comes later. diff --git a/site/thermo/index.typ b/site/thermo/index.typ index 90f7e92..60c3f02 100644 --- a/site/thermo/index.typ +++ b/site/thermo/index.typ @@ -1,3 +1,7 @@ -#import "@preview/calepin:0.1.7": * +#set document(title: [Thermodynamics]) +#metadata((title: "Overview", translation_key: "thermo")) -= Thermodynamics +#title() + +Placeholder page for the thermodynamics category. +The real content comes later.