recursive markdown rendering

This commit is contained in:
tristan 2023-12-31 10:33:05 +00:00
parent 5e8bb998db
commit 234c629e66
6 changed files with 90 additions and 15 deletions

View file

@ -20,10 +20,10 @@
"index.html" = with nixite.elems; (doc [
[
(title "Nixite")
(nixite.html.tag "link" {rel = "shortcut icon"; type = "image/png"; href = ./testing/src/favicon.png;} "")
]
(main [
(link "/blog" "blog")
(nixite.html.tag "img" {src = ./testing/src/favicon.png;} "")
(list [
"item 1"
"item 2"
@ -31,19 +31,7 @@
])
])
]);
blog = {
"index.html" = with nixite.elems; (doc [
[
(title "A post")
]
(main [
(p ''
This is a post
'')
(link "/" "Home")
])
]);
};
blog = nixite.md.readDir ./testing/blog;
})
);