From 8d4e430428730866a6dc6baed81df7682915d29b Mon Sep 17 00:00:00 2001 From: sashinexists Date: Sat, 7 Dec 2024 12:33:08 +1100 Subject: [PATCH] currently getting a not found error, showing it to Jan --- src/page.ori | 8 ++++++++ src/site.ori | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 src/page.ori diff --git a/src/page.ori b/src/page.ori new file mode 100644 index 0000000..cfe2b96 --- /dev/null +++ b/src/page.ori @@ -0,0 +1,8 @@ +(page) => + templates/default.ori.html( + templates/partials/article.ori.html( + md.handler/unpack( + page/() + ) + ) + ) diff --git a/src/site.ori b/src/site.ori index 702725f..1751ac2 100644 --- a/src/site.ori +++ b/src/site.ori @@ -3,7 +3,7 @@ templates index.html = templates/default.ori.html("Welcome to the index page!") views = (views.ori/) + map(data/pages, page.ori) favicon.ico - ...map(data/pages, (page)=>templates/default.ori.html(templates/partials/article.ori.html/(page/()))) - + // ...map(data/pages, (page)=>templates/default.ori.html(templates/partials/article.ori.html/(page/()))) }