From 45557f26ffd99b96e6462f26c6e10978547a1f50 Mon Sep 17 00:00:00 2001 From: Jan Miksovsky Date: Wed, 8 Jan 2025 11:06:51 -0800 Subject: [PATCH 1/2] Drop extra `unpack` call; the `page/()` call on the next line will unpack the .ori.md file and invoke it --- src/page.ori | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/page.ori b/src/page.ori index cfe2b96..40afdc0 100644 --- a/src/page.ori +++ b/src/page.ori @@ -1,8 +1,6 @@ (page) => templates/default.ori.html( templates/partials/article.ori.html( - md.handler/unpack( - page/() - ) + page/() ) ) -- 2.34.1 From 0a17495d5a2fdc7d6b484b353e9a0a022ead2e35 Mon Sep 17 00:00:00 2001 From: Jan Miksovsky Date: Wed, 8 Jan 2025 11:07:47 -0800 Subject: [PATCH 2/2] Since there's only one level of files in the data/pages tree, we only need one level of `map` to handle them --- src/site.ori | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site.ori b/src/site.ori index 830066d..e80306e 100644 --- a/src/site.ori +++ b/src/site.ori @@ -3,6 +3,6 @@ templates index.html = templates/default.ori.html("Welcome to the index page!") views = (views.ori/) - ...map(map(data/pages, page.ori), {extension: '.ori.md->.html'}) + ...map(data/pages, { extension: '.ori.md->.html', value: page.ori }) favicon.ico } -- 2.34.1