From 762865985402061304a216cb6cc17f31e477932d Mon Sep 17 00:00:00 2001 From: giles Date: Sun, 22 Mar 2026 23:34:51 +0000 Subject: [PATCH] Fix geography index: restore default content and add page gutters The geography page function returned nil instead of the index-content component, and the index layout was missing the standard doc page wrapper. Co-Authored-By: Claude Opus 4.6 (1M context) --- sx/sx/geography/index.sx | 2 +- sx/sx/page-functions.sx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sx/sx/geography/index.sx b/sx/sx/geography/index.sx index 54b3b92..1575b30 100644 --- a/sx/sx/geography/index.sx +++ b/sx/sx/geography/index.sx @@ -2,7 +2,7 @@ ;; Describes the rendering pipeline: OCaml evaluator → wire formats → client (defcomp ~geography/index-content () :affinity :server - (<> + (div :class "max-w-4xl mx-auto px-6 pb-8 pt-4" (h2 :class "text-3xl font-bold text-stone-800 mb-4" "Geography") (p :class "text-lg text-stone-600 mb-8" "Where code runs and how it gets there. Geography maps the rendering pipeline from server-side evaluation through wire formats to client-side hydration.") diff --git a/sx/sx/page-functions.sx b/sx/sx/page-functions.sx index cf4b627..b507a8c 100644 --- a/sx/sx/page-functions.sx +++ b/sx/sx/page-functions.sx @@ -61,7 +61,7 @@ (define geography (fn (content) - (if (nil? content) nil content))) + (if (nil? content) '(~geography/index-content) content))) (define applications (fn (content)