Compare commits
2 commits
5d6d06bda7
...
9d17b10a24
Author | SHA1 | Date | |
---|---|---|---|
9d17b10a24 | |||
36b4dda14a |
4 changed files with 11 additions and 1 deletions
|
@ -8,6 +8,10 @@
|
||||||
# maybe don't do this but its possible to reference _any file_.
|
# maybe don't do this but its possible to reference _any file_.
|
||||||
defaultLayout = ./layouts/default.html;
|
defaultLayout = ./layouts/default.html;
|
||||||
|
|
||||||
|
# this could technically be a raw path; but nix doesn't keep directory name the same.
|
||||||
|
# use best judgement.
|
||||||
|
staticAssets = [ "./static" ];
|
||||||
|
|
||||||
markdollPlugins = let
|
markdollPlugins = let
|
||||||
sPoNgEbOb = pkgs.buildGoModule {
|
sPoNgEbOb = pkgs.buildGoModule {
|
||||||
name = "sPoNgEbOb";
|
name = "sPoNgEbOb";
|
||||||
|
|
|
@ -15,4 +15,6 @@ this is markdoll!
|
||||||
|
|
||||||
[img(https://codeberg.org/0x57e11a/markdoll/raw/branch/main/button.png)::
|
[img(https://codeberg.org/0x57e11a/markdoll/raw/branch/main/button.png)::
|
||||||
alt text goes here (88x31 button that says MADE WITH MARKDOLL)
|
alt text goes here (88x31 button that says MADE WITH MARKDOLL)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[img(/static/noe-pat.gif):noe being patted]
|
BIN
examples/quickstart/static/noe-pat.gif
Normal file
BIN
examples/quickstart/static/noe-pat.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
|
@ -13,6 +13,7 @@
|
||||||
# otherwise set by frontmatter
|
# otherwise set by frontmatter
|
||||||
defaultLayout ? "default.html",
|
defaultLayout ? "default.html",
|
||||||
|
|
||||||
|
staticAssets ? [],
|
||||||
allowFailedRenders ? true,
|
allowFailedRenders ? true,
|
||||||
}: let
|
}: let
|
||||||
markdoll = "${markdollParser}/bin/markdoll";
|
markdoll = "${markdollParser}/bin/markdoll";
|
||||||
|
@ -118,6 +119,9 @@ in pkgs.stdenvNoCC.mkDerivation {
|
||||||
|
|
||||||
render_final $file $outFile $outFile.tmp.render
|
render_final $file $outFile $outFile.tmp.render
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo ">>> STATIC ASSETS"
|
||||||
|
${pkgs.lib.concatStrings (map (path: "cp -rv ${path} dist/\n") staticAssets)}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue