write .jekyll-metadata even on full_rebuild

For a full rebuild, we certainly don't want to *read* from
.jeykll-metadata, but we should still write it.  Otherwise, a subsequent
incremental build would have to do a full rebuild again since there is
no metadata file to start from.
This commit is contained in:
Will Norris 2015-02-14 22:21:03 -08:00
parent fa6981fb8c
commit 6e89c1c02b
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ module Jekyll
each_site_file { |item|
item.write(dest) if regenerator.regenerate?(item)
}
regenerator.write_metadata unless full_rebuild?
regenerator.write_metadata
end
# Construct a Hash of Posts indexed by the specified Post attribute.