recursive markdown rendering
This commit is contained in:
parent
5e8bb998db
commit
234c629e66
6 changed files with 90 additions and 15 deletions
16
flake.nix
16
flake.nix
|
@ -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;
|
||||
})
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue