blog-static-flake/blog/builder.sh

13 lines
247 B
Bash
Raw Normal View History

2020-04-06 16:51:17 -07:00
source $stdenv/setup
# Build site with Hugo
2020-04-06 16:51:17 -07:00
cp -r $src/* .
2020-04-07 21:00:33 -07:00
hugo --baseUrl="https://danilafe.com"
# Render math in HTML and XML files.
find public/ -regex "public/.*\.html" | xargs ruby $converter
# Output result
mkdir $out
cp -r public/* $out/