2022-07-30 12:42:09 +03:00
|
|
|
{
|
|
|
|
tags,
|
|
|
|
pkgs,
|
|
|
|
}:
|
|
|
|
with pkgs.htmlNix; let
|
2021-05-15 04:02:06 +03:00
|
|
|
index = with tags;
|
|
|
|
html [
|
|
|
|
(body [
|
|
|
|
(p "Hello world!")
|
2021-05-15 21:29:30 +03:00
|
|
|
(mkLink "./ex.html" "say bye")
|
2021-05-15 04:02:06 +03:00
|
|
|
])
|
|
|
|
];
|
|
|
|
|
|
|
|
ex = with tags;
|
|
|
|
html [
|
|
|
|
(body [
|
|
|
|
(p "Bye world!")
|
2021-05-15 21:29:30 +03:00
|
|
|
(mkLink "./index.html" "go back")
|
2021-05-15 04:02:06 +03:00
|
|
|
])
|
|
|
|
];
|
2021-05-15 04:15:00 +03:00
|
|
|
|
2022-07-30 12:42:09 +03:00
|
|
|
site = {
|
|
|
|
"index.html" = index;
|
|
|
|
"ex.html" = ex;
|
|
|
|
};
|
2021-05-15 04:02:06 +03:00
|
|
|
in
|
2022-07-30 12:42:09 +03:00
|
|
|
mkServeFromSite site
|