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/()))) }