2021-05-15 22:23:14 +03:00
|
|
|
{ tags, pkgs }:
|
2021-05-15 04:02:06 +03:00
|
|
|
with pkgs.htmlNix;
|
|
|
|
let
|
|
|
|
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
|
|
|
|
|
|
|
site = { "index.html" = index; "ex.html" = ex; };
|
2021-05-15 04:02:06 +03:00
|
|
|
in
|
2021-05-15 04:15:00 +03:00
|
|
|
mkServeFromSite site
|