brewTea: add staticAssets
This commit is contained in:
parent
5d6d06bda7
commit
36b4dda14a
1 changed files with 3 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
|||
# otherwise set by frontmatter
|
||||
defaultLayout ? "default.html",
|
||||
|
||||
staticAssets ? [],
|
||||
allowFailedRenders ? true,
|
||||
}: let
|
||||
markdoll = "${markdollParser}/bin/markdoll";
|
||||
|
@ -118,9 +119,10 @@ in pkgs.stdenvNoCC.mkDerivation {
|
|||
|
||||
render_final $file $outFile $outFile.tmp.render
|
||||
done
|
||||
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
cp -rv dist $out
|
||||
'';
|
||||
'' + pkgs.lib.concatString (map path: "cp -rv ${path} $out/${path}; " staticAssets);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue