X-Git-Url: https://git.draconx.ca/gitweb/homepage.git/blobdiff_plain/ec1703ff7346b6d3edeee73f1c6dfa750b7aeed4..8227e0fd016c3e213181eb03d96f2d09370e7d2f:/Rules diff --git a/Rules b/Rules index a881607..6a8b45a 100644 --- a/Rules +++ b/Rules @@ -16,10 +16,12 @@ # along with this program. If not, see . preprocess do + system("git", "submodule", "update", "--init") + # Remove dead annex keys from processing @items.delete_if do |item| - l = File.readlink(item.raw_filename) - true if !File.exists?(item.raw_filename) and l =~ %r{/annex/objects/} + l = File.readlink(item.raw_filename) + true if !File.exists?(item.raw_filename) and l =~ %r{/annex/objects/} rescue Errno::EINVAL end @@ -149,8 +151,9 @@ compile '/license/cc*.xhtml' do end compile '/images/*.jpg', rep: :large do - filter :imgresize, width: 1200, height: 1200 - write item.identifier.without_ext + '-t1200.' + item.identifier.ext + filename = item.identifier.without_ext + '-t1200.' + item.identifier.ext + filter :imgresize, width: 1200, height: 1200, cache: filename + write filename end compile '/images/*.jpg', rep: :info do