This commit is contained in:
dusk 2021-05-17 04:23:57 +03:00
parent 561175ab31
commit a392b45c42
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
2 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,7 @@ pages:
script:
- nix build -L --show-trace
- mkdir public && cp -Hr result/* public
- tree public
artifacts:
paths:
- public

View File

@ -14,7 +14,7 @@
eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
inherit (pkgs.lib) mapAttrsRecursive hasSuffix last;
inherit (pkgs.lib) mapAttrsRecursive hasSuffix last pipe;
lib = htmlNix.lib.${system};
ownTemplater = context: context // {
@ -34,7 +34,7 @@
};
};
header = with lib.tags; div { class = "botheader"; }
(a { class = "botheader"; href = "https://github.com/yusdacra/html.nix"; } "made with Nix in html.nix");
(a { href = "https://github.com/yusdacra/html.nix"; } "made with Nix in html.nix");
in
(
mapAttrsRecursive
@ -43,7 +43,7 @@
context.site
) // { "site.css" = "${context.site."site.css"}\n${headerStyle}"; };
};
site = local: lib.pkgsLib.mkSiteFrom { inherit local; src = ./.; templater = context: ownTemplater (lib.templaters.basic context); };
site = local: lib.pkgsLib.mkSiteFrom { inherit local; src = ./.; templater = context: pipe context [ lib.templaters.basic ownTemplater ]; };
in
rec {
apps = {