2021-05-16 02:56:54 +03:00
|
|
|
{ pkgs, lib }:
|
|
|
|
let
|
|
|
|
inherit (pkgs) htmlNix;
|
|
|
|
src = ./site;
|
|
|
|
in
|
|
|
|
htmlNix.mkServeFromSite (htmlNix.mkSiteFrom {
|
|
|
|
inherit src;
|
|
|
|
templater = context: pkgs.lib.pipe context [
|
2021-05-16 03:05:10 +03:00
|
|
|
# Add basic template
|
2021-05-16 02:56:54 +03:00
|
|
|
lib.templaters.basic
|
2021-05-16 03:05:10 +03:00
|
|
|
|
|
|
|
# Add about page
|
2021-05-16 02:56:54 +03:00
|
|
|
({ site, mkPage, ... }@result: {
|
|
|
|
site = site // {
|
|
|
|
"about.html" = with lib.tags; mkPage [
|
|
|
|
(h1 "About")
|
|
|
|
(p "testy test test")
|
|
|
|
];
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
})
|