site/build.fish

20 lines
401 B
Fish
Raw Normal View History

2024-06-07 00:25:02 +00:00
if ! test -d out/
mkdir out/
end
cp basic.css out/index.css
for file in src/**/*.md
set -l output (string replace .md .html $file)
set -l output (string replace src/ out/ $output)
pandoc \
--to html \
--embed-resources \
--standalone \
--template templates/page.html \
--email-obfuscation references \
$file \
> $output
end