fix cookie
[booh] / bin / booh
index baed8470abd9d674a61cefdf99a995ee3e90f183..5adf08713f549cb01b03c69e829b5f9a98732ae0 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -462,8 +462,6 @@ def walk_source_dir
                     type = images.include?(file) ? 'image' : videos.include?(file) ? 'video' : nil
                     if type
                         html_thumbnails += run_iterations(iterations)
-                        html_thumbnails.gsub!(/~~theme~~/, $theme)
-                        html_thumbnails.gsub!(/~~current_size~~/, sizeobj['name'])
                         if type == 'image'
                             index = images.index(file)
                             html_thumbnails.gsub!(/~~image_iteration~~/,
@@ -492,6 +490,8 @@ def walk_source_dir
                 html_thumbnails += close_iterations(iterations)
                 for i in html
                     i.sub!(/~~thumbnails~~/, html_thumbnails)
+                    i.gsub!(/~~theme~~/, $theme)
+                    i.gsub!(/~~current_size~~/, sizeobj['name'])
                 end
                 ios = File.open("#{dest_dir}/thumbnails-#{sizeobj['name']}.html", "w")
                 ios.write(html)