After a LOT of experimentation, I figured out how to schedule posts in Hugo.
My client sites rely on news embargos, meaning the post should go live precisely at a certain time, and other client sites have events pages that have to be rebuilt at a specific time for them to be marked as ‘concluded’.
I finally built a solution that so far has been able to handle almost all use cases I’m throwing it’s way.
I’m still proof reading the guide, but will make a video guide on this soon!
Link: Scheduling Hugo Builds with AppScript and Node | BusinessAddons.com
Tools used:
- Nodejs
- Hugo (duh!)
- Build Hook URL (from your vercel, Netlify, or cloudflare dashboard)
- Google’s AppScript (you can also do this via any framework once you understand what I’ve built)
Hope this helps!