Jekyll automatically regenerates all changed files into
a target directory
_site. However it does not regenerate
a file referencing another file which has just changed.
It has been particularly painful for
index.html file where
I reference a list of posts in a following loop:
Now, I keep a list of files in
_drafts folder, they have no date specified,
neither as a part of the filename nor in the YAML front matter. Jekyll updates
their filenames with the current date when their content changes. But then
it does not regenerate
index.html. So far I forced the regeneration by
touch index.html file, but did not seem to be neat solution I was searching for.
Much better approach is to add
regenerate: true to my
YAML front matter. It forces the file to be included in each rebuild.
And it happens automatically.