jeffa.io/www/build.fish

20 lines
401 B
Fish
Raw Normal View History

2023-08-24 06:48:56 +00:00
if ! test -d out/
mkdir out/
end
cp basic.css out/index.css
2023-05-19 13:32:14 +00:00
for file in src/**/*.md
set -l output (string replace .md .html $file)
set -l output (string replace src/ out/ $output)
2023-08-24 06:48:56 +00:00
2023-05-19 13:32:14 +00:00
pandoc \
--to html \
2023-08-24 06:48:56 +00:00
--embed-resources \
--standalone \
--template templates/page.html \
--email-obfuscation references \
2023-05-19 13:32:14 +00:00
$file \
> $output
end