Automatic builds are configured by creating a _schedule.txt
file in your site. After building your site, CloudCannon will read your _schedule.txt
file and automatically configure a build at the specified time. This is useful for future posts.
The _schedule.txt
is a comma separated list of values. It contains three values:
For example:
2020-10-22T10:00:00+00:00,Publish Post,_posts/2020-10-22-because-of-the-internet.md
These values are used to schedule a build and generate the management UI.
For convenience, it’s likely you’ll want to generate _schedule.txt
.
Jekyll content
For Jekyll sites we recommend using our plugin, jekyll-cloudcannon-schedule to generate _schedule.txt
. This will parse all posts set for the future and generate a build on that date.
If automatic builds are not working, try setting –-future
in Site Settings / Configuration.
Add the following to your Gemfile
:
group :jekyll_plugins do
gem 'jekyll-cloudcannon-schedule'
end
Then add the following to your _config.yml
:
plugins:
- jekyll-cloudcannon-schedule
For Jekyll versions before 3.5.0, use gems
instead of plugins
.
Hugo content
There are no automatic methods for generating a schedule file in Hugo. You will need to output the file from your own templating or build hook.
Eleventy content
There are no automatic methods for generating a schedule file in Eleventy. You will need to output the file from your own templating or build hook.
Other content
There are no automatic methods for generating a schedule file in other SSGs. You will need to output the file from your own templating or build hook.
When _schedule.txt
is correctly set up, your site will be built automatically at the specified times.
To view all available automatic builds: