You can use the following if you’d like to rebuild the blog every time a file changes. It requires fd to find the files and entr to watch them then execute the blog.render/render!
function.
fd | entr bash -c 'echo "(require \'blog.render) (blog.render/render!) :repl/quit" | netcat localhost $(cat .prepl-port)'
Finally, I use Python’s http.server
to host the output
directory locally.
python -m http.server -d output
The posts are mine and you should not republish them without asking permission or attribution, the code is fair game.
Find the full unlicense in the UNLICENSE
file, but here’s a snippet.
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.