A pelican plugin to avoid publishing drafts 0 ▲ Raphi Rambles 155 days ago · 7 min read1388 words · Tech · hide · Fediverse post So I messed up a few days ago and accidentally published a draft that got picked up by various RSS aggregators and I felt pretty dumb about it. Turns out those aggregators routinely check for dead links and suppress them, so the entry disapeared on its own after a few hours. But still, knowing myself, I'm sure it'll happen again and I'd rather avoid spamming unfinished crap into people's feeds if I can, so I started thinking about setting up some guard rails. First thing that came to mind was to use git hooks, or maybe Forgejo's equivalent to Github actions, and basically only deploy the site when articles get pushed to the remote repository. But thinking about it more, I realized that: It's way too hot to read documentation. Generating the site on a push means I would have to do it on the server. The second point is not such a big deal, but right now I'm building the site on my local machine and uploading the results via a simple rsync, and I love the simplicity of this setup. That's… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town