blog-static-flake/blog/builder.sh

13 lines
248 B
Bash

source $stdenv/setup
# Build site with Hugo
cp -r $src/* .
hugo --baseUrl="http://localhost:5000"
# Render math in HTML and XML files.
find public/ -regex "public/.*\.html" | xargs ruby $converter
# Output result
mkdir $out
cp -r public/* $out/