From 085f959323c9011ba602b306ced2d262ec2e5f89 Mon Sep 17 00:00:00 2001 From: giles Date: Fri, 13 Mar 2026 05:35:50 +0000 Subject: [PATCH] Add spreads page function for SX URL routing Without this, /sx/(geography.(spreads)) 404s because spreads isn't defined as a page function to return the content component. Co-Authored-By: Claude Opus 4.6 --- sx/sx/page-functions.sx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sx/sx/page-functions.sx b/sx/sx/page-functions.sx index 07271bb..a46fc90 100644 --- a/sx/sx/page-functions.sx +++ b/sx/sx/page-functions.sx @@ -60,6 +60,10 @@ "phase2" '(~reactive-islands/phase2/reactive-islands-phase2-content) :else '(~reactive-islands/index/reactive-islands-index-content))))) +(define spreads + (fn (content) + (if (nil? content) '(~geography/spreads-content) content))) + (define marshes (fn (content) (if (nil? content) '(~reactive-islands/marshes/reactive-islands-marshes-content) content)))