hugo, cron, publishdate, and auto-publishing blogposts

If you see this - and it is an “if” at this point - then I’ve understood how to use hugo’s publishdate function correctly.

I think that, as long as I set a publishdate for some point in the future, and that I do not set the draft parameter, hugo will publish the post once the publishdate (and time) is met.

So, if I run a cronjob every hour, to run the script which publishes the site, it should pick up this blogpost and publish it.

With a bit of luck, if I’ve got it right, you should see this at about 16:00 on 1st November 2023.