Generate thumbnails to output/, not to content/. Released 0.4.4.
This commit is contained in:
parent
70fdcae3cf
commit
5ab65ff1e7
2 changed files with 2 additions and 3 deletions
|
@ -12,12 +12,11 @@ require "nokogiri"
|
|||
# before Ace::ImageThumbnailerFilter, default_thumb_size: 550
|
||||
# end
|
||||
|
||||
# FIXME: generate thumbnail to output/, not to content/ !!!
|
||||
module Ace
|
||||
class ImageThumbnailerFilter < Filter
|
||||
def thumb_path(file_name)
|
||||
@file_name ||= file_name
|
||||
@thumb_path ||= file_name.gsub(/\.([^\.]*)$/, '_thumb.\1')
|
||||
@thumb_path ||= file_name.gsub(/content\/(.+)\.([^\.]*)$/, 'output/\1_thumb.\2')
|
||||
end
|
||||
|
||||
def thumb_server_path
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# encoding: utf-8
|
||||
|
||||
module Ace
|
||||
VERSION = "0.4.3"
|
||||
VERSION = "0.4.4"
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue