putnam hill moments a place for my stuff

leaking localhost links

I found out the hard way that it’s easy to commit the _site folder after serving it locally.

If pushed to the remote site, the localhost links will naturally not work. Worse, rss readers will think all the broken link articles are new. 😰

To avoid this unfortunate scenario, I’ve written a pre-commit hook to prevent any rendered html files from being committed that contain localhost links.