stuff
This commit is contained in:
parent
561175ab31
commit
a392b45c42
@ -5,6 +5,7 @@ pages:
|
|||||||
script:
|
script:
|
||||||
- nix build -L --show-trace
|
- nix build -L --show-trace
|
||||||
- mkdir public && cp -Hr result/* public
|
- mkdir public && cp -Hr result/* public
|
||||||
|
- tree public
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
eachDefaultSystem (system:
|
eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
inherit (pkgs.lib) mapAttrsRecursive hasSuffix last;
|
inherit (pkgs.lib) mapAttrsRecursive hasSuffix last pipe;
|
||||||
|
|
||||||
lib = htmlNix.lib.${system};
|
lib = htmlNix.lib.${system};
|
||||||
ownTemplater = context: context // {
|
ownTemplater = context: context // {
|
||||||
@ -34,7 +34,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
header = with lib.tags; div { class = "botheader"; }
|
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
|
in
|
||||||
(
|
(
|
||||||
mapAttrsRecursive
|
mapAttrsRecursive
|
||||||
@ -43,7 +43,7 @@
|
|||||||
context.site
|
context.site
|
||||||
) // { "site.css" = "${context.site."site.css"}\n${headerStyle}"; };
|
) // { "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
|
in
|
||||||
rec {
|
rec {
|
||||||
apps = {
|
apps = {
|
||||||
|
Loading…
Reference in New Issue
Block a user